Ten Liner
Author: urielt
Creation Date: 7/9/2009 10:44 AM
profile picture

urielt

#1
Hello,

i am trying to add the parameter to the parameter window that i can optimize the strategy like to add the # of days ,% and the exit point:

CODE:
Please log in to see this code.
profile picture

Eugene

#2
What is the exit point?
profile picture

urielt

#3
Hello Eugene,

when the strategy exit the trad
profile picture

Eugene

#4
Here's a fragment illustrating how to add a couple of parameters to the strategy:
CODE:
Please log in to see this code.
profile picture

urielt

#5
i have no clue about programing...where i should insert it in the strategy?
profile picture

Eugene

#6
Well, it's not a ready-made sample but a code snippet where the exit logic has to be worked out. If you would like to modify existing code-based strategies, here's the recommended reading from our WL5 Wiki:

How do I start with C# ?
profile picture

urielt

#7
anyone i can pay to do that for me?
profile picture

Eugene

#8
Try this:
CODE:
Please log in to see this code.
profile picture

urielt

#9
Eugene Thanks so much, i was hopping to have the option to change the parameter :"three consecutive days" (to other # of days) please explain what the different from "exit after" and "stop %"

again thanks so much for your help
profile picture

Cone

#10
Exit after is a time-based stop. No matter what happens, an open position is exited after the specified number of bars from its entry bar. Otherwise, the stop exits are working - one of them is a fixed percentage stop loss.

You didn't provide specific requirements, so if you want someone to do your programming, you'll need to learn how to provide very detailed requirements. Anything else, you will not get what you're expecting.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).