How to make EA place fixed stop-loss?

 
How do I get my Expert Advisor to set a fixed stop loss. For example (buy), I want the EA to return 3 candles and place a stop loss below the third candle. Thank!
 

Do it manually on the chart or learn to program, start here:

https://www.mql5.com/en/forum/296230      // How to start with MQL5
https://www.mql5.com/en/forum/227893      // New to forex trading
https://www.mql5.com/en/articles/496      // Quickstart for newbies
https://www.mql5.com/en/forum/212020      // Where Do I start from?
https://www.mql5.com/en/forum/214904      // Help for beginners
https://www.mql5.com/en/articles/4368     // EA-freelancer Pflichtenheft
https://www.mql5.com/en/articles/4304     // Indi

How to start with MQL5
How to start with MQL5
  • 2018.12.24
  • www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
 
Carl Schreiber :

Do it manually on the chart or learn to program, start here:

https://www.mql5.com/en/forum/296230       // How to start with MQL5
https://www.mql5.com/en/forum/227893       // New to forex trading
https://www.mql5.com/en/articles/496       // Quickstart for newbies
https://www.mql5.com/en/forum/212020       // Where Do I start from?
https://www.mql5.com/en/forum/214904       // Help for beginners
https://www.mql5.com/en/articles/4368      // EA-freelancer Pflichtenheft
https://www.mql5.com/en/articles/4304      // Indi

I work in MetaEditor4 at the moment when my broker only offers that solution, is it the same language as MLQ5? When I try to navigate in the MLQ4 forum, I am always directly directed to MLQ5, which is really annoying ....
 
Andreas is it the same language as MLQ5?
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum?
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. No it's not the same language.

  3. It's spelled MQL5

 
Andreas:
I work in MetaEditor4 at the moment 

I will move this topic to the MQL4 section.