int OnInit() { ArrayResize(rsiHandle, ArraySize(symbol_loop)); for(int i = 0; i < ArraySize(symbol_loop); i++){ rsiHandle[i] = iRSI(symbol_loop[i], PERIOD_CURRENT, 14, PRICE_CLOSE); } return(INIT_SUCCEEDED); }
You have to allocate dynamic array before use like above.
CopyBuffer(rsiHandle[i], 0, 1, 1, rsi);
note: I did not even compile your code. There might be other issues.
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
Hi, i want to call the most recent RSI value in the OnTick for multiple symbols although im currently getting the following error: 'CopyBuffer' - no one of the overloads can be applied to the function call. What's the solution?