CODE HELP – A VERY SIMPLE ONE

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4155 quote
    GraHalGraHal
    Participant
    Master

    Hello  Everyone

    c1 = Close > Highest[259](Close[1])

    Does the above mean …

    if the current bar close is higher than highest close in the last 259 bars counted up to the bar before the current bar (260)

    Thanks

    GraHal

    #4159 quote
    NicolasNicolas
    Keymaster
    Legend

    Hello GraHal,

    Seems that you are right, look at my screenshot, just made a little indicator to show the difference.

    highest-close.png highest-close.png
    #4167 quote
    GraHalGraHal
    Participant
    Master

    Hey thanks Nicolas, that’s great!

    I never thought of doing that … but have now, however I don’t get same as you! ha

    What have you applied c1, c2 to in order to get the ramped line?

    Regards

    Graham

    #4171 quote
    NicolasNicolas
    Keymaster
    Legend

    GraHal, you got the entire code in my screenshot, did you see it? 🙂

    Anyway, here it is :

    c1 =  Highest[259](Close[100])
    
    c2 =  Highest[259](Close)
    
    RETURN c1,c2
    #4181 quote
    GraHalGraHal
    Participant
    Master

    Ha … I thought I’d copied same as in your screenshot, but now I realise it was a ‘mix of mine and yours’.

    Yes … I get the same indicator result as you now!

    Thanks Nicolas

    Graham

Viewing 5 posts - 1 through 5 (of 5 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

CODE HELP – A VERY SIMPLE ONE


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by GraHalGraHal
10 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/23/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...