mybar=ValueWhen(X == 0, BarIndex());
mybar--; // decrement by 1.
// if you want more then
// mybar = mybar - 2; // for second previous bar. -3 for third previous...and so on provided the array element doesn't fall out of array size.
AddColumn( ValueWhen( mybar == BarIndex(), DateTime()), "Date", formatDateTime );
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
B | Help: Ispat 0.01% cumulative preference shares | Equities | 0 | |
H | NSE "Referral Denied" error... Plz help | Development of Software Utilities | 2 | |
M | Im looking for a reference,does any one can help me?? | Data Feeds | 2 | |
B | help with code reference... | AmiBroker | 8 | |
H | odin preferences help | Software | 2 |