Big and Mid Figure

Discussion in 'Indicators and Charting' started by foreigner, Apr 14, 2014.

  1. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Does anyone know how to modify this indicator so that the big and mid figure lines show only as a short line of reference?!
     

    Attached Files:

  2. jack

    jack Administrator Staff Member

    Joined:
    Mar 29, 2013
    Messages:
    2,427
    Do you have the MQL4 version of the file? Or just the compiled version?
     
  3. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    I wrote a "Figures" script, which places the lines after the last price, as I found the available indicators cluttered the screen.

    Place in the scripts directory and compile.
    double click to place or remove Figures lines

    Source code included below.
    EDIT: - just realised that there is a small error.
    if you are using a 4 digit broker change:
    if(Digits == 4) {points = pips/1000 ; return(NormalizeDouble(points,Digits));}
    to
    if(Digits == 4) {points = pips/10000; return(NormalizeDouble(points,Digits));}

    ditto for a 5 digit broker, although will work without the change.
     

    Attached Files:

  4. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Thanks Rod thats pretty damn useful! especially the ability to turn on and off, do you know if this can be done via a button on a toolbar or just through the navigator?

    Also, is it possible to make the lines thinner and change the colour/style?


    Jack I just have the compiled version but it looks as though Rods got something even better!
     
  5. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    The line thickness, and much more, can be configured at runtime, if you un-comment
    #property show_inputs. refer to the code.

    Alternatively you can permanently change the following values in the code
    extern int InstroFigure_Line_Width = 2 ;
    extern int MidFigure_Line_Width = 3 ;
    extern int BigFigure_Line_Width = 4 ;

    ditto for colours etc. All my stuff is configured for a white screen background, so you may desire to change colours if you use a black background etc.

    I wrote the script from scratch a couple of years ago and now use it without much thinking about it. Upon revisiting I realised that it need a few minor tweaks. Attached is the latest version.

    Maybe one of these days I will get around to coding a button on the toolbar, this was somewhat difficult to code in MT4 build pre 600.
     

    Attached Files:

  6. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    Another option is to assign a Hotkey to the script.

    Right click on the script and select create Hotkey.

    Attached is a list of built-in Hotkeys. Suggest that you do not overwrite those that are already assigned.
     

    Attached Files:

  7. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Rod you are a legend.

    BTW Rod Ive tried assigning hot keys to indicators and it only opens the edit window, is hot key functionality exclusive to scripts?
     
  8. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    An Indicator can be attached to a Chart via a Hotkey, although not much value in using Hotkeys for Indicators, imho.

    Suspect you are referring to the Inputs Dialog; ie not the MetaEditor window.

    refer to below link for information on the use of Hotkeys.

    http://articles.mql4.com/189
     
  9. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    If you desire to extend the use of Hotkeys via Widows, I suggest -

    http://www.autohotkey.com/
     
  10. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Rod, is it possible to add labels to the institutional levels ? ie 20, 50, 80, 00

    The reason is that on a HD monitor MT4 prices are almost unreadable so labels to quickly identify levels would be useful.

    Thanks for your time I do appreciate it.

    F
     
  11. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    The 20 and 80 are thin, 50 medium, and Big Figure a thick line.
    Furthermore, place the cursor on the line and the prices will display. Additionally, the beginning of the bubble's second line displays the figures ie 20,80, 50 or 00.
     
  12. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Re: KSR Figures

    Rod do you know if KSR figures K4 works with MT4 version 4 build 670? Im having issues with a new install.

    Cheers
    F
     
  13. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    I'm also on build 670. No issue.
     
  14. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    Re: KSR Figures

    what is the issue? There is a K5 version if you want it.
     
  15. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Just wont execute on chart.

    New version would be appreciated thanks, its something I use every day..
     
  16. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    OK - I'll dig it out
    The one I now use is integrated into a library. Give me a day or two.

    Nevertheless the old version should still work, so check the following:

    [​IMG]

    MT4 updates often change these settings.
     
  17. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    try this
     

    Attached Files:

  18. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Works a treat! The switchable line length is a nice touch, I like yer style Rod. :)
     
  19. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    did K4 work as well?
     
  20. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,148
    No problem

    If you want the WAV files and instructions for the proper 'click' sound, let me know.
     

Share This Page