Questions from Beginners MQL5 MT5 MetaTrader 5 - page 715

 
Artyom Trishkin:
Calculate the second buffer on its normal values, for example (if we want to calculate 10 bars for "future" display), then calculate this buffer on Buff[9] -- Buff[8] -- Buff[n] -- Buff[0] values, and then output this buffer with non-zero offset. Set the buffer offset by the desired number of bars into the future - 10 in this case

That's right. You got me exactly right. Thank you!

Question - how to set an offset from the zero bar of the indicator buffer and into the future?

I tried it, the indicator doesn't understand it. Zero bar is the edge of the indicator.

 
Artyom Trishkin:
Calculate the second buffer on its normal values, for example (if you need to calculate 10 bars to display "future"), then calculate this buffer on values Buff[9] -- Buff[8] -- Buff[n] -- Buff[0], and then output this buffer with non-zero offset. Set the buffer offset to the desired number of bars in the future - 10 in this case.
Interesting solution, thanks.
 
Alexey Viktorov:
Interesting solution, thank you.

draw the future in the present?

It's elementary.

but the future in the future how?

 
Renat Akhtyamov:

draw the future in the present?

it's elementary.

but the future in the future how?

PLOT_SHIFT

Shift of the graphical plotting of the indicator along the time axis in bars

int

Документация по MQL5: Пользовательские индикаторы / PlotIndexGetInteger
Документация по MQL5: Пользовательские индикаторы / PlotIndexGetInteger
  • www.mql5.com
Пользовательские индикаторы / PlotIndexGetInteger - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Renat Akhtyamov:

draw the future in the present?

It's elementary.

But what about the future?

Put the MAA on the chart - it ends at zero bar. And now, in its settings, enter 10 in the shift parameter - it will shift 10 bars to the right.

That's what I was talking about - calculate the "future" in the normal position and shift it to the future with that shift. Or into the past - whatever you want.

 
Alexey Viktorov:

PLOT_SHIFT

Shift of indicatorplotting along time axis in bars

int

THANKS A LOT!!!!
 
Artyom Trishkin:

Put the MA on the chart - it ends at bar zero. And now in its settings, enter 10 in the shift parameter - it will shift 10 bars to the right.

That's what I was saying - calculate the "future" in its normal position and shift it to the future with this shift. Or to the past - as you like.

The MA is built in the main window, right?

I asked about the indicator window, not the main one.

There is no problem with the main one.

 
Renat Akhtyamov:

I mean the indicator window (sub-window as it were), not the main window.

There is no problem with the main one.

Well ... I have already made my point, Alexey explained it to you.
 
Artyom Trishkin:
Well ... I've already made my point, Alexey explained it to you.

THANK YOU!

Anyway.

Shifting the line in the indicator window to the right, beyond the zero bar, does work on the MT5 platform.

MT4 doesn't have that feature, it didn't work, whatever I did.

Also MT5 as far as I know has 3D modelling capability unlike MT4.

This is all very cool!

I broke down.

I`m switching to MT5!!! // And it's urgent ;)

 
Renat Akhtyamov:

Bottom line.

Shifting the line in the indicator window to the right, beyond the zero bar, does work on the MT5 platform.

MT4 does not have such an opportunity.

Also MT5 as far as I know has the possibility of 3D modelling unlike MT4.

This is all very cool!

I broke down.

Switching to MT5!!! // and urgently ;)

Hello ... What do you mean you can't?

What is it then? Five minutes in the editor...

Screenshots of the MetaTrader trading platform

EURUSD, D1, 2017.01.11

MetaQuotes Software Corp., MetaTrader 4, Demo

EURUSD, D1, 2017.01.11, MetaQuotes Software Corp.


Reason: