Exit code location
Author: sshiggins
Creation Date: 2/4/2017 5:48 AM
profile picture

sshiggins

#1
Hello,

Why does WLP put Exit code after the Entry code, but you are putting the Exit code before the Entry code in example you give?

thanks,
profile picture

Eugene

#2
Hello,

You place exit logic on top of entry rules to prevent the exit logic from being applied to positions opened on the same bar.
profile picture

sshiggins

#3
Why does the rule generated code place the the Exit login on top then?

What happens if try to exit a position on the same bar without enabling it in preferences?
profile picture

Eugene

#4
QUOTE:
Why does the rule generated code place the the Exit login on top then?

Because of this:
<<You place exit logic on top of entry rules to prevent the exit logic from being applied to positions opened on the same bar.>>

QUOTE:
Why does WLP put Exit code after the Entry code,

Could you be more specific?
profile picture

sshiggins

#5
Sorry for my error in asking the follow up question. When you create a strategy using rules, it puts the exit code after the entry code. I was asking whey it does this.

This is an example of code from a simple rules based strategy, with the exit after the entry.

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

Eugene

#6
In this case of a multi-position strategy code, exit logic can be applied to positions opened on the same bar.
profile picture

sshiggins

#7
Ah, Single vs Multi position strategy is the difference. I took a look at the code generated by rules for each case.

Thanks for the weekend support!
profile picture

Eugene

#8
You're welcome!
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).