Attachments forums

List of attachments posted on this forum.


All files on forums: 163127

Re: Coding Help

pin12, Fri Aug 09, 2024 3:04 am

Hi !

This is an EA that opens a sell order when a bearish candle closes and opens a buy order when a bullish candle closes.

The problem I find is that when it opens a new operation it does not close the previous one, but keeps it open.

I would like, please, if possible, to modify the code so that when opening a new buy or sell order, the previous order is closed, regardless of whether there is a profit or loss.

The take profit and stop loss could be eliminated, since in this case it would not be necessary.

Thanks
All files in topic