Questions from Beginners MQL5 MT5 MetaTrader 5 - page 445
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
Good afternoon,
I am using the standard library,
Several indicators are generating trading signals
have defined thresholds(ThresholdOpen and ThresholdClose)
How are the trading signals compared?
For example:
-the buy signal of one indicator, it is m_pattern_0 and it is equal to 50,
-but the second indicator tells us to sell, and its m_pattern_1 is 50
but we have not specified anywhere that m_pattern_0 and m_pattern_1 must be compared,
how does this work?
read
Let's calculate the result of the final vote. A weighted forecast obtained from the MA module is calculated as 0.4 * 100 = 40.
Weighted predictionfrom theStochastic module is calculated as 0.8 * (-80) = -64.
Minus-because it turned around.
Indicator
Buy condition - m_pattern_0 int value without a sign
Sell condition -m_pattern_1 int value without a sign
where is the sign from?
read
Let's calculate the result of the final vote. A weighted forecast obtained from the MA module is calculated as 0.4 * 100 = 40.
Weighted predictionfrom theStochastic module is calculated as 0.8 * (-80) = -64.
Minus-because it turned around.
Indicator
Buy condition - m_pattern_0 int value without a sign
Sell condition -m_pattern_1 int value without a sign
where is the sign from?
I will describe the question in more detail, based on theStochastic indicator
article MQL5 MASTER: NEW VERSION
Each of the Signals has its own set of market patterns (a specific combination of price and indicator values).
define values in the constructor
Variant 2.
At the same time, the Stochastic oscillator has turned downwards and formed a divergence with the price. It is one of the models of Stochastic that implies fall of the price. The significance of this model is 80.
If I understand correctly, it is variant : m_pattern_3; // model 3 "divergence of the oscillator and price".
The weighted prediction fromthe Stochastic module is calculated as 0.8 * (-80) = -64
Question How did the minus appear?
...
if the indicator value on the last bar is higher than the penultimate bar (value increases) - plus
If the indicator value on the last bar is lower than the penultimate bar (value decreases), then minus
right?
if the indicator value on the last bar is higher than the penultimate bar (value increases) - plus
If the indicator value on the last bar is lower than the penultimate bar (value decreases), then minus
right?
first time I read the article https://www.mql5.com/ru/articles/488 and missed the point, even though it is highlighted in colour)
First we definea plus sign anda minus sign foropening long orshort positions or forclosing short orclosing long positions respectively. Then we calculated their absolute values for comparison with Signal_ThresholdOpen and Signal_ThresholdClose, which are always with a positive sign.
Thank you for your help!
I'm not offended - the boss is the boss!
Well, I just hope I can get some sensible answers to my new questions about the code...