Great work Anant.
Just few a suggestion -
1) As you had mentioned earlier that all NR7 days are also NR4 ,NR6 days as well. So it makes no sense to reflect NR4 and NR7 on a NR7 bar. IMO, just NR7 is sufficient. By putting NR4 on this bar just clutters the chart with redundant info.
2) You don't have to wait for NR4 day to mark an ID. Any bar can be marked as ID, as long as it meets the criteria.
I don't know the flowchart of your AFL script.. But If I have to give this as requirement then I would say following
- Check for ID. Set ID-Flag appropriately
- Check for NR7. Set NR7-flag
- Check for NR4. Set NR4-flag
- If (NR7-Flag and NR4-Flag), then Display-Flag = NR7 end-if
- If Display-Flag empty, and NR4-flag = yes, then display-flag = NR4
- If ID-Flag = yes, then concatenate "ID" to last value of display-flag. {this will give you ID, IDNR4 or IDNR7)
- Show display flag on chart
Let me know if you want to enhance this afl for other setups as given by Toby Crabel (they are focused on expansions). I have not discussed them here but can give u idea about them.
Happy Trading.
Just few a suggestion -
1) As you had mentioned earlier that all NR7 days are also NR4 ,NR6 days as well. So it makes no sense to reflect NR4 and NR7 on a NR7 bar. IMO, just NR7 is sufficient. By putting NR4 on this bar just clutters the chart with redundant info.
2) You don't have to wait for NR4 day to mark an ID. Any bar can be marked as ID, as long as it meets the criteria.
I don't know the flowchart of your AFL script.. But If I have to give this as requirement then I would say following
- Check for ID. Set ID-Flag appropriately
- Check for NR7. Set NR7-flag
- Check for NR4. Set NR4-flag
- If (NR7-Flag and NR4-Flag), then Display-Flag = NR7 end-if
- If Display-Flag empty, and NR4-flag = yes, then display-flag = NR4
- If ID-Flag = yes, then concatenate "ID" to last value of display-flag. {this will give you ID, IDNR4 or IDNR7)
- Show display flag on chart
Let me know if you want to enhance this afl for other setups as given by Toby Crabel (they are focused on expansions). I have not discussed them here but can give u idea about them.
Happy Trading.
Anant,
Yes this, combined with AW10's slight tweakings on the display will suffice.
Wonderful.
Sorry for the late reply as Power in our city was out since 10.30am in many areas and just got restored at 5pm!!!!!
Thanks once again.
Murtaza
Yes this, combined with AW10's slight tweakings on the display will suffice.
Wonderful.
Sorry for the late reply as Power in our city was out since 10.30am in many areas and just got restored at 5pm!!!!!
Thanks once again.
Murtaza
I have tried to implement your ideas. The following image shows the result. If it is okay I will post the AFL here and you can suggest further additions.
The non-NR Inside Days are marked with a hollow circle above the corresponding bar. IDNR4 bars are marked with an orange star and IDNR7 by green star above the bar. NR7 marked with a circled 7 in green and NR4 with circled 4 in orange color at the bottom of the bar.
When the tracking line is brought on the bar the corresponding text (IDNR7 / IDNR4 / NR7 / NR4 / Inside Day) is also displayed in the chart title at the top.
Regards
-Anant