code conversion from wl4
Author: ayc868
Creation Date: 7/10/2008 1:16 AM
profile picture

ayc868

#1
CODE:
Please log in to see this code.


i have

CODE:
Please log in to see this code.


has some flaws, please advice
profile picture

Eugene

#2
CODE:
Please log in to see this code.


Here you're subtracting a Position from a bar number. Please see the QuickRef snippets for BuyAtMarket, SignalName, TurnDown etc. for how can time-based exits be implemented.

CODE:
Please log in to see this code.


Should be p.EntryBar.

CODE:
Please log in to see this code.


Check the syntax in the QuickRef, missing a Position to exit.

CODE:
Please log in to see this code.


There's no PositionEntryPrice in WL5, please revisit the .EntryPrice property of the Position object in the QuickRef.

profile picture

ayc868

#3
thank you, i solved them all.
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).