Seriously, my fault or MT4s?

thread: Seriously, my fault or MT4s?

  1. #1

    Seriously, my fault or MT4s?

    I'd like to find the maximum pub(not large price, pub #) between 2 times.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I use this:
    PHP Code: <code><span style=”color: #000000”> <span style=”color: #0000BB”>iHighest</span><span style=”color: #007700”>(</span><span style=”color: #0000BB”>Symbol</span><span style=”color: #007700”>(),</span><span style=”color: #0000BB”>0</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>MODE_HIGH</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>238</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>120</span><span style=”color: #007700”>)
    </span><span style=”color: #0000BB”></span> </span> </code> The results was: 322
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Why's this?! It's supposed to be between 120 and 238, not outside this range.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    what's the problem guys? Anyone had any problems with this?
    I constantly used like highest pub between current bar and 10 previous bars and that worked nicely, but once I use, for instance, the previous 100 pubs back to 200 pubs, I don't get the correct results.

  2. #2
    Member
    70
    In your code:

    PHP Code: <code><span style=?color: #000000?> <span style=?color: #0000BB?>iHighest</span><span style=?color: #007700?>(</span><span style=?color: #0000BB?>Symbol</span><span style=?color: #007700?>(),</span><span style=?color: #0000BB?>0</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>MODE_HIGH</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>238</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>120</span><span style=?color: #007700?>)

    </span><span style=?color: #FF8000?>/ /ThePropersyntaxis

    </span><span style=?color: #0000BB?>iHighest</span><span style=?color: #007700?>(</span><span style=?color: #0000BB?>CurrencyPairused</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>Span</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>pricerangeused</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>AMOUNTOFBARSYOUWANTTOTEST</span><span style=?color: #007700?>,</span><span style=?color: #0000BB?>startingbar</span><span style=?color: #007700?>);
    </span><span style=?color: #0000BB?></span> </span> </code> In your case, you want to use iHighest(Symbol(), 0, MODE_HIGH, (238-120), 120);

  3. #3
    Wow Ronald.
    You're INCREDIBLE!
    Thank you so much.

  •