Need to re-code horizontal line indior for new MT4 builds
Results 1 to 3 of 3

Thread: Need to re-code horizontal line indior for new MT4 builds

  1. #1
    Attached below,y'all will find an indior I discovered over at Babypips some time back and I've been using for some time.

    What the indior does is draw horizontal lines after reading the levels to draw from a text file (also attached) placed from the MQL4\Documents directory.

    The text file looks like so:


    Anyways, the connected ex4 and text file must work in most MT4 assembles, so don't hesitate to use it. I use it all of the time to keep my flat lines list safe rather than needing manually drawn lines deleted each time I change currency pairs templates at the same window.

    What I need help would be to have the mq4 code re-written to be new-build friendly.

    For the time being, the existing mq4 file compiles (with a few warnings, and ZERO errors) but the resulting ex4 file doesn't draw any lines when installed i.e. it doesn't do anything at all from the current builds.

    I understand I need to just continue using the working variant, but...
    1. I can't trust it will continue to work in future MT4 assembles,
    2. I would like to be able to re-write old-build indiors on my own, and knowing how to do it on this mq4 file will go a very long way to helping me learn.

    Thanks very much for the time!
    https://www.nigeriaforextrading.com/...1729168582.mq4
    https://www.nigeriaforextrading.com/...1095514912.ex4
    https://www.nigeriaforextrading.com/...2607315314.txt

  2. #2
    Quote Originally Posted by ;
    quote - The code was in dreadful shape therefore it was easier to recode. file
    Thanks a lot, man!

    I added #property indior_chart_window in the code to make it function how I need. It still compiles with no error, and works as I'd hope.

    So all that is left for me is to find out why there were still 3 Warnings. But that is a story for another day!

    I will post again if I manage to clean the code up further (with my restricted code cannibalizing skills)...

    Cheers, mate!

  3. #3
    Quote Originally Posted by ;
    Attached below,y'all will find an indior I found over at Babypips some time back and I have been using for a while. What the indior does is draw horizontal lines after reading the amounts to draw out of a text file (also attached) placed in the MQL4\Files directory. The text file looks like : picture Anyways, the document file file
    skenobi-
    The code was in dreadful shape so it was simpler to recode.
    https://www.nigeriaforextrading.com/...1136629755.mq4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.