External Inputs Required: Magic_No - EA magic number Lot_Size - Initial order lot size Lot_Multiplier - Lot increment value for additional orders of same direction. TP - Take profit value for all orders (intial and pending).(0 means no value) Trail_Stop - Value in points for activation of trailstop.(0 means disable) Trail_Step - Value for trail step Slippage - Slippage value for all orders Initial_Buy_0r_Sell - (Buy /Sell) Initial market order direction. Pips_Gap - The difference in points for opening additinal orders . Add_Trend_Or_Range -(Trend/Range) Logic selection for additional orders. Add_Trend_Or_range_Type - (Market/Pending) Order type used to open additional orders. Max_Profit - Maximum account profit value in currency. Max_Loss -Maximum account loss value in currency. EA Functions required: Upon attached the chart , Check for any open positions. if any positions running then dont enter the trade and alert the user with "Positions Existing. EA Not Allowed to trade." If no positions, Open a buy or a sell market order depending (Initial_Buy_0r_Sell) value with (Lot_Size) and (TP) . Next check the values of External parameters: (Add_Trend_Or_Range ) and ( Add_Trend_Or_range_Type) if Add_Trend_Or_Range = Trend , Add_Trend_Or_range_Type = Pending . then, place a buystop and a sellstop order (Pips_Gap) away from last opened order price with lot increment and set TP. Any one of the pending order executed(now this is the last opened order ) then delete the other one and place new pending orders (Pips_Gap) away from last opened order price with lot increment. Pending orders volume increment (Lot_Multiplier) should be applied to the sequence of orders of one direction. or if Add_Trend_Or_Range = Range, Add_Trend_Or_range_Type = Pending. then, place a buylimit and a selllimit order (Pips_Gap) away from last opened order price with lot increment and set TP. Any one of the pending order executed (now this is the last opened order )then delete the other one and place new pending orders (Pips_Gap) away from last opened order price with lot increment. Pending orders volume increment (Lot_Multiplier) should be applied to sequence of orders of one direction. Add_Trend_Or_range_Type=Market . then use market orders instead of pending orders for open addtional orders when price moves (Pips_Gap) difference from last order price. Pending order lot calculation Example: if lot multiplier =2 , initial lot size =0.1 , buy orders total=5, sell orders total=3 then volumes should be buy1=0.1 buy2=0.2 buy3=0.4 buy4=0.8 buy 5=0.16 sell1=0.1 sell2=0.2 sell3=0.4 When account profit or loss reached a predefined levels (Max_Profit & Max_Loss) all orders should be closed and send notification to mobile . EA should have 2,3,4,5 digits and multicurrency trading competablity.