My strategy suddenly stopped

Questions about MultiCharts and user contributed studies.
kinwai
Posts: 89
Joined: 03 May 2019
Has thanked: 12 times
Been thanked: 1 time

My strategy suddenly stopped

Postby kinwai » 20 Aug 2021

I’m running same strategy to my different accounts under different Multicharts charts. However, usually showed the below error in real time trade after position opened.

———————————————————————————-
8/21/2021 1:00:00 AM

Message: Error in study “Strategy 1 (@XXX-1 Minute)”
———————————————————————————-

It looks like not strategy logical issue, since only one account stopped, other account was still running fine. Also, backtest didn’t show any error.

When this situation happened, caused my position couldn’t be closed. I checked the log from Multicharts, nothing can help to troubleshoot, anyone can help?

User avatar
Vlada MultiCharts
Posts: 293
Joined: 22 Apr 2020
Has thanked: 8 times
Been thanked: 76 times

Re: My strategy suddenly stopped

Postby Vlada MultiCharts » 31 Aug 2021

Hi kinwai,

The issue was caused by the error in your strategy script. This can happen if the script calculation went outside the boundaries of a collection or an array, or if there was an error in handling string variables, for example.

To check what caused the issue we can recommend to use Print keyword to trace the behavior of the script line by line and find the issue.


Return to “MultiCharts”