How to placed fixed 300 pips stop loss for any pair

 

This is probably a very easy question, I am new to mql5:

When I write EA, I am used to using ATR for placing a stop loss on any order.

How to place a fixed 300 pips stop loss for any pair on an order?

 
Shashank Kumar:

This is probably a very easy question, I am new to mql5:

When I write EA, I am used to using ATR for placing a stop loss on any order.

How to place a fixed 300 pips stop loss for any pair on an order?

Simple script: it opens a BUY position. In this case, you can set Stop loss and Take profit.

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