Getting value from my personal indicator

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #32271 quote
    Ronen BittonRonen 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
    ElsborgtradingElsborgtrading
    Participant
    Veteran
    try the CALL instruction
    #32282 quote
    Ronen BittonRonen Bitton
    Participant
    New
    Thanks. I tried but not working.
    #32283 quote
    Ronen BittonRonen Bitton
    Participant
    New
    I get wrong value
    #32302 quote
    GraHalGraHal
    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 BittonRonen 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
    NicolasNicolas
    Keymaster
    Legend

    >> 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 BittonRonen 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
    ElsborgtradingElsborgtrading
    Participant
    Veteran
    try this
    return R(1)
    #32469 quote
    NicolasNicolas
    Keymaster
    Legend
    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
    ElsborgtradingElsborgtrading
    Participant
    Veteran
    ahh šŸ™‚ I can never remember the difference between () and []
    #32494 quote
    Ronen BittonRonen Bitton
    Participant
    New
    Great!!! Thanks
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 BittonRonen Bitton
9 years, 5 months ago.

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