Open parenthesis expected

 

Hi,

I am new to coding, could please help. I brought my code down to two errors and I can't seem to get this right.

 void OnTick()
{
    // Ensure there is at least one bar of data
    if (Bars <= inRSIPeriod || Bars == 0)  // Corrected syntax without additional parentheses
    {
        Print("Not enough data.");
        return;

    }
'<=' - open parenthesis expected RSID v1.mq5 50 14
'==' - open parenthesis expected RSID v1.mq5 50 37
2 errors, 0 warnings 3 1
Improperly formatted code edited by moderator.
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Kyle McPherson:
Improperly formatted code edited by moderator.

Please, always use the CODE button (Alt-S) when inserting code.

Code button in editor