Register
Log In
Forums
Starting with Zorro
How detect 200 bars after trade was opened?
Forums
Calendar
Active Threads
Search
Forum Help
Gamestudio Links
► Features
► Download
► Online Manual
► Online Tutorial
► Free Resources
► F.A.Q.
Zorro Links
► Download
► Online Manual
► Online Tutorial
► Blog
► Support
► What's New?
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
♪♫♪ [For hire] VOLKOVSTUDIO - Music, SFX, Voice over, implementa
by Volkovstudio. 04/16/24 09:54
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
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
OP
Newbie
Tuguldur717
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
Chief Engineer
jcl
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
OP
Newbie
Tuguldur717
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
Member
Brax
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
OP
Newbie
Tuguldur717
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
OP
Newbie
Tuguldur717
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
Member
Brax
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
OP
Newbie
Tuguldur717
OP
Newbie
T
Joined:
Dec 2017
Posts: 42
Mongolia
I got it BRAX thanks bro.
Moderated by
Petra
Hop To
Gamestudio ------
Starting with Gamestudio
Atari lite-C
Editors & Templates
A8 Engine
Shaders
Third Party Tools
Acknex Users Magazine
The Past
The Future
Zorro ------
Starting with Zorro
Educational
Automated Trading
Zorro Scripts
The Z Systems
Zorro and the Brokers
Zorro Future
Feedback ------
Bug Hunt
Blame the Manual
Ask the Developers
Updates & Announcements
Rants
Game Creation ------
Game Design & Business
Jobs Wanted
Jobs Offered
User Resources
Projects
Showcase
Beyond Games & Money ------
Hilbert's Hotel
Morbius' Virtual Answering Machine
Print Thread
Switch to Threaded Mode
5
Excellent
4
Good
3
Average
2
Bad
1
Terrible
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
View Profile
Send Private Message
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
View Profile
Send Private Message
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
Default Style
gamestudio
UBBT77
UBBT77 - Dark2
Forum Rules
·
Mark All Read
·
Powered by UBB.threads™ PHP Forum Software 7.7.1