|03-26-2008, 02:36 PM||#1|
Join Date: Oct 2007
Thanked 0 times in 0 posts
stop loss, trailing stop modification in NT6
At an impasse and need some questions answered.
I need to develop a multiple (3 to 4) stop loss modification scheme and have ventured as far as tweaking a Wizard generated strategy using Josh's Sample Price Modification (thanks Josh) which gives me a hard coded breakeven and 1 variable stop loss/target. I need to have a 3 to 4 variable stop loss strategy where the stops are user defined. I would like the exit to be a stop that is hit, not necessarily a target.
Now some questions.
What calls are required in Variables, Initialize, OnBarUpdate and Properties methods to accomplish this if it is in fact doable?
I get that the stop loss order handling must go from entry, to flat to new entry, and a Stop Loss and Target are submitted OCO at entry, does this mean ALL modified Stop Losses have to be accompanied with a target exit so as to cancel the other? If this is not the case, then how is the resting stop dealt with when a modified stop loss is submitted to an already open position?
Same questions for the step modification of Trailing Stop.
|03-26-2008, 03:46 PM||#2|
Join Date: Nov 2004
Location: Denver, CO, USA
Thanked 45 times in 32 posts
What I would do is look at NT 6.5 and use a combination of the new OnOrderUpdate() to submit a stop via ExitLongStop() upon receiving a fill on your entry and then use the OnBarUpdate() to make price adjustments to this order.
Here is a reference sample. NT6.5 will be out of beta and into production next week.
NinjaTrader Customer Service
|Thread||Thread Starter||Forum||Replies||Last Post|
|Create a parked STOP order with simple stop loss||skynetman||Strategy Development||3||03-14-2008 12:36 AM|
|help with trailing stop||newguy05||Strategy Development||2||02-04-2008 10:54 PM|
|3-1-1 trailing stop||daza||ATM Strategies (Discretionary Trading)||6||10-28-2007 06:35 PM|
|Order Entry Property: Use stop market for stop loss orders||higler||SuperDOM and other Order Entry Windows||7||07-02-2007 09:06 AM|
|Stop Loss Orders activated by number of trades past stop level||DoveforUsAll||Suggestions And Feedback||1||02-08-2006 01:19 AM|