Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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