Compiler messages: where things may go

AlgoBarsX compiler messages about where things may go, with what each code means and the real message where there is one: AS0401, AS0402, AS0403, AS0404, AS0405.

AS0401wrong_scripterror#

buy places or manages trades, which only strategies do. Use this indicator in a strategy instead.

AS0402management_placementerror#

breakeven only works inside the management block of a buy or sell. Indent it under the entry.

AS0403pure_functionerror#

Only action functions can place or change orders; write action fn f.

AS0404needs_tickerror#

on tick needs evaluate: tick in the header.

Quick fix Add evaluate: tick to the header

AS0405library_contenterror#

A library holds functions, types, enums and constants. Move this into a strategy, indicator or alert.

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account