need help with code

 

hi , trying to do indicator that will draw 4 horizontal lines  with 4 inputs,  2 resistance and 2 support , used code from horizontal line alert file , but after compiled a code -no errors and put inputs for s/r not drawing anything , I am not a coder , will u help me with this ?

Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
When a graphical object is created using the ObjectCreate() function, it's necessary to specify the type of object being created, which can be one of the values of the ENUM_OBJECT enumeration. Further specifications of object properties are possible using functions for working with graphical objects.
Files:
4_LINES.mq4  3 kb
 
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

    1. MT4: Learn to code it.
      MT5: 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.
    2. or pay (Freelance) someone to code it.
                Hiring to write script - General - MQL5 programming forum
    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.

  2. You create four HLines. With a default price of zero. Once created they will never move, even if you change the inputs because you never delete them.
  3. CHOMIK_40: but after compiled a code -no errors and put inputs for s/r not drawing anything
    You did add the indicator to a chart?
 
yes I did 
Reason: