If I use a condition Or with brackets, it won't work correctly, the signal won't be true as it should be. (Image 0)
If I create 2 signals instead of one signal to remove the OR condition, then it is working correctly. (please see video "Build 137 RC3 Error")
If I check the source code of the signal, (Template 17.doc), all the brackets are present and at the correct place.
I created a template with similar condition "Test Template 17 b", and it seem to work
Please see video :
https://drive.proton.me/urls/DYZ5AAFW1R#lkN8vLN6uj4T
(I extracted the signal from the template "M 75 Light 2" in case you want to see inside)
Please see comment below, there is another case where Signals Rules do not work correctly
Description changed:
If I use a condition Or with brackets, it won't work correctly, the signal won't be true as it should be. (Image 0)
If I create 2 signals instead of one signal to remove the OR condition, then it is working correctly. (please see video "Build 137 RC3 Error")
If I check the source code of the signal, (Template 17.doc), all the brackets are present and at the correct place.
I created a template with similar condition "Test Template 17 b", and it seem to work
Please see video :
https://drive.proton.me/urls/DYZ5AAFW1R#lkN8vLN6uj4T
(I extracted the signal from the template "M 75 Light 2" in case you want to see inside)
Subject changed from [Build 137.1639 RC3] Brackets with Or not working correctly to [Build 137.1639 RC3] Signals Rules not working correctly : Brackets with Or not working correctly
Attachment Capture stop loss.jpg added
Attachment image-0.png added
The long exit signal is true only if the open is below the entry price - (X time * Stoploss)
As I debug the template , I can read in my log :
15:30:27.666 [Blocking computeThread common #25 - Strategy 2.1.770] INFO c.s.tradinglib.debug.Debugger - Debug - ------------------------------------ Trade No : 2.0
15:30:27.667 [Blocking computeThread common #25 - Strategy 2.1.770] INFO c.s.tradinglib.debug.Debugger - Debug - Pip Size : 1.0E-5
15:30:27.667 [Blocking computeThread common #25 - Strategy 2.1.770] INFO c.s.tradinglib.debug.Debugger - Debug - Stop loss : 100.0
15:30:27.667 [Blocking computeThread common #25 - Strategy 2.1.770] INFO c.s.tradinglib.debug.Debugger - Debug - Nb Level Max : 8.0
15:30:27.667 [Blocking computeThread common #25 - Strategy 2.1.770] INFO c.s.tradinglib.debug.Debugger - Debug - Open : 1.3321
15:30:27.667 [Blocking computeThread common #25 - Strategy 2.1.770] INFO c.s.tradinglib.debug.Debugger - Debug - Stop Min : 1.32444
The open is 1.3321 , clearly above the stop loss 1.32444, and the LongExitSignal2 = true, this is not possible.
If I put this condition on an exit rule, (see image 0 attached), it is working fine. But it wont work in the signal page .
It is not a matter of data because the open price is correct, it is matter of logic inside the signal page.
On my signal page, I have only 12 signals.
The source code in MT5 look correct
Subject changed from [Build 137.1639 RC3] Signals Rules not working correctly : Brackets with Or not working correctly to [Build 137.1639 RC3] Signals Rules not working correctly
Description changed:
If I use a condition Or with brackets, it won't work correctly, the signal won't be true as it should be. (Image 0)
If I create 2 signals instead of one signal to remove the OR condition, then it is working correctly. (please see video "Build 137 RC3 Error")
If I check the source code of the signal, (Template 17.doc), all the brackets are present and at the correct place.
I created a template with similar condition "Test Template 17 b", and it seem to work
Please see video :
https://drive.proton.me/urls/DYZ5AAFW1R#lkN8vLN6uj4T
(I extracted the signal from the template "M 75 Light 2" in case you want to see inside)
Please see comment below, there is another case where Signals Rules do not work correctly
Status changed from New to Fixed
Attachment signal HS.docx added
Hi,
I did some test with RC4 and a signal was not working correctly as well if I added
Close < (Donchian middle - Donchian Lower) / 2 (in the last line of the condition, please see attached word document)
instead of
Close < Donchian middle
the bug is still in RC4
Please see the attached