wrong Entry

Posted By: daan

wrong Entry - 08/06/20 14:32

Hey. this code below
#
describe those two candles that I draw blue circle around them.
[Linked Image]
I want to these two candles happen, and then I enter a long at the open of the next bar (red dot).
How can I do that?
// I managed to open a position at the next bar by adding 1 to those [numbers] but then It will open the position at the close of the bar (because it will calculate it after the bar closed) and not the open of the bar.

any idea?
thanks.
Posted By: jcl

Re: wrong Entry - 08/06/20 16:28

With EUR/USD there is not really a difference between the current close and the next open. For other assets, use Fill = 3 for entering at the next open.
Posted By: daan

Re: wrong Entry - 08/06/20 19:52

Originally Posted by jcl
With EUR/USD there is not really a difference between the current close and the next open. For other assets, use Fill = 3 for entering at the next open.

thanks for the reply.
© 2024 lite-C Forums