stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Question about indicator shift -1
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4660
Page 1 of 1
Author:  imamushroom [ Tue Mar 22, 2016 4:05 am ]
Post subject:  Question about indicator shift -1

Hi,

I've been examining various indicators and EA's and came across an indicator with a shift of -1. I'm familiar with shifts from 0..x in the positive sense but not negative. What does this mean?

Looking at the documentation is doesn't give any clues and I quote:

"shift
[in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago)."

Is it a projection of the future price (Linear Regression?)?
How accurate is it?
How do you use it?

Thanks in advance for your help.
Author:  renexxxx [ Tue Mar 22, 2016 6:36 am ]
Post subject:  Question about indicator shift -1

imamushroom ยป Tue Mar 22, 2016 2:05 pm wrote: I've been examining various indicators and EA's and came across an indicator with a shift of -1. I'm familiar with shifts from 0..x in the positive sense but not negative. What does this mean?
I think that you mean that for calculating the indicator value for a shift=n, it uses the price feed values for shift=n-1. Is that right? This is obviously not possible when shift=0 (as I would mean peeking into the future, but for shift=1, it can refer to the price feed of the current candle (i.e. shift=0).

This means that the indicator would repaint. A classic example is TMA (triangular moving average) where the averaging is done using price values from the past and price values from the future. TMA is also a repainting indicator.

Hope this answers your question.
Author:  imamushroom [ Thu Mar 24, 2016 10:57 am ]
Post subject:  Question about indicator shift -1

Thanks for the clarification.
Author:  JonCodesBad [ Fri Mar 25, 2016 10:05 pm ]
Post subject:  Question about indicator shift -1

Edit: Think I was wrong and may mislead, so better to remove.

Jon
Author:  imamushroom [ Sat Mar 26, 2016 4:58 am ]
Post subject:  Question about indicator shift -1

Will do, thanks
Author:  nanningbob [ Sat Jul 02, 2016 3:42 pm ]
Post subject:  Question about indicator shift -1

Negative shift just moves the MA line back a candle. Positive shift moves the line forward a candle. The question is does moving it back a candle allow that price to project to the present candle and use it for trading or na indicator. ???
All times are UTC Page 1 of 1