help from a programmer support and resistance buy or sell

 
  1. Define the resistance and support zones: Determine the price levels that define the upper and lower boundaries of your resistance and support zones.

  2. Track price movements: Monitor the price action using the OnTick() function in MQL4. You can use the iHigh() and iLow() functions to retrieve the high and low prices of the previous bars.

  3. Identify the crossover events: Check if the price crosses above the resistance zone or below the support zone. You can use conditional statements ( if or switch ) to compare the current price with the defined zones.

  4. Generate buy and sell signals: Once a crossover event occurs, generate a buy signal when the price crosses above the resistance zone and a sell signal when the price crosses below the support zone.

  5. Place orders: Use the appropriate order functions ( OrderSend() , OrderModify() , etc.) to execute your buy and sell trades based on the generated signals.

 

Your topic been moved to the section: MQL4 e MetaTrader 4

However, regarding your query ...

  • Usually people who cannot code do not receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free).
  • Finally, you also have the option to hire a programmer in the Freelance section.
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2023.06.04
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
skyese33: help from a programmer support and resistance buy or sell

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
          No free help (2017)

Help you with what? You haven't stated a problem, you stated a want.
     How To Ask Questions The Smart Way. (2004)
          Prune pointless queries.

You have only four choices:

  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Try asking at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)