I need an expert advisor thet work on pending order. The expert will work like this: on the chart there will be 3 buttons, one activates / deactivates the automatic function (automatically it will always work in the trading range indicated in the robot), if deactivated the semi-automatic will work with two other buttons where one activates the robot and the other deactivates it. (regardless of the trading range). When active, the robot places two pending orders BUY and SELL at a distance of X pips from the price; every Y milliseconds, the robot modifies the pending orders in such a way as to always keep X pips at the same distance from the price. We will make it possible to place multiple pending orders; in this case, subsequent pending orders will be at a distance of X pips from the pending orders preceding it. When the order is activated, all other pending orders are canceled and the active order will be managed by Stop loss, take profit and trail, even virtual ones. We will pause for Y seconds once the trade is closed, and the robot will resume analyzing the price; if 0, the robot will immediately resume placing new pending orders. Furthermore i need to add this function (true/false): the robot read a .txt file which has the same name as the instrument (for example if I open the xauusd chart the txt file will be xauusd.txt) where inside there is a quote readed by a provider; if the difference of the quotes between the broker's bid and the bid quote of the .txt file exceeds a certain value x pips, the robot immediately modifies the pending order putting it at a distance of y pips from the current price. obviously corrects the pending order in the direction of the explosion (if the price discrepancy is negative then it corrects the pending sell stop order, if the price discrepancy is positive then it corrects the pending buy order) and cancels the other pending order .the price discrepancy should be displayed on the chart: txt file quote - pair bid quote. SPECIFICATIONS Time trading (only if the semi-automatich trading is off) Lot: fixed or % on balance Max spread (0 disabled) Order comment Take profit (0 disabled) Stop loss (0 disabled) Start trailing (0 disabled) Stop trailing (0 disabled) Step trailing (0 disabled) Virtual tp/sl/trail: true/false Breakeven after X pips: 0 disabled Distance pending orders from price: X pips Number of pending orders: X Update pending orders every: X milliseconds Pause after closed trade: X seconds (0 disabled) Filter from txt file: true/false Gap X pips to reduce pending order: X pips Distance pending order from price if gap is reached: X pips Magic number