Posted By: trenki2
CFD Trading Issues / Crash - 01/10/17 18:28
I wanted to try out trading stock CFDs with Zorro on an FXCM account. Unfortunately it seems not to work for demo accounts. Does anyone know a way to make it work there? I get the error 053.
I then went on to try it out on my real fxcm account and ran into a bug. My Zorro 1.50.6 SE crashed.
I have the following code:
It is supposed to buy 1 share of EBAY. It requires the associated AssetsList file:
When I hit trade Zorro connects, downloads the asset prices and then crashes immediately without buying any shares.
How can this be fixed? Is there a way to make it work with the demo account?
The windows crash report give this information:
I then went on to try it out on my real fxcm account and ran into a bug. My Zorro 1.50.6 SE crashed.
I have the following code:
Code:
function run() { StartDate = 2005; BarPeriod = 1440; Capital = 10000; Lots = 1; assetList("AssetsFXCMCFD.csv"); assetHistory("EBAY", FROM_YAHOO); while (asset(loop("EBAY"))) { if (NumOpenLong == 0) enterLong(); } }
It is supposed to buy 1 share of EBAY. It requires the associated AssetsList file:
Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol AAPL,119.220,0.01,0,0,0.01,0.01,0,10,1,0,AAPL.us FB,125.120,0.01,0,0,0.01,0.01,0,10,1,0,FB.us AMZN,794.630,0.19,0,0,0.01,0.01,0,10,1,0,AMZN.us MSFT,63.040,0.01,0,0,0.01,0.01,0,10,1,0,MSFT.us GOOG,807.190,0.29,0,0,0.01,0.01,0,10,1,0,GOOG.us IBM,166.400,0.06,0,0,0.01,0.01,0,10,1,0,GOOG.us EBAY,30.340,0.01,0,0,0.01,0.01,0,10,1,0,EBAY.us
When I hit trade Zorro connects, downloads the asset prices and then crashes immediately without buying any shares.
How can this be fixed? Is there a way to make it work with the demo account?
The windows crash report give this information:
Code:
Problem signature: Problem Event Name: APPCRASH Application Name: Zorro.exe Application Version: 1.5.0.0 Application Timestamp: 57e240da Fault Module Name: StackHash_9711 Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Code: c0000005 Exception Offset: PCH_B7 OS Version: 6.3.9600.2.0.0.256.48 Locale ID: 3079 Additional Information 1: 9711 Additional Information 2: 9711f951f5ef49fc39034f383bd4f4da Additional Information 3: 4f3c Additional Information 4: 4f3c8abdae3bab8ccecea80d171a6350