Hi @Tomasz ,
Is there a list anywhere that states what AB functions/calls must be called unconditionally?
I think a lot of people would find that very useful.
In previous posts you have given valuable 'correct usage' instructions such as;
You see in many instances 'AddColumn/AddTextColumn' being used conditionally (including by experts) - see examples below.
So an available reference list would be great or even better would it be possible to have the 'AFL Editor Checker' to detect AB functions/calls used incorrectly?
// Incorrect use of 'AddColumn/AddTextColumn' - should be used unconditionally
if (Status("ActionEx") == actionExplore)
{
Filter = 1;
AddTextColumn(FullName(), "Company Name");
AddColumn(BarIndex(), "Bar Index", 1.0);
AddColumn(BarCount, "Bar Count", 1.0);
AddColumn(Close, "Close Price", 1.3);
AddColumn(Volume, "Volume", 1.0);
}
for ( i = 0; i < BarCount; i++ ) {
if ( last_day[i] /*&& n <= 20*/ ) {
AddColumn(prev_HTF_Vol[i], DateTimeFormat("%H:%M", dt[i]));
n++;
}
}