b136 dev 4 - Bulls Power Bears Power bug

LongEntrySignal = ((BearsPower(Main chart,BPPeriod1)[2] > 40)
   and (ADX DI Plus(Main chart)[2] is falling));

ShortEntrySignal = ((BullsPower(Main chart,BPPeriod1)[2] < -40)
   and (ADX DI Minus(Main chart)[2] is falling));

Should be
LongEntrySignal = ((BearsPower(Main chart,BPPeriod1)[2] > 40)
   and (ADX DI Plus(Main chart)[2] is falling));

ShortEntrySignal = ((BullsPower(Main chart,BPPeriod1)[240)
   and (ADX DI Minus(Main chart)[2] is falling));








Attachments
  • Votes +6
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

22.09.2022 05:21

Task created

b
#2

bentra

22.09.2022 05:21

Subject changed from Bulls Power Bears Power bug to b136 dev 4 - Bulls Power Bears Power bug

b
#3

bentra

22.09.2022 06:25
Also

LongEntrySignal = (BearsPower(Main chart,BPCrossPeriod1)[2] crosses -75 upwards);

ShortEntrySignal = (BullsPower(Main chart,BPCrossPeriod1)[2] crosses 75 downwards);

should be
LongEntrySignal = (BearsPower(Main chart,BPCrossPeriod1)[2] crosses -75 upwards);

ShortEntrySignal = (BullsPower(Main chart,BPCrossPeriod1)[2] crosses -75 upwards);
E
#4

Emmanuel

22.09.2022 14:18
Voted for this task.
CG
#5

Chris G

22.09.2022 14:20
Voted for this task.
HH
#6

Hans

26.09.2022 23:50
Voted for this task.
b
#7

bentra

04.10.2022 16:07
Voted for this task.
Dw
#8

Diwi

05.10.2022 13:57
Voted for this task.
CG
#9

Chris G

12.10.2022 23:05
Waiting for this bug to be solved!
MF
#10

Mark Fric

14.10.2022 10:12

Status changed from New to Fixed

I had to add a special negater, it is fixed for the reported cases and all the others.


To be consistent, also other negaters in Bulls/Bears power had to be changed. 

Generally, it is made so that only BearsPower will be replaced with BullsPower and vice versa, but the comparison should be unchanged otherwise.



Can you check if I didn't make a mistake?


LongEntrySignal = (BearsPower(Main chart,80)[3] is rising for 4 bars);

ShortEntrySignal = (BullsPower(Main chart,80)[3] is rising for 4 bars);

correct?


LongEntrySignal = (BullsPower(Main chart,20)[2] changes direction downwards);
ShortEntrySignal = (BearsPower(Main chart,20)[2] changes direction downwards);

correct?










b
#11

bentra

14.10.2022 12:06
yes, those look right.
b
#12

bentra

14.10.2022 12:41

Attachment Screenshot_302.png added

Screenshot_302.png
(924.04 KiB)


Oh shoot wait according to this ref

https://fbs.com/analytics/guidebooks/bulls-bears-power-224#:~:text=The%20Bull%20Power%20and%20Bear,known%20as%20Elder%2DRay%20Index.


and this


https://medium.com/coinmonks/the-bull-bear-power-coding-technical-indicators-c188d0068199



The way it was before was actually correct....


Looks like this one is my mistake, sorry!


This is actually correct, it wasn't broken:

LongEntrySignal = ((BearsPower(Main chart,BPPeriod1)[2] > 40)
   and (ADX DI Plus(Main chart)[2] is falling));


ShortEntrySignal = ((BullsPower(Main chart,BPPeriod1)[2] < -40)
   and (ADX DI Minus(Main chart)[2] is falling));



**Facepalm***

mixed up between the way di+ / di- work and bulls/bears
sorry again! Good thing you told me to double-check it!

CG
#13

Chris G

15.10.2022 02:29
I would keep the same indicator for negated condition.

I don't get why changing from Bears to Bull Power if the calculations are different.

b
#14

bentra

15.10.2022 03:55
Because one is based on highs and the other is based on lows so they are opposites
JJ
#15

jjsb41

17.10.2022 12:34
Voted for this task.
CG
#16

Chris G

18.10.2022 19:02
Yes, it seems like it was ok on its original version:


LongEntrySignal = ((BearsPower(Main chart,BPPeriod1)[2] > 40)
   and (ADX DI Plus(Main chart)[2] is falling));


ShortEntrySignal = ((BullsPower(Main chart,BPPeriod1)[2] < -40)
   and (ADX DI Minus(Main chart)[2] is falling));


b
#17

bentra

19.10.2022 04:40
OK looks like Marc put it back in time for dev 6. It seems to be fixed.

Votes: +6

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please