Creating an indicator

 


Can anyone plese create an Non-Repainting indicaor on mt4 or mt5 according to there instruction : 

  1. Indicator Creation:

    • Create an MQL5 program for an indicator that operates on live charts in MetaTrader 5 (MT5).
    • This indicator should allow users to select a specific timeframe for analysis.
  2. Buffers:

    • Define two buffers within the indicator for storing data.
    • These buffers will be used to determine when to display arrows on the chart.
  3. Downward Arrow Condition:

    • If the last candle is green and the next two candles are red,
    • Then, the third candle after the green candle should also be red.
    • Place a downward arrow on the second red candle after the green candle, before the opening of the third candle after the green candle.
  4. Upward Arrow Condition:

    • If the last candle is red and the next two candles are green,
    • Then, the third candle after the red candle should also be green.
    • Place an upward arrow on the second green candle after the red candle, before the opening of the third candle after the red candle.
  5. Implementation:

    • Implement the logic in the OnCalculate function of the MQL5 program.
    • Use the specified timeframe and buffer sizes provided as input parameters.
    • Set buffer values accordingly to trigger arrow displays based on the defined conditions.
  6. Visualization:

    • Use the SetIndexArrow function to specify arrow symbols for visualization on the chart.
    • Ensure the arrows are displayed accurately at the defined positions based on the conditions.
  7. Testing:

    • Test the indicator on various timeframes and market conditions to verify its accuracy.
    • Make adjustments if necessary to improve performance and reliability.
  8. Deployment:

    • Compile the MQL5 program and attach it to the chart window in MetaTrader 5.
    • Allow users to select the desired timeframe and observe the arrows generated based on the specified conditions.

(If possible add an panel to count win and loss)

adityaaa
adityaaa
  • 2024.03.30
  • www.mql5.com
Trader's profile
 

Forum on trading, automated trading systems and testing trading strategies

Please fix this indicator or EA

Sergey Golubev, 2017.03.24 07:23

And this is my other suggestion (which came from tsd 2010 and from tsd 2008):

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

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.


 
adityaaa:


Can anyone plese create an Non-Repainting indicaor on mt4 or mt5 according to there instruction : 

  1. Indicator Creation:

    • Create an MQL5 program for an indicator that operates on live charts in MetaTrader 5 (MT5).
    • This indicator should allow users to select a specific timeframe for analysis.
  2. Buffers:

    • Define two buffers within the indicator for storing data.
    • These buffers will be used to determine when to display arrows on the chart.
  3. Downward Arrow Condition:

    • If the last candle is green and the next two candles are red,
    • Then, the third candle after the green candle should also be red.
    • Place a downward arrow on the second red candle after the green candle, before the opening of the third candle after the green candle.
  4. Upward Arrow Condition:

    • If the last candle is red and the next two candles are green,
    • Then, the third candle after the red candle should also be green.
    • Place an upward arrow on the second green candle after the red candle, before the opening of the third candle after the red candle.
  5. Implementation:

    • Implement the logic in the OnCalculate function of the MQL5 program.
    • Use the specified timeframe and buffer sizes provided as input parameters.
    • Set buffer values accordingly to trigger arrow displays based on the defined conditions.
  6. Visualization:

    • Use the SetIndexArrow function to specify arrow symbols for visualization on the chart.
    • Ensure the arrows are displayed accurately at the defined positions based on the conditions.
  7. Testing:

    • Test the indicator on various timeframes and market conditions to verify its accuracy.
    • Make adjustments if necessary to improve performance and reliability.
  8. Deployment:

    • Compile the MQL5 program and attach it to the chart window in MetaTrader 5.
    • Allow users to select the desired timeframe and observe the arrows generated based on the specified conditions.

(If possible add an panel to count win and loss)

This is a Forum, for discussions. Revert to freelance section and create a job there and assign a coder to do it for you. You will not be assisted here in the forum. This strategy will not work, as it is based on guesswork on where the markets are headed. You can learn to trade at any institute around the world, they offer packages that suits your budget. There you will learn to do it properly