Forum

OnCalculate not working for me

Hello experts, I need your advise to understand why OnCalculate doesnt work in my EA. I have the following compilation warning " OnCalculate function declared with wrong type or/and parameters" and the print statements always return 0 when EA is running. 2023.02.08 15:10:22.523 TestOnCalculate

Multiple if statement, else code is not executed

Hello experts, I have a code that includes multiple IF statements (if inside if) however I have an issue when one of the conditions is not met, the related else statement is not executed...no errors received while compiling the EA. Please advise about the correct syntax & if anything is missing in