Forum

Modifying TP and keeping current SL

Hi all, I am attempting to modify my TP after placing a trade. The problem seems to be that i am using the same stop loss . This is what i Want. However, if i put in a new Sl by subtracting .00001 from the prev stop loss, it works. I am assuming that positionModify wants new values. How can i only

MQl5 Debugger Drawings

Hello all, I am writing an EA in MQL5. I have Support and resistance lines auto detecting. When a support gets taken out, it will not detect at all the next time the code runs(it will receive a new bar). It should then delete the support line that was there before, but instead, it leaves it. Why

Help with EA color conditional

I am writing to code so that when my custom indicator which is the hull moving average changes from green to red or red to green It will execute the proper order. This is my pseudo code: if the current color of the hull is green and the previous color of it was red: buy if the current color