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)
Help wanted! Long/short strategy with cancel order and trail stop
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Trading: FDAX, cable/yen, FX, options on commodities
Posts: 67 since Jun 2009
Thanks Given: 16
Thanks Received: 10
Hey Folks am looking for some help with the attached strategy. It does everything I want it to do but only once! It will go long/short after entry signal with a stop loss and then if it is profit will trail the stop loss at the open [1] as coded. However, once this order is stopped out it does not take any other orders.
I am not a programmer, and I didnt integrate into your code, so I did add some code snippets that might help you along the road (into your own shell) .. dont try to compile, I didnt use your namespaces or ordersignal names. I hope it helps.
Have you tried out your new code? I will have a quick look later if you still need that comment ... unfortunately I dont use breakeven in my code ( anytime recently ) and I may have some challenge to follow correctly.
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Trading: FDAX, cable/yen, FX, options on commodities
Posts: 67 since Jun 2009
Thanks Given: 16
Thanks Received: 10
Hi Jon,
I tested it but alas it did not perform as I had hoped. It will enter long or short and set a stop loss and then move to breakeven but does not modify the trail stop to follow at O/H/L/C of n bars ago or
I have written many strategies and finally came up with a decent, imo, engine for testing rulesets. This engine incorporates 3 Session Start and End times for evaluating different timeperiods, 4 different targets and a runner (each can be selected separately …
I have written many strategies and finally came up with a decent, imo, engine for testing rulesets. This engine incorporates 3 Session Start and End times for evaluating different timeperiods, 4 different targets and a runner (each can be selected separately …