[130]Multicharts Array bounds. Wrong index: value:-1

Dear SQ Team

I find that always happen this error when I export strategy into my Multichart.
But I can't fixed it , please see the attachments.
thank you.

Attachments
Strategy 11354.sqx
(28.57 KiB)
SQX_BB11354__Array_Bounds_Index_ERROR.pla
(42.94 KiB)
SQX_Strategy_11354_Error_Array_Bounds.jpg
(549.39 KiB)
SQX_ERR_Wrong_index_value__1.txt
(7.89 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Urgent

History

SC
#1

fxchess

12.03.2021 06:00

Task created

e
#2

eastpeace

15.03.2021 03:57
Voted for this task.
e
#3

eastpeace

15.03.2021 03:59

Attachment Strategy 11124.sqx added

Strategy 11124.sqx
(26.38 KiB)
Same error,


I guess it's a bug in function SQ_IsLowerCount or SQ_IsGreaterCount.

TB
#4

Tomas Brynda

19.03.2021 11:43

Status changed from New to Fixed

The problem with SQ_IsLowerCount and SQ_IsGreaterCount is fixed. 

But please note that Fibo and SessionOHLC blocks won't work correctly in EasyLanguage in conjuction with blocks that compare historical values - for example IsFalling/IsRising and IsLowerCount/IsGreateCount.

It is because these blocks do not use shift and there is no easy way how to handle this in EasyLanguage. We will inform about this on our blog and think about making some rules in order to filter out those strategies during build process.


Unfortunately the original problem in Strategy 11354 can't be fixed on our side. 

I have spent several hours investigating this issue and find out the problem lies in EasyLanguage itself, it is some kind of a bug.


EasyLanguage in general is quite a nice and easy readable language, but sometimes it behaves very strangely and it's impossible to fix it.

Some strategies just won't work because of that. Hopefully they'll make some fixes in the future.



Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please