Schaff Trend Cycle symmetry issue in predefined signals


Schiff Trend Cycle has a 0 baseline so


LongExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses above 99
   and Close[2] closes above SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);

ShortExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses below 99
   and Close[2] closes below SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);

should be
LongExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses above 99
   and Close[2] closes above SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);

ShortExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses below -99
   and Close[2] closes below SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);
EDIT: "is above" as well as "crosses above" are both bugged for SCHIFFS, FYI, I found some more
Attachments
  • Votes +5
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

25.02.2022 01:21

Task created

b
#2

bentra

25.02.2022 03:28
Voted for this task.
l
#3

Loonly

25.02.2022 08:26
Voted for this task.
b
#4

bentra

28.02.2022 16:47

Description changed:


Schiff Trend Cycle has a 0 baseline so


LongExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses above 99
   and Close[2] closes above SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);

ShortExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses below 99
   and Close[2] closes below SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);

should be
LongExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses above 99
   and Close[2] closes above SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);

ShortExitSignal = (Schaff Trend Cycle(SchaffTrnCycCrsLvlStcPrd,SchaffTrnCycCrsLvlFstPrd,SchaffTrnCycCrsLvlSlwPrd)[1] crosses below -99
   and Close[2] closes below SuperTrend(Subchart1, D1,1, BarClsSprTrnATRPrd,2.7)[2]);
EDIT: "is above" as well as "crosses above" are both bugged for SCHIFFS, FYI, I found some more

E
#5

Emmanuel

10.03.2022 04:07
Voted for this task.
IH
#6

clonex / Ivan Hudec

04.08.2022 08:28

Attachment image-0.png added

image-0.png
(83.67 KiB)

Hi Schaff trend cycle has middle value 50.

IH
#7

clonex / Ivan Hudec

04.08.2022 08:28

Status changed from New to Waiting for information

b
#8

bentra

04.08.2022 15:52

I wsa probably looking at the wrong indicator on this page:

https://www.investopedia.com/articles/forex/10/schaff-trend-cycle-indicator.asp#:~:text=Schaff%20Trend%20Cycle%20is%20a,for%20long%20stretches%20of%20time.


baseline of STC appears to be 50 nice catch so 99 should invert to 1 not -99.

MF
#9

Mark Fric

31.08.2022 09:46

Status changed from Waiting for information to Fixed

b
#10

bentra

17.09.2022 19:08

Attachment Strategy 122192.sqx added

Attachment Strategy 122192-r.sqx added

Attachment Strategy 122192-r2.sqx added

Attachment Strategy 122192-r3.sqx added

Strategy 122192.sqx
(1.20 MiB)
Strategy 122192-r3.sqx
(2.30 MiB)
Strategy 122192-r2.sqx
(2.30 MiB)
Strategy 122192-r.sqx
(4.28 MiB)
Something still wrong with Schaff. The pseudo code appears to be correct but no short trades... I attach two strats one has schaff removed and is symmetrical. The rest have no short trades ever.


b
#11

bentra

22.09.2022 09:55
I see the problem, when slow period and fast period are equal we get this result. We need to either prevent it from happening or return 50 when it does happen.
TT
#12

Tamas

22.09.2022 13:25

Status changed from Fixed to New

CG
#13

Chris G

22.09.2022 14:22
Voted for this task.
CG
#14

Chris G

16.10.2022 22:59
Please fix this bug!
HH
#15

Hans

20.10.2022 23:40
Voted for this task.
CG
#16

Chris G

07.11.2022 12:27
Has this thing being fixed on Dev 6?
MF
#17

Mark Fric

10.11.2022 10:19

Status changed from New to Fixed

added a new Checker that will refuse strategies that have same Fast and Slow periods.

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