short question New comment fxnew 2014.02.17 16:29 I'm new to MT4 programming, I guess the answer to my question is simple: in the definition part there is: double A[]; in the program part there is: A[0]=trend[1]; // trend[1] in this case has the value -1 Comment(trend[1]," ",A[0]); now, when looking at the comment window by launching the (complete) indicator, I see in the comment window -1 and 0 (-1 for trend[1] is correct) but I'd like to have the variable A[0] showing the same value ("-1"), but it shows 0?? thanks in advance What to do when Data window shows different value then the iCustom value? Questions from Beginners MQL5 MT5 MetaTrader 5 how to get value of this indicator? Ex Ovo Omnia 2014.02.17 16:31 #1 Change double A[]; to double A[1]; New comment
I'm new to MT4 programming, I guess the answer to my question is simple:
in the definition part there is:
double A[];
in the program part there is:
A[0]=trend[1]; // trend[1] in this case has the value -1
Comment(trend[1]," ",A[0]);
now, when looking at the comment window by launching the (complete) indicator,
I see in the comment window -1 and 0 (-1 for trend[1] is correct) but I'd like to have the variable A[0] showing the same value ("-1"),
but it shows 0??
thanks in advance