Boston MA
Experience: Advanced
Platform: TradeStation
Trading: Stocks and options
Posts: 24 since Aug 2022
Thanks Given: 2
Thanks Received: 4
|
You are mixing variable types; Try this:
Input: Filter (numeric); // values = 0, 1 , 2, 3, ...
Vars: xFilter(False);
Switch ( Filter )
Begin
Case 0: xFilter= True;
Case 1: xFilter= Close < Average(Close, 5);
Case 2: xFilter= ADX(5) > 25;
Case 3: xFilter= (Volume > Average(Volume, 5));
End;
Bob
|