Use iCustom https://docs.mql4.com/indicators/iCustom or iMA https://docs.mql4.com/indicators/iMA
thanks raptor
but it was to complicated
i found this gave me what i was after
//---- get Moving Average2
ma2=iMA(NULL,0,55,0,MODE_SMA,PRICE_CLOSE,0);
Print ("mov ave 2 ",ma2);
which just prints it out in the journal
then i was able to add or subtract 2 of these
in hind site it seems obvious
but us newbies are dumb
hi guys
I am new to this
i want get the actual value of an ema and subtract it from another value
what i cant figure out is how to get the numerical value
I am sure it is simple but i cannot find reference to it anywhere
thanks in advance