I've been using this indicator for a while and am just trying to get it to display a number corresponding to the lines. It uses moving averages to give either an up or down trend. If the trend is up, the lower line is one color and if it's down, the line is different color.
I've been trying for weeks to display a value as a comment for the direction of the trend: either 1 for an up trend or -1 as a down trend.
The indicator itself has two lines on it but I'm only concerned with the bottom one. I created a "main" variable and have been using what I'm almost certain is the same information that the buffers use to draw the bottom line itself. For some reason, it still isn't displaying the correct values for the trend in the comment when I shift between time frames.
Can anyone see what I'm doing wrong?
I've been trying for weeks to display a value as a comment for the direction of the trend: either 1 for an up trend or -1 as a down trend.
The indicator itself has two lines on it but I'm only concerned with the bottom one. I created a "main" variable and have been using what I'm almost certain is the same information that the buffers use to draw the bottom line itself. For some reason, it still isn't displaying the correct values for the trend in the comment when I shift between time frames.
Can anyone see what I'm doing wrong?
Attached File(s)
Straddle.mq4
2 KB
|
199 downloads