Must the indicator appear when running an EA?

Michael Mureithi Mbugua
222
Michael Mureithi Mbugua  

I have an EA that uses zigzag. When testing it out in the strategy tester, the zigzag lines appear so I can watch what is happening. However, when I load the EA on to the charts, the zigzag lines do not appear. Are they supposed to appear?

William Roeder
25310
William Roeder  
EAs have no eyes; they don't need to see it on the chart. If you want to see it, add it to the chart.
Michael Mureithi Mbugua
222
Michael Mureithi Mbugua  
William Roeder:
EAs have no eyes; they don't need to see it on the chart. If you want to see it, add it to the chart.

Thanks.


Follow up question: Can a custom indicator be designed to calculate variables of the datetime type? For example, to plot lines in the future?

Keith Watford
Moderator
31752
Keith Watford  
Murray Mbugua:

Thanks.


Follow up question: Can a custom indicator be designed to calculate variables of the datetime type? For example, to plot lines in the future?

It can draw objects in the future but not buffers.

Michael Mureithi Mbugua
222
Michael Mureithi Mbugua  
Keith Watford:

It can draw objects in the future but not buffers.

Okay. Thanks. I didn't want to start creating it without the green light. Let me get to it. If I have any question I will post it here.

William Roeder
25310
William Roeder  
Keith Watford: … but not buffers.

Buffers can be, just use a positive shift with SetIndexShift. shifted

#define SHIFT 1while(iBar >= -SHIFT){
   ⋮
   buffer[iBar+SHIFT] = …;
}