how to replace variable

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #161099 quote
    crusoe76
    Participant
    Junior

    Hello,

    I’ve downloaded from library an automated trading strategy, I’m trying to go live but I have a message saying to ” replace variables with specific values to prepare this strategy for automated trading”

    this are the variable I would like to replace,

    SL = 200
    SlowPipDisplace = 0
    FastPipDisplace = 0
    Length = 200
    startingvalue = 50
    startingvalue2 = 5
    SlowLength = 60
    FastLength = 30

    can anyone tell me where shall I put this variables.

    Thanks in advance

    XXXDJI-M1-TrendImpulsev1-1.itf
    #161109 quote
    Vonasi
    Moderator
    Master

    You have to delete them from the variable optimising window and then insert them at the top of the code but below any DEFPARAM instructions. You may find that they are already there but just rem’d // out.

    crusoe76 thanked this post
    #161116 quote
    crusoe76
    Participant
    Junior

    I’ve already tried but doesn’t work, it come up a message saying ” Syntax error, this variable is not used in the code startingvalue  , this variable is not in the code startingvalue2,  the following variable is undefined centertrend….any idea?

    #161117 quote
    Vonasi
    Moderator
    Master

    If they are not used in the code then just delete them where you define them in the code.

    If they are undefined them define them by adding them to the code.

    crusoe76 thanked this post
    #161120 quote
    robertogozzi
    Moderator
    Master

    The attached ITF file is working. Import it into ProOrder.

    I added these variables just after DEFPARAM’s and removed all variables from optimizer:

    SL              = 300
    SlowLength      = 7
    FastLength      = 3 
    SlowPipDisplace = 0
    FastPipDisplace = 0
    length          = 100
    centertrend     = 1
    crusoe76 thanked this post
    XXXDJI-M1-TrendImpulsev1.itf
    #161122 quote
    GraHal
    Participant
    Master

    can anyone tell me where shall I put this variables.

    If, for example, we want to find where in the code slowlength is used we can right click (while hovering in the code) and select Find, then enter slowlength in the Find box then click on Next.

    crusoe76 thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

how to replace variable


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
crusoe76 @crusoe76 Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by GraHal
5 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/11/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...