Handy MQL4 utility functions - Page 2
Page 2 of 615 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41

Thread: Handy MQL4 utility functions

  1. #11
    Quote Originally Posted by ;
    found incorrect effect for MathFix function.

    Attempt gearing up to zero decimal for value of 123.456.

    I get 123.000
    Function is working properly.
    Values lower than 123.5 are rounded down to 123.000
    Values higher than 123.5 are rounded around 124.000

    If you want to round up all worth larger than (for example) 123.000 into 124.000, utilize MathFix(x 0.49999999)

  2. #12

  3. #13
    New version uploaded: 7 new functions added. See post #1 for download documents and detailed info.

  4. #14
    Experienced an issue when attempting to compile Sessions.mq4 (https://www.nigeriaforextrading.com/...a-capable.html)
    its concerning the mqh function DayNumber, I get:'(' - function definition unexpected
    (experts/include/ -- extensible functions.mqh (6, 14) )

    the terminal employed is r482; and I cant see the solution to fix it.

  5. #15
    Quote Originally Posted by ;
    Experienced an issue while attempting to compile Sessions.mq4 (https://www.nigeriaforextrading.com/...-vttrader.html) its about the mqh function DayNumber, I get:'(' - function definition sudden (experts/include/ -- extensible functions.mqh (6, 14) ) the terminal used is r482; and I cant see the way to fix it.
    Compiles for me, I followed the instructions, no problems.

  6. #16
    Hi,

    just a little feedback nothing really important. Could not PM you so that I post it here

    1.
    On Your: Shellsort functions you appear to have left over a factor k that's never utilized.

    2.
    The ShellsortIntegerArray() function Appears to be considerably slower (approximately 10 times or so) compared to the MT4 ArraySort() on an Integer Array
    for the MT4 function: ArraySort http://docs.mql4.com/array/ArraySort

    Cheers
    Ati

  7. #17
    Hi Hanover,

    Thanks for sharing your Handy utility works. I would like to save time in coding my own custom indicator by using your handy functions.
    Please give me some specific directions about the best way best to put your library works into work.
    For example, in purpose PlotText I browse:
    PlotText (objname, delete, window, time1, price1, text, color, size, font, angle, backg, vis);
    I do not understand delete is what for.
    Thank you for your help.

  8. #18
    Quote Originally Posted by ;
    Hi Hanover, Thank you for sharing your own Handy utility functions. I want to save time in coding my own customized indicator with your handy functions. Please provide me some specific instructions about the best way best to place your library functions into work. For instance, in purpose PlotText I browse: PlotText (objname, delete, windowtime1, price1, text, colour, font, font, angle, backg, vis); I do not know delete is what for. Thanks for your help.
    fareastol-
    delete is of type bool. Look at the role to learn what each is.

    Inserted Code // ------------------------------------------------------------------ int PlotText(string name, bool del=false, int win=0, datetime dt1=0, double prc1=0, string text=, colour clr=0, int size=0, string font=Arial, double angle=0, bool bg=false, int vis=0) // ------------------------------------------------------------------ if (StringLen(name)lt;1

  9. #19
    Thanks a lot, Cyber1. Your instruction is quite clear.
    Big pips to you!

  10. #20
    New version uploaded: a few new functions added.
    See post #1 for download documents and detailed info.

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.