Smoothed Repulse rejected in ProBacktest

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #142076 quote
    soulintact
    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
    robertogozzi
    Moderator
    Master

    I guess you are using v10.3, while

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

    is supported by v11.

    soulintact thanked this post
    #142084 quote
    soulintact
    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
    robertogozzi
    Moderator
    Master

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

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 soulintact
5 years, 6 months ago.

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