The values from the lines are in buffers. How can I calulate and draw an average line from each line?
Please be more clear!
If the former, just add more buffers and calculate the Moving Average in the same way used in the example code "Custom Moving Averages.mq4" in the Indicators folder.
If the latter, then you can use the same example code, but use iCustom() to obtain the data from the base indicator.
I want to see the lines not with the steps, I want to see it as continous line.
The best would be I can calculate the average price beween the last 2/3 different prices.
How can I do that calculation in a good way, so that the indicators hasn't work to much.
Thanks, but it isn't working. I tried:
double test =iMAOnArray(PDailyBuffer,0,3,0,MODE_SMA,0);
And PDailyBuffer is my indicator buffer from that line. But the variable test is always EMPTY_VALUE even I can see the PDailyBuffer line.
I think you don't understand what a Multi-Time-frame (MTF) Indicator is. If it is representing data from higher time-frames, then it will always be in "steps".
You can only get around that, if the type of indicator can be calculated with equivalent representation based on lower time frame data, but in that case you don't need to use the MTF indicator.