Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
simple crash code #477398
06/22/19 12:12
06/22/19 12:12
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

which is a wrong in this code?
Code
void run(){
  
  StartDate 	= 20190210;
  EndDate     = 2019;
  BarPeriod 	= 15;

  LookBack    = 200;
  Capital     = 10000;

  Stop = 10*ATRS(100);
  TakeProfit =4*ATRS(76) ;
  assetList("History\\AssetsGP.csv");
  asset("EUR/USD");

  NumYears = 1;
  Hedge = 2;          // allow long + short
  LifeTime = 20;      // = prediction horizon
  OrderDelay = 60;
  set(TICKS);  
  set(STEPWISE);
  enterLong(1);
}


afer click on the test, zorro crash without any warning

Re: simple crash code [Re: Grat] #477399
06/22/19 12:59
06/22/19 12:59
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
https://manual.zorro-project.com/asset.htm

Setting TICKS when the asset was already loaded, is no good idea, the ticks were not created and it will crash.

Re: simple crash code [Re: Grat] #477404
06/22/19 18:37
06/22/19 18:37
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
you have true, thanks


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1