here is the code:
Code: Select all
[LegacyColorValue = true]
Variables: oneTick (0),
if value1>-1 then plot1(value1,"BuyFractal");
if value2>-1 then plot2(value2,"SellFractal");
oneTick = MinMove/PriceScale;
TickShift = oneTick * TicksToShift;
//High shifted up TicksToShift ticks
Plot1(High + TickShift, "High");
//Low shifted down TicksToShift ticks
Plot2(Low - TickShift, "Low");
In the DOW Jones Chart ($INDU) it seems that the dots are to near by the candle.
In the CBK-XET Chart it looks good.
Here is The Scale from the Chart:
And that is the scale from the indicator:
When i set the tickstohift to 2000 like this:
Then the DOW Jones looks good.
And the CBK-Chart looks terrible.
So i look for an formula, where the Differenz between the high and the dot und between the low and the dot is still the same.