Quote:
Originally Posted by Enivid
The main reason for not drawing in color is that you've set the type of the plot to DRAW_LINE instead of DRAW_COLOR_LINE. But there are also some other minor errors in the code. Please, have a look at the attached Color_MA that is based on your code, but has no errors.
By the way, now it's possible to attach .mq5 files to the posts, so no need to list the code inside the forum messages.
|
Yes this code is working properly, thanks.
I tried to plot the MA value on the chart with
ObjectSetString (0, "myMA_now_1", OBJPROP_TEXT,"MA ["+IntegerToString(MA_Period)+"] @ "+DoubleToString(MATempBuffer[0],4));
Unfortunatly the value is way off the actual reading.
What can I do?