{ EdgeLab EasyLanguage example — sanitized demonstration } { This example shows the readable structure of an EdgeLab export. } inputs: ComboID("EdgeLab_Example"), TrendMode(0), VolMode(0), ExitBars(0); vars: TrendOK(true), VolOK(true), RegimeOK(true); TrendOK = TrendMode = 0 or EdgeLabTrend(TrendMode) of Data2 > 0; VolOK = VolMode = 0 or EdgeLabVol(VolMode) of Data2 > 0; RegimeOK = TrendOK and VolOK; { A complete export also includes the exact session, tendency, entry and exit rules selected in the EdgeLab workspace. } if RegimeOK and MarketPosition = 0 then Buy ("EL.example") this bar on close; if ExitBars > 0 and MarketPosition = 1 and BarsSinceEntry >= ExitBars then Sell ("EL.exit") this bar on close else SetExitOnClose;