Discussing the article: "Building a Candlestick Trend Constraint Model (Part 8): Expert Advisor Development (I)"

 

Check out the new article: Building a Candlestick Trend Constraint Model (Part 8): Expert Advisor Development (I).

In this discussion, we will create our first Expert Advisor in MQL5 based on the indicator we made in the prior article. We will cover all the features required to make the process automatic, including risk management. This will extensively benefit the users to advance from manual execution of trades to automated systems.

MetaEditor software includes a compiler that effectively manages errors detected during profiling attempts. This tool helped me uncover why the previous version failed to display the risk-reward rectangles as intended. Although the program compiled successfully, the issue was not with the code itself. Instead, the challenge lay in the fact that nothing was displayed within the range of the look back candlesticks, primarily due to specific technicalities.
  1. The look back candle value was set too high at 5,000 bars by default.
  2. Having multiple buffers in a single program increases the complexity of calculations, which can slow down the display of the indicator chart window.

Building a candlestick trend constraint model


    Author: Clemence Benjamin

     
    hello i have some error how to fix it?

    2024.08.15 00:47:15.123 2024.08.01 00:00:00   cannot load custom indicator 'Trend Constraint V1.09' [4802]
    2024.08.15 00:47:15.123 2024.08.01 00:00:00   indicator create error in 'Trend_Constraint_Expert.mq5' (1,1)

     
    argatafx28 #:
    hello i have some error how to fix it?

    2024.08.15 00:47:15.123 2024.08.01 00:00:00   cannot load custom indicator 'Trend Constraint V1.09' [4802]
    2024.08.15 00:47:15.123 2024.08.01 00:00:00   indicator create error in 'Trend_Constraint_Expert.mq5' (1,1)

    Hi @argatafx28

    1. Ensure that the indicator Trend Constraint V1.09  is installed for the EA to function.
    2. Trend Constraint V1.09 uses ShellExecute to integrate telegram, could you make sure to allow DLL on dependencies when launching the indicator?


    Enable Allow DLL

    Which operating system are you using by the way?
    Building A Candlestick Trend Constraint Model (Part 5): Notification System (Part II)
    Building A Candlestick Trend Constraint Model (Part 5): Notification System (Part II)
    • www.mql5.com
    Today, we are discussing a working Telegram integration for MetaTrader 5 Indicator notifications using the power of MQL5, in partnership with Python and the Telegram Bot API. We will explain everything in detail so that no one misses any point. By the end of this project, you will have gained valuable insights to apply in your projects.