useQQE has nothing to do with only placing Long or Short trades. It is a switch that says to use QQE to confirm the entry or exit of a trade.
The code gets several values from QQE and uses those values to determine a long or short signal. A Buy is taken when the signal from QQE is buy. A Sell is taken when the QQE signals sell.
The same is true for exit. If the open trade is Buy and QQE signals sell the trade is exited. If the open trade is Sell and QQE signals buy the trade is exited.
If a trade is closed the EA then checks to see if there is a new valid buy or sell signal using the zigzag based indicators and the chosen filter(s).
Robert
Quote:
Originally Posted by aauzir
Mr Pip,
Refer to bouncingPipEA_mPowerV41
Filter Methods:
Lets say entry useQQE = 1 (LONG)
CheckExit:
How to exit with the same rules as an entry but in different direction (SHORT).
This will result an EA will open trade (LONG or SHORT) all the time. CLOSED LONG and OPEN SHORT another trade.
|