Getting value from my personal indicator

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #32271 quote
    Ronen Bitton
    Participant
    New

    Hi everyone,

    Which command should I use to get the value from 3 weeks ago for example from my indicator?

    For example : close(3) return the close value 3 weeks ago.

    #32272 quote
    Elsborgtrading
    Participant
    Veteran

    try the CALL instruction

    #32282 quote
    Ronen Bitton
    Participant
    New

    Thanks. I tried but not working.

    #32283 quote
    Ronen Bitton
    Participant
    New

    I get wrong value

    #32302 quote
    GraHal
    Participant
    Master

    Hi Ronen

    Close[3] (3 in square brackets) will give you the value of weekly close from 3 weeks ago but only if you are using a 1 Week Timeframe.

    Cheers
    GraHal

    #32303 quote
    Ronen Bitton
    Participant
    New

    Yes, i know that.

    It was just example.

    I need help with a command (same as close [Nweek] ) that return the value of previous week from my personal indicator.

    #32305 quote
    Nicolas
    Keymaster
    Master

    >> Please update your country flag in your profile. Thank you 🙂 <<

    Please post your code to get a more precise answer to your query.
    #32320 quote
    Ronen Bitton
    Participant
    New
    how can i get the previous value (R)  from the code below ?
    AD = AccumDistr(close)
    R = AD - Average[30](AD)
    return R
    #32331 quote
    Elsborgtrading
    Participant
    Veteran
    try this
    return R(1)
    #32469 quote
    Nicolas
    Keymaster
    Master
    or this code instead:
    return R[1]
    The number under brackets is the quantity of bars in the past you want to get the variable’s value from.
    #32490 quote
    Elsborgtrading
    Participant
    Veteran
    ahh 🙂 I can never remember the difference between () and []
    #32494 quote
    Ronen Bitton
    Participant
    New
    Great!!! Thanks
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

Getting value from my personal indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 11 replies,
has 4 voices, and was last updated by Ronen Bitton
8 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/17/2017
Status: Active
Attachments: No files
Logo Logo
Loading...