the study attempted to reference data past the bounds of the array

57 views
Skip to first unread message

Emanuele Ferraro

unread,
Dec 30, 2024, 4:57:40 AM12/30/24
to Adaptrade Builder
Hello
I receive this error with some new strategy .
Can someone tell me where can I find the problem of this issue?
Thank you
Emanuele

MikeBryant

unread,
Dec 30, 2024, 1:52:34 PM12/30/24
to Adaptrade Builder
Are you using the neural network indicator? If so, then please refer to the following comment from the top of the NNCompute function:

"This function can accomodate up to 32 inputs, up to 100 hidden nodes,
 and a maximum look-back length of 500 bars.
 To handle larger networks, the array sizes can be increased."

If you look at the array sizes in the function, you can see where you may need to increase the numbers if your neural network exceeds the current limits. Otherwise, you can change the settings in Builder so that it will be less likely to result in a network that exceeds the bounds.

If you're not using a neural network indicator, I would need to see your code to see what the problem might be.

Mike Bryant
Adaptrade Software

Emanuele Ferraro

unread,
Jan 20, 2025, 4:51:13 AMJan 20
to adaptrad...@googlegroups.com
Hello Mike
I send in attachment a strategy that give me the array error.

Thank you
Emanuele

--
You received this message because you are subscribed to the Google Groups "Adaptrade Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adaptrade-buil...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/adaptrade-builder/054d33fb-bde3-4749-b96d-192590ef2153n%40googlegroups.com.
1113.txt

MikeBryant

unread,
Jan 20, 2025, 4:53:54 AMJan 20
to Adaptrade Builder
Yes, it's exactly as I said in the prior message. If you follow the instructions in that message, you will resolve the issue.

Emanuele Ferraro

unread,
Jan 20, 2025, 2:43:34 PMJan 20
to adaptrad...@googlegroups.com
Thank you Mike
Now work perfectly
Emanuele

Reply all
Reply to author
Forward
0 new messages