Customization of indicator on amibroker/Ninjatrade8/kitezerodha
Budget: ₹12,500 – ₹37,500 INR
I want to automate my logics in amibroker/ninjatrader with following rules.
Small Pivots – Rules for marking
Small Pivot High
• To mark sph, we need two lower lows and two lower closes compared to anchor bar (reference bar).
• SPH is the highest point in between 2 SPLs
• SPH alternates with SPL
Small Pivot Low
• To mark spl, we need two higher highs and two higher closes compared to the anchor bar
• SPL is the lowest point between 2 SPHs
• SPL and SPH alternate with each other, SPL cannot follow another SPL
Common Rules
• Bar 1 & Bar 2 for marking small pivots does not have to be consecutive bars UNTIL WE GET TO MARK THE SMALL PIVOT (HIGH OR LOW)
• Anchor Bar or a reference bar is taken as a starting point to compare high/lows
• Only Bar2 of prev marked pivot can ‘start’ acting as the anchor bar to mark the next pivot
• Recently marked small pivot is temporary. It becomes permanent only after marking the subsequent small pivot
Large Pivots – Rules for marking
1-To mark LPH, we need to break the previously marked spl(temp spl break is enough)
2- To mark LPL, we need to break the previously marked sph(temp sph break is enough)
3-LPH and LPL alternates
4-To mark LPH, we go back to see all the sphs (that were marked after the last LPL – including highs) and mark the highest sph as LPH
5-To mark LPL, we go back to see all the spls (that were marked after the last LPH – including lows) and mark the lowest spl as LPL
6-Once marked, Large pivots are permanent (no temp pivot concept like spl/sph)
Kindly look at these rules. If you are able to customize this indicator then we can go for the entry and exit rule as well.
Thank you.
Small Pivots – Rules for marking
Small Pivot High
• To mark sph, we need two lower lows and two lower closes compared to anchor bar (reference bar).
• SPH is the highest point in between 2 SPLs
• SPH alternates with SPL
Small Pivot Low
• To mark spl, we need two higher highs and two higher closes compared to the anchor bar
• SPL is the lowest point between 2 SPHs
• SPL and SPH alternate with each other, SPL cannot follow another SPL
Common Rules
• Bar 1 & Bar 2 for marking small pivots does not have to be consecutive bars UNTIL WE GET TO MARK THE SMALL PIVOT (HIGH OR LOW)
• Anchor Bar or a reference bar is taken as a starting point to compare high/lows
• Only Bar2 of prev marked pivot can ‘start’ acting as the anchor bar to mark the next pivot
• Recently marked small pivot is temporary. It becomes permanent only after marking the subsequent small pivot
Large Pivots – Rules for marking
1-To mark LPH, we need to break the previously marked spl(temp spl break is enough)
2- To mark LPL, we need to break the previously marked sph(temp sph break is enough)
3-LPH and LPL alternates
4-To mark LPH, we go back to see all the sphs (that were marked after the last LPL – including highs) and mark the highest sph as LPH
5-To mark LPL, we go back to see all the spls (that were marked after the last LPH – including lows) and mark the lowest spl as LPL
6-Once marked, Large pivots are permanent (no temp pivot concept like spl/sph)
Kindly look at these rules. If you are able to customize this indicator then we can go for the entry and exit rule as well.
Thank you.