Attachments forums

List of attachments posted on this forum.


All files on forums: 159916

Tiny EA adjustment

Black Art, Fri May 13, 2022 3:09 am

Hello Coders!

So I found these two EAs and modified them little bit to make sure that they will immediately open a buy/sell position on the next open candle.
Everything works brilliant.

However now I need to "force" them to open a buy/sell position on the next candle but X points away from the open price.
When it comes to the short position -> open trade if BID is 10 points away from new candel's open price,
e.g. Open Price is 127.947 - 10 points = 127.937 EA opens a short position.
Same case when it comes to the long position but obviously Open Price + 10 points instead minus.

No idea how to do it :(
Could somebody please help me with this modification ?
All files in topic