How detect 200 bars after trade was opened?

Posted By: Tuguldur717

How detect 200 bars after trade was opened? - 02/21/18 10:20

How to detect just 200 bars after trade was opened?
Posted By: jcl

Re: How detect 200 bars after trade was opened? - 02/22/18 07:29

At opening, store the current bar number - the Bar variable - in a static variable, then compare at any run.
Posted By: Tuguldur717

Re: How detect 200 bars after trade was opened? - 02/22/18 10:33

how? Actually i do not find about it in zorro manual
Posted By: Brax

Re: How detect 200 bars after trade was opened? - 02/22/18 12:53

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.
Posted By: Tuguldur717

Re: How detect 200 bars after trade was opened? - 02/22/18 12:58

I will check it. Thank you very much
Posted By: Tuguldur717

Re: How detect 200 bars after trade was opened? - 02/23/18 09:05

Actually can not find from your writing. Baroffset will be used it brax?
Posted By: Brax

Re: How detect 200 bars after trade was opened? - 02/23/18 12:20

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.
Posted By: Tuguldur717

Re: How detect 200 bars after trade was opened? - 02/23/18 14:56

I got it BRAX thanks bro.
© 2024 lite-C Forums