how to replace variable

Forums ProRealTime English forum ProOrder support how to replace variable

Viewing 6 posts - 1 through 6 (of 6 total)
  • #161099

    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

    #161109

    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.

    1 user thanked author for this post.
    #161116

    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

    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.

    1 user thanked author for this post.
    #161120

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

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

     

    1 user thanked author for this post.
    #161122

    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.

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login