- How to programmatically get the value of an indicator which is applied to the value of another indicator
- EMA on indicators, instead of template.
- (MQL4) How to code First indicator's data?
ENUM_APPLIED_PRICE applied_price // type of price or handle
See iMA MQL5 reference manual. The small dragon asks for the way, the large dragon studies the map.
See iMA MQL5 reference manual. The small dragon asks for the way, the large dragon studies the map.
RSI_14[i]=iRSI(Symbol(),0,14,PRICE_CLOSE,i); RSI_3[i]=iRSI(Symbol(),0,3,RSI_14[i],i);
I tried with the following code but rsi 3 just return zero all time.
This is MQL 4. In MQL 5 it works different, you first need to obtain a handle to the indicator and then use CopyBuffer to read out the indicator data.
And you can pass the first indicator handle to obtain a second indicator handle.
This is MQL 4. In MQL 5 it works different, you first need to obtain a handle to the indicator and then use CopyBuffer to read out the indicator data.
And you can pass the first indicator handle to obtain a second indicator handle.
Can you give me an example? Thank you so much!
int RSIonRSIhandle=iRSI(NULL,0,Period,RSIhandle);
Like so maybe. See the reference manual. https://www.mql5.com/en/docs/indicators
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use