globalATR within RandomizeHistoryData.java remains constant after the first 14 bars...

Logging the globalATR value shows it is bugged. It appears to remain constant once the first 14 bars are read when it is expected to continue to be fluctuating and should always equal ATR of the most recent 14 bars.

Bug found by KBTech, I just decided to report it when he showed it to me.
Attachments
bugges-gatr.png
(86.08 KiB)
image-0.png
(78.34 KiB)
  • Votes +14
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

30.06.2022 22:15

Task created

b
#2

bentra

30.06.2022 22:19
Voted for this task.
KB
#3

kbtech

30.06.2022 22:28
Voted for this task.
Cc
#5

Cyber

30.06.2022 22:38
Voted for this task.
k
#6

Karish

30.06.2022 23:01
Voted for this task.
Bt
#7

beetrader

01.07.2022 02:03
Voted for this task.
o
#8

Enric

01.07.2022 07:54
Voted for this task.
4
#9

Jordan

02.07.2022 15:20
Voted for this task.
HH
#10

Hans

18.07.2022 22:11
Voted for this task.
BT
#11

EndUser

02.08.2022 20:52
Voted for this task.
E
#12

Emmanuel

06.08.2022 15:37
Voted for this task.
Fs
#13

Fortunate

10.08.2022 05:48
Voted for this task.
TT
#14

Tamas

07.09.2022 14:22
globalATR
JC
#15

yuansheng95

15.09.2022 17:36
Voted for this task.
CG
#16

Chris G

04.10.2022 20:58
Voted for this task.
k
#17

Karish

16.10.2022 23:00
It must be fixed.... Come on guys...
MF
#18

Mark Fric

17.10.2022 09:25

Status changed from New to Refused

it is a misunderstanding of what globalATR in SQX is. 


It is not a dynamic value, it is computed only once for the whole backtest, from the first X bars of the data - to have some reference of the volatility of the data - but it doesn't measure volatility of full data, only the first part.


If you want dynamic ATR in randomize data you can create a copy of that snippet and compute your ATR dynamically from the data as they come or as you change them.

k
#19

Karish

17.10.2022 18:49

Mark and the dev team, please kindly take a look at my task here, im not sure how Dave from BA has done it, but from my experience it runs quite well in performance speed, it is using a global ATR that you can actually define in the global settings area in the software,


Anyway my suggestion in the task is using % of price randomisation rather than ATR but both versions would be awesome to have by user selection


https://roadmap.strategyquant.com/tasks/sq4_9343

MF
#20

Mark Fric

18.10.2022 08:55

Status changed from Refused to In progress

k
#21

Karish

18.10.2022 15:51

Yey!, Thanks Mark!, This is absolutely crucial,

ATR must work properly, please see the link above of Dave from BA he explains it very well.


The only thing we need is that globalATR fixed so it will recalculate itself and not be based on the first initial 14 bars or so...,


Also i would like to request a place that the user can specify the globalATR value (global settings window)


Some like to use different ATR values.. 13 14 20 21.


Thanks for considering this task again :) waiting for the fix!

KB
#22

kbtech

18.10.2022 19:58
Also just wanted to say thank you!
The ATR being dynamic will give us a great test for our tool box.
CG
#23

Chris G

18.10.2022 22:56
This is it. The percentage based also could be a great move:

https://roadmap.strategyquant.com/tasks/sq4_9343

MF
#24

Mark Fric

19.10.2022 10:49
ok, I had to add a special method, but it is implemented - basically according to this task: https://roadmap.strategyquant.com/tasks/sq4_9343
MF
#25

Mark Fric

19.10.2022 14:06

Attachment image-0.png deleted

HF
#26

Vence_Jo

20.10.2022 12:02
Voted for this task.

Votes: +14

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please