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