[136 dev2] number of conditions not respecting additional chart settings

min 0 max 1 for entry and exits for both main chart and additional chart always gives 1 condition from each chart for exit rule and only one single condition for entry rule. I've scanned over 100's of strategies and it is very consistent so it seems like something is wrong with the mechanism. This is typical:


//--------------------------------------------------------------------
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------                   
LongEntrySignal = (Bar Opens above KeltnerChannel(Subchart1, D1,KCBarOpenserPeriod1, 1.5).Lower[2]);

ShortEntrySignal = (Bar opens below KeltnerChannel(Subchart1, D1,KCBarOpenserPeriod1, 1.5).Upper[2]);

LongExitSignal = ((MACD(Main chart,MACDMainFast1, MACDMainSlow1, MACDMainSmooth1, PRICE_CLOSE).Main[2] < MACD.Signal)
   and (ADX DI Plus(Subchart1, D1)[2] changes direction downwards));

ShortExitSignal = ((MACD(Main chart,MACDMainFast1, MACDMainSlow1, MACDMainSmooth1, PRICE_CLOSE).Main[2] > MACD.Signal)
   and (ADX DI Minus(Subchart1, D1)[2] changes direction downwards));



While in line with the min and max specified, it doesn't seem to ever give any strategies with 1 single exit rule nor any strategies with 2 entry rules and I would expect to see an equal amount of those.







Attachments
Screenshot_102.png
(20.88 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

22.07.2022 15:22

Task created

b
#2

bentra

25.07.2022 15:20
Voted for this task.
E
#3

Emmanuel

06.08.2022 15:35
Voted for this task.
MF
#4

Mark Fric

31.08.2022 10:21

Status changed from New to Waiting for information

I cannot reproduce it. Could you attach your build project?


It is possible it was fixed in the meantime.

b
#5

bentra

05.09.2022 19:51
May have been fixed. Haven't reproduced this for a while.
TT
#6

Tamas

06.09.2022 08:47

Status changed from Waiting for information to Fixed


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please