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
FOSS C++ DLL framework with a Python subsystem and git hooks.
by firatv. 05/02/24 09:40
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Texture/Sprite animation tool. Someone interested in ?
by NeoDumont. 04/29/24 02:20
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
Who's Online Now
0 registered members (), 900 guests, and 2 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
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,986
Frankfurt
jcl
Chief Engineer
jcl
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
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