Wilderaverage syntax errors need correct syntax format.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #138643 quote
    PhilstradingPhilstrading
    Participant
    Senior

    Hi, well I’m sure its obvious to someone, but when I try to put in the syntax for a wilderaverage the help is of no help. I want the syntax for wilderaverage 4 periods, horizontal shift -1. vertical shift 0 applied to close

    No matter how I write it, parenthesis, brackets, commas. I can’t seem to put it in without syntax errors, yet the help states you can spcify them , just doesnt tell you the correct syntax.

    A simple thing, but I must be missing something.

    Anyone spell this out for me? Be appreciated.

    Thanks

    #138644 quote
    NicolasNicolas
    Keymaster
    Legend

    Horizontal shift is just a way to get the current value moved visually on the right or the left , so what do you expect exactly?

    #138648 quote
    PhilstradingPhilstrading
    Participant
    Senior

    LOL.. 🙂 hmmm, ok, clearly not thinking about it too deeply here…. that being the case its not of much value… I’ll mess about a bit more… Twas looking at crosses that may be of some value scalping. Wanted that variance in current time of course. I’ll mess about with programming perhaps..

    Cheers Robert.

    #138695 quote
    NicolasNicolas
    Keymaster
    Legend

    Get the Xth previous value of a variable:

    x = 5 //period offset 
    var = wilderaverage[20](close)
    varX = var[x]
    
    return varX
    #138729 quote
    PhilstradingPhilstrading
    Participant
    Senior

    Ok cheers Nicolas. I will take a mosey at that.

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

Wilderaverage syntax errors need correct syntax format.


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

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

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