How to optimise these two symbols: < and >

You need to have change the code to use NUMBERS in Optimize() calls

DirectionLowerBBLessThan = Optimize("DirectionLowerBBKLessThan", 1,0,1,1);
DirectionRSILessThan = Optimize("DirectionRSILessThan", 1,0,1,1);
CondBuy = IIF( DirectionLowerBBLessThan, 
               C < LowerBandBB, C > LowerBandBB) 
      AND IIF( DirectionRSILessThan, 
               RSI(PeriodeRSI) <= NivRSI, RSI(PeriodeRSI) >= NivRSI );

Last but not least:
When posting the formula, please make sure that you use Code Tags (using </> code button) as explained here: How to use this site.

Using code button

Code tags are required so formulas can be properly displayed and copied without errors.

1 Like