You can not call a custom indicator in the place where the price enumerator should be in the iMA() call. If you want the values of "differenceok" smoothed by iMA() you have store the values of "differenceok" to a buffer and then ise iMAOnArray() to get smother values of "differenceok"
You can not call a custom indicator in the place where the price enumerator should be in the iMA() call. If you want the values of "differenceok" smoothed by iMA() you have store the values of "differenceok" to a buffer and then ise iMAOnArray() to get smother values of "differenceok"
Thanks Mladen
you are always gentle and useful!
Btw I've tried to solve but without any results: maybe I have to start with programming simple indicators!
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi all
is it possible to apply TMA Centered Oscillator to another indicator rather than the price?
In other terms, may I apply the TMA C.O. to the indicator I attach here?
Thanks
Lucmat
differenceok.mq4Yes it can
Simple replace the places where the price is used with an iCustom() call to that indicator
Yes it can Simple replace the places where the price is used with an iCustom() call to that indicator
Hi Mladen
i've tried in any way but every attemps failed: the result is always that my mt4 stopped to work!
May you help me?
Thanks in advance.
Lucmat
Hi Mladen
i've tried in any way but every attemps failed: the result is always that my mt4 stopped to work!
May you help me?
Thanks in advance.
LucmatCan you post any of those attempts so that we can check what was done wrong?
Can you post any of those attempts so that we can check what was done wrong?
Ok, but please don't make fun of me
I'm a real bad programmer: in reality I think I don't know well what I've done!
Thanks
Lucmat
tma_centered_oscillator_difference.mq4
Ok, but please don't make fun of me
Thanks
Lucmat
tma_centered_oscillator_difference.mq4Lucmat
Which indicator is the "differenceok" indicator?
Also, I am assuming that this is an error
work[r][0] = iMA(NULL,0,1,0,MODE_SMA,iCustom(NULL,0,"differenceok",12,1,0),i);
You can not call a custom indicator in the place where the price enumerator should be in the iMA() call. If you want the values of "differenceok" smoothed by iMA() you have store the values of "differenceok" to a buffer and then ise iMAOnArray() to get smother values of "differenceok"
Lucmat
Which indicator is the "differenceok" indicator?
Also, I am assuming that this is an error
work[r][0] = iMA(NULL,0,1,0,MODE_SMA,iCustom(NULL,0,"differenceok",12,1,0),i);
You can not call a custom indicator in the place where the price enumerator should be in the iMA() call. If you want the values of "differenceok" smoothed by iMA() you have store the values of "differenceok" to a buffer and then ise iMAOnArray() to get smother values of "differenceok"Thanks Mladen
you are always gentle and useful!
Btw I've tried to solve but without any results: maybe I have to start with programming simple indicators!
Thanks the same
Lucmat
Thanks Mladen
you are always gentle and useful!
Btw I've tried to solve but without any results: maybe I have to start with programming simple indicators!
Thanks the same
LucmatThe indicator "differenceok" is posted at post 161.
The indicator "differenceok" is posted at post 161.
Lucmat
Try it out now : differenceok.mq4 tma_centered_oscillator_difference_1.mq4
Lucmat Than this should be it
Hi Mladen and all
is it possible to make "SMA centered oscillator binary" with the "TMA centered oscillator"?
Thanks for all
Lucmat
Hi Mladen and all
is it possible to make "SMA centered oscillator binary" with the "TMA centered oscillator"?
Thanks for all
LucmatLucmat
Here is a centered TMA version : tma_centered_oscillator_binary.mq4