Help with trend line code

 

Dear all,


I hope someone of you can help me sending a code that allows me to control how a specific EA trades.


What I need to do is to manually drive an expert advisor and make it stop tradding when a specific condition meets.


The idea is to manually draw a trend line on MT4, and make the EA stop work if this trend line is broken. For instance:


I draw a down trend line whille the EA is working for SELL ONLY, and the price starts going up and breaks the trend line. At this point I want the EA to stop trading.


I send a sample image


Thank you in advance


Regards

 
  1. You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  2. You do NOT try to attach images, just insert them