Modify Stoploss and Takeprofit of open orders
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!

You agree to website policy and terms of use
Hi everyone. I need help. I am trying to create a ea that will look through the open orders pool and if there is an open order it will modify the order to add both a take profit and stoploss. If there isn't an order it will just keep looking the time of the day is over. This is what I did so far. Its not working when I add it to my chart. Can someone help me or tell me why please?
#property copyright
#property link
extern double TakeProfit =50;