Before trusting numbers, verify that your signals appear where you expect them to.
if ( Close > Open ) ... (This causes an execution error). amibroker afl code verified
Before execution, AFL code must pass the internal compiler checks provided by the AmiBroker Formula Editor Syntax Validation button (or Before trusting numbers, verify that your signals appear