Tick yes Tick no

Posted By: tradingest

Tick yes Tick no - 11/11/18 21:04

Hi guys,

I ask a question that could change my life laugh
If I use BarPeriod = 1 or BarPeriod = 60 with set(TICKS) what changes?

I'm using the second case but I have a different results.
Should be the same with set(TICKS) flag?

Thanks for the support
Posted By: AndrewAMD

Re: Tick yes Tick no - 11/11/18 21:50

run() is invoked once every bar, regardless of the TICKS flag.
Posted By: tradingest

Re: Tick yes Tick no - 11/11/18 21:53

Originally Posted By: AndrewAMD
run() is invoked once every bar, regardless of the TICKS flag.


but with set(TICKS) the result are different.
set(TICKS) what modifies?

BarPeriod = 1
BarPeriod = 1 with set(TICKS) --> result different

I expected the same result. Why not?
Posted By: AndrewAMD

Re: Tick yes Tick no - 11/11/18 22:18

This depends on your script. In TICKS mode, your stop losses get triggered differently, for example.
Posted By: tradingest

Re: Tick yes Tick no - 11/11/18 22:54

Originally Posted By: AndrewAMD
This depends on your script. In TICKS mode, your stop losses get triggered differently, for example.


AndrewAMD thanks so mush for this answers.

In TICKS mode what is the trigger? Is it possible to have an example?
When you said ticks mode that means set(TICKS) in fuction run()?

For me understand this is very important.

thanks in advance for the help
Posted By: Dalla

Re: Tick yes Tick no - 11/12/18 15:40

Look in the manual, under TICKS
http://zorro-project.com/manual/en/mode.htm
Posted By: tradingest

Re: Tick yes Tick no - 11/12/18 19:32

thanks Dalla,

I read but I don't understand the difference on triggered stop
© 2024 lite-C Forums