I need some help in a new AFL creation (may be this already exists!!!)
Based on: Pivot Points
Formula: Classical Pivot Points
Pivot point (PP) : (High + Low + Close)/3
First support (S1) : (2 x PP) - High
Second Support (S2) : PP - (High - Low)
Third Support (S3) : Low - 2*(High - Pivot)
First Resistance (R1) : (2 x PP) - Low
Second Resistance (R2) : PP + (High - Low)
Third resistance (R3) : High + 2*(Pivot – Low)
Idea: Apart from using the pivot points for the previous day OHLC, I also want to use it for some important candles across different timeframes.
Requirement:
1. If I drag and drop the afl on the chart, for instance with timeframe 1hour, it should ask for the color parameters for pivot, support and resistance.
2. After selecting the colors, if I click on any candle, the pivot lines should be plotted and remain static i.e the pivot lines should not change if I move the mouse over other candles.
3. If the change the chart timeframe, for instance to 3 minute, still the pivot lines should remain intact.
4. If I drag and drop the same afl again, it should repeat step 1 to 3.
I'm not good in coding, but can pick up with some assistance. Please assist and the help would be much appreciated.
Thanks :thumb:
Based on: Pivot Points
Formula: Classical Pivot Points
Pivot point (PP) : (High + Low + Close)/3
First support (S1) : (2 x PP) - High
Second Support (S2) : PP - (High - Low)
Third Support (S3) : Low - 2*(High - Pivot)
First Resistance (R1) : (2 x PP) - Low
Second Resistance (R2) : PP + (High - Low)
Third resistance (R3) : High + 2*(Pivot – Low)
Idea: Apart from using the pivot points for the previous day OHLC, I also want to use it for some important candles across different timeframes.
Requirement:
1. If I drag and drop the afl on the chart, for instance with timeframe 1hour, it should ask for the color parameters for pivot, support and resistance.
2. After selecting the colors, if I click on any candle, the pivot lines should be plotted and remain static i.e the pivot lines should not change if I move the mouse over other candles.
3. If the change the chart timeframe, for instance to 3 minute, still the pivot lines should remain intact.
4. If I drag and drop the same afl again, it should repeat step 1 to 3.
I'm not good in coding, but can pick up with some assistance. Please assist and the help would be much appreciated.
Thanks :thumb: