Calling an indicator is clear, but how to calculate SL or potential in a trade. For example SL = atr (14) in pips *2. Or potential, how to set the parameters of the atr passed and compare with the average
DmitrievSS: The indicator call is clear, but how to calculate SL or potential in a trade. For example SL = atr (14) in pips *2. Or potential, how to set the parameters of the passed APR and compare with the average
ATR values are the values in the price category. You add/decrease this value from the opening price of the order and that's it. Yes, you can multiply by a given coefficient. At my time, when I was investigating volatility, the most acceptable coefficient was 5 (for H1).
DmitrievSS: The indicator call is clear, but how to calculate SL or potential in a trade. For example SL = atr (14) in pips *2. Or potential, how to set the parameters of the passed atr and compare with the average
To understand what the indicator, variable, function and other things give, it is very convenient to output via Print(); Print and you will see the value, when you see it, you will be able to understand what to do with it.
P.S. Print all calculations - it is very fast and convenient.
Good afternoon all. Can you tell me, is it possible to make the Expert Advisor receive the trading history from another terminal, in online mode? Both terminals are installed on the same computer.
Sergey Morozov: Good day to all. Can you advise how to make the Expert Advisor receive the trade history from another terminal in online mode? Both terminals are installed on the same computer.
As I see, you need "Terminal2 >> Hosting >> Terminal1".
Terminal2 sends history to server when it changes, and terminal1 gets it on request. The only question is how often terminal1 needs history?
Sergey Morozov: Good day to all. Can you tell me if it is possible for an EA to receive the trading history from another terminal, in online mode? Both terminals are installed on the same computer.
Need a couple of simple EAs: 1 and 2. One terminal writes (1) information to a file, the other (2) reads.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
1.I wrote an owl, but it's not optimised. No errors appear. What should I look at?
iATR
iATR
The indicator call is clear, but how to calculate SL or potential in a trade. For example SL = atr (14) in pips *2. Or potential, how to set the parameters of the passed APR and compare with the average
ATR values are the values in the price category. You add/decrease this value from the opening price of the order and that's it. Yes, you can multiply by a given coefficient. At my time, when I was investigating volatility, the most acceptable coefficient was 5 (for H1).
The indicator call is clear, but how to calculate SL or potential in a trade. For example SL = atr (14) in pips *2. Or potential, how to set the parameters of the passed atr and compare with the average
To understand what the indicator, variable, function and other things give, it is very convenient to output via Print(); Print and you will see the value, when you see it, you will be able to understand what to do with it.
P.S. Print all calculations - it is very fast and convenient.Good day to all. Can you advise how to make the Expert Advisor receive the trade history from another terminal in online mode? Both terminals are installed on the same computer.
As I see, you need "Terminal2 >> Hosting >> Terminal1".
Terminal2 sends history to server when it changes, and terminal1 gets it on request. The only question is how often terminal1 needs history?
Good day to all. Can you tell me if it is possible for an EA to receive the trading history from another terminal, in online mode? Both terminals are installed on the same computer.
Need a couple of simple EAs: 1 and 2. One terminal writes (1) information to a file, the other (2) reads.
Need a couple of simple EAs: 1 and 2. One terminal writes (1) information to a file, the other (2) reads.
Yes, I was wrong, I didn't take into account that it all works on the same machine(
Hi!
Can someone suggest an analogue of replacing MaxLotCheck() from MT5 for MT4, thanks