Amibroker Afl Code Verified
Your trading system is only as good as the code that runs it. Verify it, or verify your losses.
Does the code do what the author claims? A Moving Average crossover should actually use Cross() —not > which causes repainting. amibroker afl code verified
// 2. Out-of-Sample Check SetOption("AllowInSample", False); // Force Amibroker to ignore future bars Your trading system is only as good as the code that runs it
Buy = Cross(CCI(opt1), -100) AND RSI(opt2) < opt3; -100) AND RSI(opt2) <
// Check 1: No future bar used in signal Assert( Buy == 0 OR BarIndex() < LastBarIndex(), "Buy signal uses current bar only" );
Common mistake: comparing or combining arrays of different lengths.