cr8or / Publications
Forum
Problem with StopLoss and Take Profit when either one is 0
I wrote an EA for opening market orders with predefined StopLoss and TakeProfit. The default setting is 0 on both, meaning no SL no TP. However, when placing the EA user can enter SL and TP values as inputs. When both are different than 0 (no SL no TP) the EA performs as expected. When entering a