Expert Advisor on MT4: 1. - IF the "buy button" on the trading-screen (see jpeg for more detail) is pushed, - THEN the initial trade "Buy01" is opened. - The lot-size for "Buy01" has to be adjustable, see list input parameters: “Lotsize Buy01”. - The "Buy01" trade has to have a “Trailing Stop Buy01” and “Trailing Step Buy01”, see list input parameter. - THEN a pending order (sell stop) "Sell01" has to be set. - The lot-size for "Sell01" has to be adjustable, see list input parameters: “Lotsize Sell01”. - The gap ("SellGAP01") between "Buy01" and sell stop "Sell01" has to be adjustable, see list input parameters. 2. - IF the sell stop "Sell01" trade is triggered, - THEN a pending order (sell stop) "Sell02" has to be set. - The lot-size for "Sell02" has to be adjustable, see list input parameters: “Lotsize Sell02”. - The gap ("SellGAP02") between "Sell01" and sell stop "Sell02" has to be adjustable, see list input parameters. - THEN a pending order (buy stop) "Buy02" has to be set. - The lot-size for "Buy02" has to be adjustable, see list input parameters: “Lotsize Buy02”. - The gap ("BuyGAP02") between "Buy01" and buy stop "Buy02" has to be adjustable, see list input parameters. - THEN the trailing stop and trailing step on "Buy01" must be removed. - THEN a "Take Profit" is activated. - Once the combined profit and loss of all trades reaches a specified price (adjustable in the input parameter list, under “Take Profit”) the EA closes all open trades and pending orders. - THEN automatically opens the same initial trade again. Unless “Continues Trading” in the input parameter list is set to False. 3. - IF the sell stop "Sell02" trade is triggered, -THEN place a stop loss "StopLossSell01" on Sell01. - The gap ("StopLossSell01") between "Sell01" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 4. - IF the stoploss of Sell01 is triggered, -THEN a pending order (sell stop) "Sell03" has to be set. - The lot-size for "Sell03" has to be adjustable, see list input parameters: “Lotsize Sell03”. - The gap ("SellGAP03") between "Sell02" and sell stop "Sell03" has to be adjustable, see list input parameters. 5. - IF the sell stop "Sell03" trade is triggered, -THEN place a stop loss "StopLossSell02" on Sell02. - The gap ("StopLossSell02") between "Sell02" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 6. - IF the stoploss of Sell02 is triggered, -THEN a pending order (sell stop) "Sell04" has to be set. - The lot-size for "Sell04" has to be adjustable, see list input parameters: “Lotsize Sell04”. - The gap ("SellGAP04") between "Sell03" and sell stop "Sell04" has to be adjustable, see list input parameters. 7. - IF the sell stop "Sell04" trade is triggered, -THEN place a stop loss "StopLossSell03" on Sell03. - The gap ("StopLossSell03") between "Sell03" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 8. - IF the stoploss of Sell03 is triggered, -THEN a pending order (sell stop) "Sell05" has to be set. - The lot-size for "Sell05" has to be adjustable, see list input parameters: “Lotsize Sell05”. - The gap ("SellGAP05") between "Sell04" and sell stop "Sell05" has to be adjustable, see list input parameters. 9. - IF the sell stop "Sell05" trade is triggered, -THEN place a stop loss "StopLossSell04" on Sell04. - The gap ("StopLossSell04") between "Sell04" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 10. - IF the stoploss of Sell04 is triggered, -THEN a pending order (sell stop) "Sell06" has to be set. - The lot-size for "Sell06" has to be adjustable, see list input parameters: “Lotsize Sell06”. - The gap ("SellGAP06") between "Sell05" and sell stop "Sell06" has to be adjustable, see list input parameters. 11. - IF the sell stop "Sell06" trade is triggered, -THEN place a stop loss "StopLossSell05" on Sell05. - The gap ("StopLossSell05") between "Sell05" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 12. - IF the stoploss of Sell05 is triggered, -THEN a pending order (sell stop) "Sell07" has to be set. - The lot-size for "Sell07" has to be adjustable, see list input parameters: “Lotsize Sell07”. - The gap ("SellGAP07") between "Sell06" and sell stop "Sell07" has to be adjustable, see list input parameters. 13. - IF the sell stop "Sell07" trade is triggered, -THEN place a stop loss "StopLossSell06" on Sell06. - The gap ("StopLossSell06") between "Sell06" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 14. - IF the stoploss of Sell06 is triggered, -THEN a pending order (sell stop) "Sell08" has to be set. - The lot-size for "Sell08" has to be adjustable, see list input parameters: “Lotsize Sell08”. - The gap ("SellGAP08") between "Sell07" and sell stop "Sell08" has to be adjustable, see list input parameters. 15. - IF the sell stop "Sell08" trade is triggered, -THEN place a stop loss "StopLossSell07" on Sell07. - The gap ("StopLossSell07") between "Sell07" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 3. - IF the buy stop "Buy02" trade is triggered, -THEN place a stop loss "StopLossBuy01" on Buy01. - The gap ("StopLossBuy01") between "Buy01" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 4. - IF the stoploss of Buy01 is triggered, -THEN a pending order (buy stop) "Buy03" has to be set. - The lot-size for "Buy03" has to be adjustable, see list input parameters: “Lotsize Buy03”. - The gap ("BuyGAP03") between "Buy02" and buy stop "Buy03" has to be adjustable, see list input parameters. 5. - IF the buy stop "Buy03" trade is triggered, -THEN place a stop loss "StopLossBuy02" on Buy02. - The gap ("StopLossBuy02") between "Buy02" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 6. - IF the stoploss of Buy02 is triggered, -THEN a pending order (buy stop) "Buy04" has to be set. - The lot-size for "Buy04" has to be adjustable, see list input parameters: “Lotsize Buy04”. - The gap ("BuyGAP04") between "Buy03" and buy stop "Buy04" has to be adjustable, see list input parameters. 7. - IF the buy stop "Buy04" trade is triggered, -THEN place a stop loss "StopLossBuy03" on Buy03. - The gap ("StopLossBuy03") between "Buy03" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 8. - IF the stoploss of Buy03 is triggered, -THEN a pending order (buy stop) "Buy05" has to be set. - The lot-size for "Buy05" has to be adjustable, see list input parameters: “Lotsize Buy05”. - The gap ("BuyGAP05") between "Buy04" and buy stop "Buy05" has to be adjustable, see list input parameters. 9. - IF the buy stop "Buy05" trade is triggered, -THEN place a stop loss "StopLossBuy04" on Buy04. - The gap ("StopLossBuy04") between "Buy04" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 10. - IF the stoploss of Buy04 is triggered, -THEN a pending order (buy stop) "Buy06" has to be set. - The lot-size for "Buy06" has to be adjustable, see list input parameters: “Lotsize Buy06”. - The gap ("BuyGAP06") between "Buy05" and buy stop "Buy06" has to be adjustable, see list input parameters. 11. - IF the buy stop "Buy06" trade is triggered, -THEN place a stop loss "StopLossBuy05" on Buy05. - The gap ("StopLossBuy05") between "Buy05" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 12. - IF the stoploss of Buy05 is triggered, -THEN a pending order (buy stop) "Buy07" has to be set. - The lot-size for "Buy07" has to be adjustable, see list input parameters: “Lotsize Buy07”. - The gap ("BuyGAP07") between "Buy06" and buy stop "Buy07" has to be adjustable, see list input parameters. 13. - IF the buy stop "Buy07" trade is triggered, -THEN place a stop loss "StopLossBuy06" on Buy06. - The gap ("StopLossBuy06") between "Buy06" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. 14. - IF the stoploss of Buy06 is triggered, -THEN a pending order (buy stop) "Buy08" has to be set. - The lot-size for "Buy08" has to be adjustable, see list input parameters: “Lotsize Buy08”. - The gap ("BuyGAP08") between "Buy07" and buy stop "Buy08" has to be adjustable, see list input parameters. 15. - IF the buy stop "Buy08" trade is triggered, -THEN place a stop loss "StopLossBuy07" on Buy07. - The gap ("StopLossBuy07") between "Buy07" and his stoploss (placed on the profit side) has to be adjustable, see list input parameters. A display box on the left side of the trading-screen, that shows: (see jpeg for more detail) - # Buy Orders shows amount of buy orders - # Sell Orders shows amount of sell orders - # Buy Lots shows summary of buy lots - # Sell Lots shows summary of sell lots - # Buy Profit shows summary of buy loss/profits - # Sell Profit shows summary of sell loss/profits - # Loss/Profit: shows total summary loss/profit on account Buttons on the trading-screen: (see jpeg for more detail) Buy Open a buy-order manually (equal to the value in “Buy01 Lotsize”) Close All Closes all opened trades and pending orders Input Parameters: Lotsize Buy01: The size of the initial trading lot (long) Trailing Stop Buy01: Start for trailing stop on initial trade (in points) Trailing Step Buy01: Trailing steps on initial trade (in points) Lotsize Sell01: The size of the trading lot (short) SellGAP01: The gap between Buy01 and Sell01 (in points) StopLossSell01: The gap between Sell01 and his stoploss IN PROFIT (in points) (Only activated when Sell02 is trigered) Lotsize Sell02: The size of the trading lot (short) SellGAP02: The gap between Sell01 and Sell02 (in points) StopLossSell02: The gap between Sell02 and his stoploss IN PROFIT (in points) (Only activated when Sell03 is trigered) Lotsize Sell03: The size of the trading lot (short) SellGAP03: The gap between Sell02 and Sell03 (in points) StopLossSell03: The gap between Sell03 and his stoploss IN PROFIT (in points) (Only activated when Sell04 is trigered) Lotsize Sell04: The size of the trading lot (short) SellGAP04: The gap between Sell03 and Sell04 (in points) StopLossSell04: The gap between Sell04 and his stoploss IN PROFIT (in points) (Only activated when Sell05 is trigered) Lotsize Sell05: The size of the trading lot (short) SellGAP05: The gap between Sell04 and Sell05 (in points) StopLossSell05: The gap between Sell05 and his stoploss IN PROFIT (in points) (Only activated when Sell06 is trigered) Lotsize Sell06: The size of the trading lot (short) SellGAP06: The gap between Sell05 and Sell06 (in points) StopLossSell06: The gap between Sell06 and his stoploss IN PROFIT (in points) (Only activated when Sell07 is trigered) Lotsize Sell07: The size of the trading lot (short) SellGAP07: The gap between Sell06 and Sell07 (in points) StopLossSell07: The gap between Sell07 and his stoploss IN PROFIT (in points) (Only activated when Sell08 is trigered) Lotsize Sell08: The size of the trading lot (short) SellGAP08: The gap between Sell07 and Sell08 (in points) Lotsize Buy02: The size of the trading lot (long) BuyGAP02: The gap between Buy01 and Buy02 (in points) StopLossBuy02: The gap between Buy02 and his stoploss IN PROFIT (in points) (Only activated when Buy03 is trigered) Lotsize Buy03: The size of the trading lot (long) BuyGAP03: The gap between Buy02 and Buy03 (in points) StopLossBuy03: The gap between Buy03 and his stoploss IN PROFIT (in points) (Only activated when Buy04 is trigered) Lotsize Buy04: The size of the trading lot (long) BuyGAP04: The gap between Buy03 and Buy04 (in points) StopLossBuy04: The gap between Buy04 and his stoploss IN PROFIT (in points) (Only activated when Buy05 is trigered) Lotsize Buy05: The size of the trading lot (long) BuyGAP05: The gap between Buy04 and Buy05 (in points) StopLossBuy05: The gap between Buy05 and his stoploss IN PROFIT (in points) (Only activated when Buy06 is trigered) Lotsize Buy06: The size of the trading lot (long) BuyGAP06: The gap between Buy05 and Buy06 (in points) StopLossBuy06: The gap between Buy06 and his stoploss IN PROFIT (in points) (Only activated when Buy07 is trigered) Lotsize Buy07: The size of the trading lot (long) BuyGAP07: The gap between Buy06 and Buy07 (in points) StopLossBuy07: The gap between Buy07 and his stoploss IN PROFIT (in points) (Only activated when Buy08 is trigered) Lotsize Buy08: The size of the trading lot (long) BuyGAP08: The gap between Buy07 and Buy08 (in points) Take Profit: Once profit is reached (in currency), EA closes all trades Continues Trading: True: EA automatically opens initial trade again False: EA stops trading after Take Profit is reached