Need help modifying limit orders

 

Hi,

Does anyone have a code sample that modifies Buy Limit orders?

(In backtest, trading once per bar) I want to place a buy limit order with stoploss and profit target attached. If this is not filled, I want to modify limit price, stoploss and profit target.

Or does anyone have a simple range trading system, with similar logic.

Many thanks, Chris.

 
Please try to look at examples here: http://codebase.mql4.com/search/modify%20Buy%20Limit
Reason: