Use a boolean truth table to work out if () logic.
4 conditions in this nested filter line.
*** Remember 'ScalpSlopeTF' is NOT 'ScalpTrading' ***
This is a Slope LEVEL test, NOT whether Scalp trades should be taken.
Default is ON - ScalpSlopeTF = 240;
ScalpSlopeTF == 0; means we do not care whether level is met or not.
Current
Code: Select all
if (ScalpSlopeTF == 0 || ScalpSlopeVal[cc] >= ScalpBuyLevel)//4T or F - ScalpSlopeTF is off OR OutofRange - PASS (don't care)
F or T - ScalpSlopeTF is on OR IsInRange - PASS *default
F or F - ScalpSlopeTF is on OR OutofRange - FAIL *default
ie pass if don't care, or within range if do care.
Your suggestion
Code: Select all
if (ScalpSlopeTF != 0 && ScalpSlopeVal[cc] >= ScalpBuyLevel)//4T and F - ScalpSlopeTF is on AND OutofRange - FAIL
F and T - ScalpSlopeTF is off AND IsInRange - FAIL (but shouldn't care)**
F and F - ScalpSlopeTF is off AND OutofRange - FAIL (but shouldn't care)
** - means it will fail even though it shouldn't care (disabled as a filter).
I believe Steve is correct on this as well.
We have some 191 & 192 trades but not great. I have UseH1ADX == false, but need to turn it back on.
Be glad if no trades as 2 (192) I have are going wrong way. 10.2 DWM still says sell but ADX (M15-H4) shows strong bounce up! May turn or SL! NB's trade management skill is very difficult to code.
Paul