Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, NeoDumont), 761 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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