SQX 111 - Fuzzy logic closes trades if % is less than 50% even with no exit rule

I have generated M5 strategies which use the trailing stop activation building blocks.



However, there are many trades that open a trade and then close it next bar, with a close type of Manual.  There is no exit rule defined, so all trade exits should be SL.


See attached screenshot and strategy and config file.


Looks to me like there is something wrong with SQX to be manually closing trades after one bar...

Attachments
SQX 111 - Manual trade close at next bar.png
(99.33 KiB)
Build.xml
(1.17 MiB)
Strategy 01279.sqx
(54.42 KiB)
  • Votes +5
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

m
#1

mikeyc

10.10.2018 20:07

Task created

m
#2

mikeyc

10.10.2018 20:34
I don't know if it caused by "Fuzzy" rules where % is allowed to be below 50%?


LongExitSignal = FUZZY Logic. Variable is true if min 47 % conditions (0 out of 1) are correct:

        - false

        

ShortExitSignal = FUZZY Logic. Variable is true if min 47 % conditions (0 out of 1) are correct:

        - false

m
#3

mikeyc

10.10.2018 20:58
Yes, it looks like if the fuzzy minimum is less that 50% the strategy closes the trade, even though there is no exit rule.
m
#4

mikeyc

10.10.2018 20:59

Subject changed from SQX 111 - Something odd with trailing stop activation? to SQX 111 - Fuzzy logic closes trades if % is less than 50% even with no exit rule

m
#5

mikeyc

10.10.2018 20:59
Voted for this task.
m
#6

mabi

11.10.2018 12:36
Voted for this task.
IH
#7

clonex / Ivan Hudec

11.10.2018 13:18
Voted for this task.
m
#8

mikeyc

15.10.2018 19:06
Is anyone going to look into this, because otherwise it means the "Fuzzy Logic" strategies are mostly unusable... 
KL
#9

kainc301

15.12.2018 05:56
Voted for this task.
KL
#10

kainc301

16.01.2019 06:14
Has anyone been getting this issue recently?
l
#11

Loonly

23.01.2019 21:07
Voted for this task.
MF
#12

Mark Fric

27.01.2019 16:07
I'll check this behavior. If there is an error it will be fixed in B118.
MF
#13

Mark Fric

28.01.2019 15:04

Status changed from New to Fixed

you were right., there was a mistake evaluating long exit fuzzy rule. 


If there were no conditions in this signal it evaluated it to true.


Votes: +5

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please