Error
- displays user-defined error message and stops the execution

Miscellaneous functions
(AmiBroker 5.70)


SYNTAX Error("text")
RETURNS NOTHING
FUNCTION The function stops the formula execution in the place of the call and displays user-specified error message. It may be also uses from plugins to display error messages.
EXAMPLE if( LowestVisibleValue( Close ) < 0 ) )
{
  
Error( "Close price is negative");
}
SEE ALSO

References:

The Error function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.