Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Was wondering, is it possible to script an exit only strategy for ninjatrader?
Say, once I manually entered a Long position, can it automatically queue an exit strategy for me at 20 ticks as Profit target and 10 ticks as Stop Loss from the close of the last bar?
Tried fooling around with the strategy wizard, but couldn't seem to get it done. =(
Can you help answer these questions from other members on NexusFi?
Why not using an ATM? It was made for this.
If you want to enter manually and then have an exit only strategy, you will need to use unsupported and undocumented methods, so it's maybe not the good solution.
I guess I now understand your request a bit better
Agree, you can't use the ATM for that, you will have to write a strategy that will check your position at the close of each bar.
Then if the position is not null; i.e. you already have an open position in your portfolio, the strategy runs a series of checks and decides whether you maintain or close that position.
Otherwise, if no positions are open, all the code is skipped and the algorithm waits for next bar's closure to run again.
Cheers
Fadi
Successful people will do what unsuccessful people won't or can't do!