And It WILL CLOSE THE
POSITION WHEN THIS SIGNAL CONDITION NO LONGER HOLDS.
When I used the negative condition, I found a little problem.
//--------------------------------------------------------------------
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------
LongEntrySignal = ((KER(Main chart,KERbelowLevelPeriod)[2] is below 0.38)
and ((QQE(Main chart,QQEValue1RSIPeriod, 11, 4.236).Value1[3] is rising)
and Open below BollingerBands(Main chart,BBBarOpensPeriod, 2, PRICE_CLOSE).UpperBand));
ShortEntrySignal = ((KER(Main chart,KERbelowLevelPeriod)[2] is below 0.38)
and ((QQE(Main chart,QQEValue1RSIPeriod, QQEValue1sF, 4.236).Value1[3] is falling)
and Open above BollingerBands(Main chart,BBBarOpensPeriod, 2, PRICE_CLOSE).LowerBand));
LongExitSignal = (((QQE(Main chart,QQEValue1RSIPeriod, QQEValue1sF, 4.236).Value1[3] is falling) //This is good, but Not ( the QQE.Value1 is rising) will be better
and Open above BollingerBands(Main chart,BBBarOpensPeriod, 2, PRICE_CLOSE).LowerBand) //This does not fit the strategy at all.
// Open above Boll.Upper or Not( open below boll.upper) would fits the concept of the strategy
or ((4 < Bars Since Order Open("Current", MagicNumber, 1, ""))
and ((OrderOpenPrice("Current", MagicNumber, 1, "") - Close(Main chart)[0]) > (ATR(Main chart,ATRPeriod)[1] * 0.2))));
ShortExitSignal = (((QQE(Main chart,QQEValue1RSIPeriod, 11, 4.236).Value1[3] is rising)
and Open below BollingerBands(Main chart,BBBarOpensPeriod, 2, PRICE_CLOSE).UpperBand)
or ((4 < Bars Since Order Open("Current", MagicNumber, -1, ""))
and ((Close(Main chart)[0] - OrderOpenPrice("Current", MagicNumber, -1, "")) > (ATR(Main chart,ATRPeriod)[1] * 0.2))));
So I would like SQ X to add an opposite condition or false condition to the template.
The opposite condition, not the same as the negative condition, I mean it's the false condition that is simply a negation condition using logical operator 'Not( conditons)'
Attachment not.png added
But let NOT operator in the element right click, it will be better.
You use "Not Same Condition" instead of Negated.