- On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5 - You must set the array to asSeries to get the proper index.
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5 - More buffers, more work per tick.
- Don't mix apples and oranges.
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
Hello,
I am new to MT5, shifting over from MT4 and I am having some issues with last candle values on an indicator.
My EA looks to see if the 1H RSI of the last candle is higher than 4H RSI of the last candle.
I am wanting to know how to get the RSI of last candle similar to the MT4 way: 1Hrsi=iRSI(NULL,PERIOD_H1,14,PRICE_CLOSE,0)
My code is:
To try to get the RSI values:
The problem I am having is that rsi1Get(1) doesn't work properly and in back testing when I have 3 different timeframe rsi's then the testing will take over 30 minutes to 1 hour for testing 1 year's worth of tick data, but if I change to rsi1Get(0) it will take under 30 minutes. With only 2 different RSI timeframes (1h and 4h for example) it's very fast like under 10 minutes. Does adding more buffers increase testing times exponentially?