bar count

  1. S

    HELP- exploration afl for days left in N-day bar.

    hello all, for the exploration of daysleft in N-day bar i tried this one- for( i = 1; i <=9; i++ ) { TimeFrameSet(i*indaily); daysleft=(i-barcount%i); Filter= 1; AddColumn(daysleft, "DL"); TimeFrameRestore(); } but the results were quite different from actual. possible reason is...
  2. S

    AFL for Bar Count for Rally/Decline

    Sorry, creating a thread as my earlier post in other thread got lost.. Team..Need help.. Does anyone has a code to count the number of bars in Rally/Decline.. Rally (higher high and higher low) & decline (lower high and lower low).. For every 3,4,5 consecutive rally bars it should mark...