Problems using candle ID0 instead candle ID1
-
As I have suggested several times, we must not use the ID0 candle as a reference because it is not defined as it is still forming, we only know the opening while we do not know the size, the closure, whether it is up or down, the maximum , the minimum
Below an example of the intersection of two moving averages


-
@ambrogio You mean, changing the default ID value to 1 in all fxDreema projects?
ID 1 is surely useful in most cases, but I think 0 is still a more logical default value. If it was changed to 1, some scalper would be asking in this forum "why the hell are all my signals lagging one bar", "why doesn't the indexing start from the smallest value, 0" -
@roar Oh it's possible, I gave an example in the use of indicators (and a lot of people stumble on this problem) , could you give an example where it is more logical to use the ID0 candle?
-
@ambrogio said in Problems using candle ID0 instead candle ID1:
@roar could you give an example where it is more logical to use the ID0 candle?
When you need to be as fast as possible. Lets say an EA is designed for trading the NFP turbulence, waiting for the bar to pass is too late.
It is a rare case, but 0 is still the logical starting point.
You can only go up from there: 1,2,3....
If it was 1, you could go up: 2,3,4,5... but also down: 0 -
@roar Interesting, and which block can be used by setting candle ID0 without problems, just for example?
-
@ambrogio
Here's a couple examples where there is no gain of setting ID 1 instead of 0, only lag:

It's just for argument's sake. I do use ID1 nearly every time.
-
Some custom indicators can be designed to have ID0 stable. Some are working with negative values (indicators with predictive/forecast line).