Suppose I want to use a custom indicator-like a certain type of moving average- on RSI values. Then I need to set the RSI values in an array, and apply the moving average on that right? How do I do that? iCustom doesnt allow me to apply indicators on arrays.
- How to programmatically get the value of an indicator which is applied to the value of another indicator
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Array applied on moving average HELP
1mathboy1:
Suppose I want to use a custom indicator-like a certain type of moving average- on RSI values. Then I need to set the RSI values in an array, and apply the moving average on that right? How do I do that? iCustom doesnt allow me to apply indicators on arrays.
You use iMAOnArray() search the Forum there have been posts about iMAOnArray in the last couple of months.
Suppose I want to use a custom indicator-like a certain type of moving average- on RSI values. Then I need to set the RSI values in an array, and apply the moving average on that right? How do I do that? iCustom doesnt allow me to apply indicators on arrays.
1mathboy1: iCustom doesnt allow me to apply indicators on arrays.
#define nVALUES 20 double arr[nValues]; for(int iArr = 0; iArr < nValues; iArr++) arr[iArr] = iCustom(..., iArr);Was that so hard?
@WHRoeder: sorry, I dont understand your comment. (I'm not very experienced with programming) isnt the last parameter of iCustom how many bars to shift?
@RaptorUK, no i meant any indicator that I can find on code base, and i mentioned moving averages as an example. Like, lets say I want to apply PEMA (pentuple exponential moving average) to RSI in an EA, so I can get trading signals from whenever they intersect.
1mathboy1:
You have to code this yourself . . .
@RaptorUK, no i meant any indicator that I can find on code base, and i mentioned moving averages as an example. Like, lets say I want to apply PEMA (pentuple exponential moving average) to RSI in an EA, so I can get trading signals from whenever they intersect.
1mathboy1: @WHRoeder: sorry, I dont understand your comment. (I'm not very experienced with programming) isnt the last parameter of iCustom how many bars to shift?
Yes. Why would you want to fill an array with the same value?
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