multiple positions OnTick()
Created at 15 Feb 2019, 14:45
multiple positions OnTick()
15 Feb 2019, 14:45
Dear Panagiotis!
it just happened that I wanted to open under certain conditions a position onTick()
It opened 200!
How can i do that during on candle only one position is opened?
regards,
Sasha
Replies
alexander.n.fedorov
15 Feb 2019, 14:58
RE:
alexander.n.fedorov said:
Dear Panagiotis!
it just happened that I wanted to open under certain conditions a position onTick()
It opened 200!
How can i do that during on candle only one position is opened?
regards,
Sasha
RE: during one candle
@alexander.n.fedorov
PanagiotisCharalampous
15 Feb 2019, 14:49
Hi Sasha,
Define a global boolean parameter, make it true when a position opens and make it false when a bar changes. Open positions only if this flag is false.
Best Regards,
Panagiotis
@PanagiotisCharalampous