Happy I think he is looking for something like this.....for a given swing (need a way to decide this) give alerts at specified fibonnacci levels
just showing fibonnacci levels for morning fall of today as e.g.
just showing fibonnacci levels for morning fall of today as e.g.
Happy Singh Ji
I need an exploration, which will alert the Fibonacci retracement values when a price crosses it for a swing,the complete swing can be intraday or overnight.
This will be on a 5 minute time frame.
For example for a swing of intraday high and intraday low, the exploration should alert that the price has crossed the fibonacci values which can be changed like 23%,50%. etc.
Thanks
Amit
I need an exploration, which will alert the Fibonacci retracement values when a price crosses it for a swing,the complete swing can be intraday or overnight.
This will be on a 5 minute time frame.
For example for a swing of intraday high and intraday low, the exploration should alert that the price has crossed the fibonacci values which can be changed like 23%,50%. etc.
Thanks
Amit
Code:
_SECTION_BEGIN("FIB_Range");
n = Param("Num of Bars",10,2,50,1);
Hi = SelectedValue(HHV(H,n));
Lo = SelectedValue(LLV(L,n));
D = Hi - Lo;
P50 = Hi-D/2;
M50 = Lo-D/2;
P150 = Hi+D/2;
Plot(SelectedValue(Hi),"100%",colorBlue,styleDashed,0,0,10);
Plot(SelectedValue(Lo)," 0%",colorRed,styleDashed,0,0,10);
Plot(SelectedValue(P50),"50%",colorLightGrey,styleDashed,0,0,10);
Plot(SelectedValue(P150),"50%",colorBlueGrey,styleDashed,0,0,10);
Plot(SelectedValue(M50),"-50%",colorLime,styleDashed,0,0,10);
_SECTION_END();
The above code does not try to determine the swing high or low or range over which swing high/lows are made.
We need to select the first bar of the range (swing high or low) for which we want to plot range and other SR lines.
Set the parameter Num of Bars.
For now have added 0,50,100,150 & -50%, its easy to add any other levels of your choice.
Happy