Questions from Beginners MQL4 MT4 MetaTrader 4 - page 132
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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