Just draw Trend Up or Trend Down before the Expert Advisor “TrendMeLeaveMe” start. Set properties, run expert and go to sleep or work.
This expert does not work automatically. You must draw trend up, trend down or horizontal trend. Name it buy stop or sell stop , set Buy Stop_Step Upper, Buy Stop_Step Lower, Sell Stop_Step Upper and Sell Stop_Step Lower Properties.
When price enter area between your buy stop trend and Buy Stop_Step Lower, expert will open buy stop order at Price Buy Stop_Step Upper. When price enter area between your sell stop trend and Sell Stop_Step Upper, expert will open sell stop order at Price Sell Stop_Step Lower.
The expert will always modify Open Price to both orders when the price walks with the trends Until Price goes out Previous area.
You can set Buy Stop_Stop Loss , Buy Stop_Take profit and Buy Stop_Lot to buy stop. You can set Sell Stop_Stop Loss , Sell Stop_Take profit and Sell Stop_Lot to sell stop.
Look this chart to more explain:
MT4 Forex Robot Characteristics
Currency pairs: USD crosses recommended
Platform: Metatrader 4
Type: Expert advisor
Time frames: 1-Minute, 5-Minutes, 15-Minutes.
Copy and paste the TrendMeLeaveMe.mql4 into the MQL4 Experts folder of the Metatrader 4 trading platform.
You can access this folder from the top menu as follows:
File > Open Data Folder > MQL4 > Experts (paste here)