I need coders help asap

 

      i Faced Errors in Compiling my Code

'}' - unexpected end of program

Decompiled code deleted by moderator.


    int ticket;

    // Buy condition
    if (EMAFast > EMASlow && RSI < 70 && ADX > 25 && StochK < 20 && ATR > 0.002)
    {
        ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, 0, comment, Magic, 0, Blue);

        // Check if the order was successful
        if (ticket < 0)
        {
            Print("OrderSend failed with error #", GetLastError());
        }
        else
        {
            Print("OrderSend successfully. Ticket: ", ticket);
        }
    }

    // Sell condition
    if (EMAFast < EMASlow && RSI > 30 && ADX > 25 && StochK > 80 && ATR > 0.002)
    {
        ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, 3, 0, 0, comment, Magic, 0, Red);

        // Check if the order was successful
        if (ticket < 0)
        {
            Print("OrderSend failed with error #", GetLastError());
        }
        else
        {
            Print("OrderSend successfully. Ticket: ", ticket);
     }
 }
    


Documentation on MQL5: Date and Time / TimeLocal
Documentation on MQL5: Date and Time / TimeLocal
  • www.mql5.com
Returns the local time of a computer, where the client terminal is running. There are 2 variants of the function. Call without parameters Call with...
 

please edit your post -

Forum on trading, automated trading systems and testing trading strategies

When you post code please use the CODE button (Alt-S)!

Use the CODE button

 

Just to remind:

Coders (any coder) are coding for free:

  • if it is interesting for them personally, or
  • if it is interesting for many members of this forum.

----------------

and Freelance section of the forum should be used in most of the cases.

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2024.07.20
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
   tmp_str00000 = (string)Id_04728;
   tmp_str00000 = " with " + tmp_str00000;
   tmp_str00000 = tmp_str00000 + " cycle ";
   tmp_str00001 = (string)Ii_0471C;

Ask the real owner of the source code to give it to you or have him fix it for you.

Decompiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way, we will not be an accomplice after the fact to that theft.

See also
          Terms of Use of MQL5.community #3.13
          How can I recognize a decompiled code ? - General - MQL5 programming forum - Page 2 #17 (2017)
          134317 - MQL4 programming forum (2011)

If you post decompiled code again, you will likely be banned.

Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because “someone uploaded it, I don't know why I can't use that?”

 
William Roeder #:

Ask the real owner of the source code to give it to you or have him fix it for you.

Decompiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way, we will not be an accomplice after the fact to that theft.

See also
          Terms of Use of MQL5.community #3.13
          How can I recognize a decompiled code ? - General - MQL5 programming forum - Page 2 #17 (2017)
          134317 - MQL4 programming forum (2011)

If you post decompiled code again, you will likely be banned.

Don't tell us you found it on the 'net: if someone stole your bank details and uploaded them on to the internet, is it OK for everyone to use them because “someone uploaded it, I don't know why I can't use that?”

It's not a stolen code it was been open source by a Bangladish guy in github

 
Dwayne Leif #: It's not a stolen code it was been open source by a Bangladish guy in github
It is decompiled code. Github is irrelevant. Do not post any again.