×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

RaiseRunTimeError

207 bytes added, 05:55, 9 February 2012
no edit summary
A run-time error will cause the execution of the study to be aborted.
==== Usage ====
<syntaxhighlight>RaiseRunTimeError("Message")</syntaxhighlight>
Where: [[ :'''Message]] ''' - a string expression specifying the error message .
==== Example ====
Generate a run-time error and display the message "Strategy Stopped":
<syntaxhighlight>RaiseRunTimeError("Strategy Stopped");</syntaxhighlight>
Or to generate a run-time error when the user adds an indicator to an unsuited market:<syntaxhighlight>if (Category = 12) then RaiseRunTimeError("This indicator isn't suitable for Forex!");</syntaxhighlight>
[[Category:Execution Control]]

Navigation menu