Please re-read the basic sections in the manual / AFL reference
assignment operator is = where as
logical comparison operator is ==
ExRem removes all the extra buy/short signals
.
assignment operator is = where as
logical comparison operator is ==
ExRem removes all the extra buy/short signals
.
Can you pls advice regarding how to identify the index of first bar? This is required since iam encountering error now (after rectifying the stated mistake) that I have not initialized "entrytrigger" in the very first line of the code which is "if(entrytrigger ==2);". I have checked on BarIndex, Barcount, Cum etc but not getting to know how to use them here.
I want to instruct backtesting engine to check whether it is encountering the first bar and if yes, initialise the variable "entrytrigger" and later on the rest of the code should assign value to it as per the flow, which was mentioned in my previous post