Smoothed Repulse rejected in ProBacktest

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #142076 quote
    soulintactsoulintact
    Participant
    Senior
    //Smoothed Repulse
    // parameters:
    SRLength=5
     
    Bull=(exponentialAverage[5*SRLength](((3*Close)-(2*lowest[SRLength](low))-Open[SRLength])/Close*100))
    Bear=(exponentialAverage[5*SRLength]((Open[SRLength]+(2*highest[SRLength](high))-(3*Close))/Close*100))
    SmoothedRepulse=(Bull-Bear)
    
    BullSmoothedRepulse=(SmoothedRepulse<2.6)
    BearSmoothedRepulse=(SmoothedRepulse>0)
    

    Since a week the code above is rejected when I try to ProBack test. Any ideas? Thanks

    Pro-Backtest-error-message.png Pro-Backtest-error-message.png
    #142078 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I guess you are using v10.3, while

    https://www.prorealcode.com/documentation/smoothedrepulse/

    is supported by v11.

    soulintact thanked this post
    #142084 quote
    soulintactsoulintact
    Participant
    Senior

    Thank you Robert, that is correct. I use 10.3, but the code string has been working for months until last week. That is why I am a bit puzzled.

    #142086 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Actually the issue is that you are using   SmoothedRepulse as a variable name that is now a reserved keyword.

    Rename it SmoothedRepulseX.

    soulintact thanked this post
    #142156 quote
    soulintactsoulintact
    Participant
    Senior

    Thank you Roberto. Spot on, that did it. THANKS!!

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

Smoothed Repulse rejected in ProBacktest


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
soulintact @soulintact Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by soulintactsoulintact
6 years, 1 month ago.

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