πSyntax & Commands
This sectionsection documents the supported syntax, commands, and primitives available in the memejob strategy engine. It serves as a reference and is not intended to be read linearly.
1. Execution Model (Important)
Return Values
return 1 -- Buy / Long / Add (DCA)
return -1 -- Exit or Short (engine-defined)
return 0 -- Do nothing / Hold2. Supported Lua Syntax
β
Supported commands
β Not Supported (by design)
3. Core Market Data Variables
Price Variables
Variable
Description
4. Derived Price Variables
Variable
Formula
Description
5. Bar Event Context (ev)
ev)Fields
Field
Type
Description
6. Moving Average Indicators (Module MA)
EMA β Exponential Moving Average
SMA β Simple Moving Average
WMA β Weighted Moving Average
MACD β Moving Average Convergence Divergence
Last updated