129 dev 6 Small Bug Pseudocode for fuzzy logic strategies

This is small so I believe it can be low priority. However, I have been looking at the pseudocode for my fuzzy logic strategies and would notice whenever there was one condition, some percentages it would give would look for 0 out of 1 conditions to be met. Of course, this doesn't make sense when there is only 1 condition as it is the only condition that must be met. So having the logic say 25% of 1 condition being met doesn't make any sense if it is looking for 0 out of 1 conditions to be met.



Im pretty sure the source code still trades with the proper rules so I dont think it is a logic issue.

Attachments
Screen Shot 2020-07-29 at 94029 AM.png
(86.33 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

KL
#1

kainc301

29.07.2020 15:44

Task created

h
#2

hankeys

29.07.2020 20:06
but SQX is doing what you have set - its nonsense to build fuzzy strategies with 1 condition and low percentage, how SQX found out, that this is not fuzzy logic - you have set it, you got it


and i think that this will lead only to 1 result, your condition will be always true, so the strategy will be LONG only

KL
#3

kainc301

29.07.2020 20:13
I have up to 6 conditions for fuzzy logic. Many strategies have much more than 1 entry param for the fuzzy logic. I am used to about 2-4 in general. But sometimes only one condition is produced and this happens when only one condition is produced. 
h
#4

hankeys

30.07.2020 07:08
if you have set MIN 2 entry conditions, you cant get 1 condition in the strategy


1 condition - no fuzzy logic

KL
#5

kainc301

30.07.2020 08:07
I did not set a minimum of 2 entry conditions. Regardless you can get a situation where you have two entry conditions and the requirement to enter a trade is when 39% of the strategies are active which makes no sense because you will only have a minimum of 1 of 2 of the conditions trigger if you have atleast 50%. So you need to be able to account for the correct fractional values 
TB
#6

Tomas Brynda

05.08.2020 12:00

Status changed from New to Fixed

The problem is fixed, it was just a matter of displaying the counts.


In the EA code there is a condition that sets min conditions to 1 if it is lower or equal to 0. 

In your case the proper title should be ...(1 out of 1) are correct.

The EA will basically trade like if it was not a fuzzy strategy but an SQX signals strategy with 1 condition.


Thanks for reporting


Best regards,

Tomas


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please