Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,672 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How detect 200 bars after trade was opened? #471168
02/21/18 10:20
02/21/18 10:20
Joined: Dec 2017
Posts: 42
Mongolia
T
Tuguldur717 Offline OP
Newbie
Tuguldur717  Offline OP
Newbie
T

Joined: Dec 2017
Posts: 42
Mongolia
How to detect just 200 bars after trade was opened?

Re: How detect 200 bars after trade was opened? [Re: Tuguldur717] #471184
02/22/18 07:29
02/22/18 07:29
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
At opening, store the current bar number - the Bar variable - in a static variable, then compare at any run.

Re: How detect 200 bars after trade was opened? [Re: jcl] #471190
02/22/18 10:33
02/22/18 10:33
Joined: Dec 2017
Posts: 42
Mongolia
T
Tuguldur717 Offline OP
Newbie
Tuguldur717  Offline OP
Newbie
T

Joined: Dec 2017
Posts: 42
Mongolia
how? Actually i do not find about it in zorro manual

Re: How detect 200 bars after trade was opened? [Re: Tuguldur717] #471195
02/22/18 12:53
02/22/18 12:53
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
Look at this:

Bar variable: http://manual.zorro-trader.com/barperiod.htm
NumOpenLong: http://zorro-project.com/manual/en/winloss.htm

The rest is your homework.

Re: How detect 200 bars after trade was opened? [Re: Brax] #471197
02/22/18 12:58
02/22/18 12:58
Joined: Dec 2017
Posts: 42
Mongolia
T
Tuguldur717 Offline OP
Newbie
Tuguldur717  Offline OP
Newbie
T

Joined: Dec 2017
Posts: 42
Mongolia
I will check it. Thank you very much

Re: How detect 200 bars after trade was opened? [Re: Brax] #471203
02/23/18 09:05
02/23/18 09:05
Joined: Dec 2017
Posts: 42
Mongolia
T
Tuguldur717 Offline OP
Newbie
Tuguldur717  Offline OP
Newbie
T

Joined: Dec 2017
Posts: 42
Mongolia
Actually can not find from your writing. Baroffset will be used it brax?

Re: How detect 200 bars after trade was opened? [Re: Tuguldur717] #471208
02/23/18 12:20
02/23/18 12:20
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
We've already given you all the pieces, the rest is basic programming.

Use Bar, NumOpenLong and follow jcl instructions and you'll get it.

Re: How detect 200 bars after trade was opened? [Re: Brax] #471211
02/23/18 14:56
02/23/18 14:56
Joined: Dec 2017
Posts: 42
Mongolia
T
Tuguldur717 Offline OP
Newbie
Tuguldur717  Offline OP
Newbie
T

Joined: Dec 2017
Posts: 42
Mongolia
I got it BRAX thanks bro.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1