Thank you
Hi phy,
You seem to be an expert in this field, could you please help me with something simiar?
I would like to take a 20 LWMA on a 9 RSI - which I can do with Array - as shown above in previous message post
then I would like to take a 2 CCI on the already calculated 20 LWMA above - this I don't know how to do ?
Your help would be greatly appreciated,
Joe
Write your own CCI code to act upon the array holding the 20 LWMA values since there is not one built in that can be arbitrarily pointed at your LWMA array
or...
Plot the LWMA in the indicator window as a regular indicator index, and then attach the "Commodity Channel Index" Indicator to that subwindow using First Indicator's Data as the input
Write your own CCI code to act upon the array holding the 20 LWMA values since there is not one built in that can be arbitrarily pointed at your LWMA array
or...
Plot the LWMA in the indicator window as a regular indicator index, and then attach the "Commodity Channel Index" Indicator to that subwindow using First Indicator's Data as the input
Hi phy,
Thanks so far, Yes I can put the RSI on a new chart window as the first indicator, then attach a LWMA to look at the first indicator (i.e RSI) , then attach CCI to look at previous indicator (i.e LWMA). That all works well. But how do I code something like that for an EA?
Hi phy, thanks, I can create an LWMA array on the RSI, but dont know how to create a second array on the LWMA which I can use with CCI.
It's almost like an Array of an Array ....???
Not array on array. 3 arrays
rsiArray[] = iRSI(...); // store rsi values bar by bar
lwmaArrray[] = iMAonArray( ...rsiArray...); // store lwma of rsi values bar by bar
cciArray[] = yourCCIfunction( ... lwmaArray...); // store cci of lwma of rsi
Hi phy, thanks very much for your help, looks great, I will try that :)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to calculate a MA of RSI in my Expert Advisor, I try to make an array and then calculate it using iMAonArray, but it's not working.
Please look at my code
Thank you