array variables availability in ProRealTime – examples and discussions

Forums ProRealTime English forum ProBuilder support array variables availability in ProRealTime – examples and discussions

Viewing 15 posts - 61 through 75 (of 255 total)
  • #125693

    Sorry,  but you can’t get the whole data contained in an array through a CALL.

    1 user thanked author for this post.
    avatar MPL
    #125718
    MPL

    Ok, thank you for your answer

    #126262

    You can find here another version of the benefit of arrays. In this example we calculate weekly bollinger bands to display on any faster time framed chart. The code could easily be adapted to calculate the standard deviation for any period for anything!

    Standard deviation calculation using arrays.

    #126640

    HI

    i would like to chat to you could u email me pls——————–

    #126643

    @neal parma

    when you posted you had a chance to read a full set of rules to stick to. You probably did not pay attention to them and broke this one:

               Do not include personal information such as email addresses, telephone numbers, etc… in your posts

    Please share our common rules. Thank you 🙂

     

    #126647

    Hi Nicolas, any update on the array sort functionality? I appreciate things will take longer to implement given the current situation.

    Again, what am I trying to do is to percentile rank price moves (of say DAX Futures) from 8.00am (UK time) to 8.00am + x minutes.

    #126679

    Still no update on that new instruction, sorry. How do you want the percentile to be plotted?

    #126691

    Thanks for your quick reply, Nicolas. I was hoping to plot it as a simple histogram in a separate panel on the close of each bar, building up cumulatively from the 8.00am open to a designated finish time, similar to your separate buy/sell volumes on the same candle indicator.

    So when price falls relative to the open, it displays a red histogram with the value equal to the percentile rank of the decline (in terms of % of x-day ATR, vs the open) measured over the previous y days; and likewise when price rises relative to the open, it displays a green histogram with the value equal to the percentile rank of the rise (in terms of % of x-day ATR, vs the open) measured over the previous y days.

    The thinking behind it is to try and take advantage of the early morning reversals (in both directions, but typically a sharp drop followed by a snap back up on light news days) on the DAX, but using a ‘smart’ way to measure it and incorporate some historical context as opposed to just an oscillator like RSI or Stochastics that tells you nothing about previous days’ price action.

    #127380

    So, will this allow creation of indicator similar to MT4 ZUP?

    Also, the 3 point based Fibonacci Time projection into future?

    #129544

    Hi

    Experimenting with my first array and seem to have fallen at the first hurdle, so help would be appreciated.

    If we wanted to return a set of non consecutive numbers of exponential moving averages by using an array, how would we do it please. My attempt below doesn’t work, what am I missing?

    Thanks as always!

    Rob

     

     

    #129547

    First of all you can’t have a position zero in an array.

    The RETURN line will then just return the value in position 5 of the array because that is the last known value of ‘i’.

     

    1 user thanked author for this post.
    #129575

    So in this example I’m trying to add the Exponential Moving Average for periods 5, 10, 20, 50, 100 & 200 all at the same time, is that possible?

     

    #129580

    There is no need to quote me (twice!) when I am the only person you are talking with! I’ve deleted the quotes in your post.

    Yes your code does that $ema[0 to 5] (should be 1 to 6) will have the latest values for ema5, ema10, ema20, ema50, ema100 and ema200.

    I notice now that your EXPONENTIALAVERAGE is incorrect it should be with [] and not ()

     

    The only thing it does not do is display them in a RETURN line. You could do it like this to avoid adding them all to the return line. Not tested

     

    1 user thanked author for this post.
    #129585

    If I did want to return them on the RETURN statement, how would I do that?

    #129594

    Please stop using the ‘Quote’ button unnecessarily! Especially if it then includes masses of code! Just put your reply in the box and press submit! I’ve had to edit your post again.

    Just put:

    You are not really achieving anything with your code that you couldn’t achieve with the following:

     

Viewing 15 posts - 61 through 75 (of 255 total)
Similar topics:

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