Exit Position After X Days?
Author: TheInvis
Creation Date: 8/5/2008 7:56 AM
profile picture

TheInvis

#1
A couple of years ago I dedicated a huge amount of time to WL4, and got pretty fluent in coding. However, I just d/l'd WL5 and I can't make heads or tails out of it.

I can't figure out how to tell it to do something simple like "Take profit when it exceeds 1% per day, or close position after 10 days."

What am I missing?
profile picture

Eugene

#2
To answer the question in the title (time-based exit):

CODE:
Please log in to see this code.


QUOTE:
I can't figure out how to tell it to do something simple like "Take profit when it exceeds 1% per day, or close position after 10 days."


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

Cone

#3
Also keep in mind that the Wizard can help you get a handle on simple ideas like this one. See the "Position-Based" condition for "Current open Position is older than a number of bars".
profile picture

TheInvis

#4
OF COURSE! Have to reset my monitor so the entire rule description shows... I was only seeing the first word or two.

PLUS, I have to readjust to thinking of Bars instead of Days. (When bars ARE Days that is...)

Thanks guys for your prompt response.
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).