Code problem ple help me

[Deleted]  

Buy Signal:

  • Entry Condition: The first candle is below the EMA-5, with its high point not touching the EMA line. This candle becomes the alert candle. The second candle breaks the alert candle, signaling the buy entry.

Sell Signal:

  • Entry Condition: The first candle is above the EMA-5, with its low point not touching the EMA line. This candle becomes the alert candle. The second candle breaks the alert candle, signaling the sell entry.

Target and Risk Management:

  • SL: Set at the swing high/low of the first alert candle.
  • Risk-to-Reward Ratio: Fixed at 1:3.

Special Conditions:

  • Only one trade per signal.
  • Maximum of three trades per day.
  • Trading only during the New York session.
  • Magic number and license settings are in place for EA deployment.
  • Custom time frame option included.

Files:
EMA5.mq5  5 kb
 
Good-looking strategy!

NOTE: Traders and coders are working for free:

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

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.12.12
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
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