CODE HELP – A VERY SIMPLE ONE

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4155 quote
    GraHal
    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
    Nicolas
    Keymaster
    Master

    Hello GraHal,

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

    #4167 quote
    GraHal
    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
    Nicolas
    Keymaster
    Master

    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
    GraHal
    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.

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 GraHal
9 years, 10 months ago.

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