Download MetaTrader 5

Future plots

To add comments, please log in or register
rhythmstic
19
rhythmstic  
I need to plot vertically using the EVENT object.  Does anyone know how to adapt this to plot price projections in the future space. thanks.
Fernando Carreiro
3918
Fernando Carreiro  
rhythmstic: There doesn't appear to be a way of plotting algorithmic price projections into the future.  I don't need any algorithms just how to plot forward from the current bar. Could someone help me out here, thanks.

EDIT: Oops, just realised you wanted it on a Graphical object and not for the buffers. I've never used  EVENT objects, but I am assuming you can just set the anchor point at a future date like most other graphical objects.

ObjectCreate( ..., ..., OBJ_EVENT, ..., date_time_anchor, 0 )
For placing buffer data in the "future", just apply a shift of the indicator's plotting along the time axis in bars. The Alligator indicator is a good example:


Alligator
Alligator
  • votes: 12
  • 2005.11.29
  • MetaQuotes Software Corp.
  • www.mql5.com
In principle, Alligator Technical Indicator is a combination of Balance Lines (Moving Averages) that use fractal geometry and nonlinear dynamics. The green line (Alligator’s Lips) is the Balance Line for the value timeframe, one more level lower (5-period Smoothed Moving Average, moved by 3 bars into the future). Lips, Teeth and Jaw of the...
rhythmstic
19
rhythmstic  
Fernando Carreiro:

Just apply a shift of the indicator's plotting along the time axis in bars. The Alligator indicator is a good example:


Hi Fernando, thank you for the quick response.  I will look at that.  I am new to QT5 so your help is much appreciated.
Fernando Carreiro
3918
Fernando Carreiro  
rhythmstic: Hi Fernando, thank you for the quick response.  I will look at that.  I am new to QT5 so your help is much appreciated.
Please re-read my previous post, as I have edited it with extra info!
rhythmstic
19
rhythmstic  
Fernando Carreiro:
Please re-read my previous post, as I have edited it with extra info!
I need something like Time[-1] to plot (without shifting) beyond the current bar and even into non-trading days.  I want to see the future  <|:)
Fernando Carreiro
3918
Fernando Carreiro  
rhythmstic: I need something like Time[-1] to plot (without shifting) beyond the current bar and even into non-trading days.  I want to see the future  <|:)
That is not how it works! You can't use negative array indices so you will have to use shifting or other options as stated.
To add comments, please log in or register