Horizontal Trendline

 

Helo everybody,


I am looking for a solution for my EA.

For that i have serveral horizontal lines at my chart.

My EA should think, that every line has the parameters.

Does anybody know a code for this?

so for example :


I say if Close is higher than X1 (horiontal line 1)


and when the price decrease 

if close is below X2 (horiontal 2)


I dont want to insert all the lines in the code.

The EA should read every line as the same.


Please could anybody help?


Chris

 
Rehpo22: Please could anybody help?
Help you with what? You haven't stated a problem.
You have only four choices:
  1. Search for it,
  2. learn 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 yours.
  3. Beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!),
  4. or pay (Freelance) someone to code it.
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
          urgent help.
 
whroeder1:
Help you with what? You haven't stated a problem.
You have only four choices:
  1. Search for it,
  2. learn 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 yours.
  3. Beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!),
  4. or pay (Freelance) someone to code it.
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
          urgent help.

Hey,


my problem is that i don't know how to code that the ea takes all lines i draw in the chart like the same

Reason: