"Highest" function won't work with this code

Forums ProRealTime English forum ProOrder support "Highest" function won't work with this code

Viewing 15 posts - 1 through 15 (of 15 total)
  • #113791

    Was trying to get this to work:

    Tradedollars works on its own – and I can graph it and it does what it should – but it won’t seem to graph the HIGHEST of this function.

    Any clues why?

     

    Thanks,

     

    Finning

    #113793

    You should try with:

    or with:

     

    #113795

    This sort of thing often happens to me – it is probably due to trying to find HIGHEST[0] when BARINDEX = 0.

    Try this instead – not tested:

     

    #113796

    Hi Nicolas,

    thanks for your reply.

    I just tried both codes, and both don’t return/graph anything.

     

    #113798

    Try this (not tested):

     

     

    #113799

    Which Prorealtime version please?

    #113802

    Hi Vonasi,

    thanks for your reply.

    I just tried your code, and it didn’t work either.

    Putting the “graph” right at the bottom of the code too with nothing under it.

    Just not returning anything, not even a zero.

    A graph value line doesn’t even com up in the cursor details box.

    #113804

    Hi Vonasi,

    just read your second code and tried it – the second code comes up in the cursor window as maxtradedollars – however the value doesn’t change from zero at any stage.

    Nicolas,

    I am currently running v 10.3 – 1.8.0_45

    Thanks

    #113806

    But it should work! Proceed in order:

    1. use one of our snippet in another code (basic one) on the same instrument
    2. if 1/ doesnt work, try another instrument and timeframe
    3. if 2/ doesnt work, relaunch platform
    4. retry
    5. give feedback here
    #113808

    Hi Nicolas,

    I can’t do everything right now – but I’ll give you some quick feedback:

    I have been working on AUDUSD $1 weekly timeframe – where I have had my initial problem.

    Just retried the complete code from #113798 on my initial code and I can confirm that it didn’t work – it only showed a zero the whole time.

    So as for point #1

    I tried this code below on my target market the AUDUSD $1 weekly timeframe

    and I still got a constant zero value from the maxtradedollars graph – see attached picture.

    I’ll work my way through the other points ASAP and get back to you.

    Thanks,

    Finning

    #113811

    It works for me for AUDUSD mini, not with AUDUSD .. with this code:

    I’ll make a report.

    #113813

    Hi Nicolas,

    yes I was using the mini market/$1 market too.

    I’ll restart my platform just to check that its not the problem either.

     

    Thanks,

     

    Finning

    #113814

    PS – restart didn’t help.

    #113870

    The problem is identified and will be fixed. In the meantime, you can change the code with:

    It should work.

    1 user thanked author for this post.
    #113889

    Hi Nicolas,

    thanks for chasing that up!

    Yes the last bit of code that you wrote with the tradeindex>0 did work – so I have something that I can use now.

    Thanks for getting this to work,

    Finning

Viewing 15 posts - 1 through 15 (of 15 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login