(> X) Is greater for X bars Should not use atLeastOnce

Hi,



I am probably being very very academic about the terms you have used here and have been scratching my head for a couple of days. I think the [for X bars] is misleading a bit and needs to be changed to something more suitable. E.g. When we say MA(10) is greater than MA(20) for 4 bars, in layman terms it means the MA(10) is higher than MA(20) for all of the last 4 bars. The code though is saying it needs to be greater at least once which from the layman perspective is incorrect.



The atLeastOnce check should be changed to a count whose value should equal the X bars value. I have included my suggested solution.


The change also affects the IsLowerCount comparison.


The current code is good though but should use a different phrase, maybe call it [(> X) Is greater in last X bars] or something like that.


regards
beetrader

Attachments
Greater for X bars.png
(56.76 KiB)
Greater for X bars - Suggested Code Change.png
(57.14 KiB)
  • Votes +5
  • Project StrategyQuant X
  • Type Bug
  • Status New
  • Priority Normal

History

Bt
#1

beetrader

31.07.2023 20:30

Task created

Bt
#2

beetrader

31.07.2023 20:38
Voted for this task.
CG
#3

Chris G

31.07.2023 20:41
Voted for this task.
JH
#4

Jabezz

01.08.2023 08:16
Voted for this task.
mb
#5

Michal Brauner

01.08.2023 16:35
Voted for this task.
E
#6

Emmanuel

06.08.2023 15:23
Voted for this task.

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