Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
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
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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