For the record, I have been creating my strategies using NJ Wizard (learn how to modify the code to meet my needs) and cut-and-paste from other sample strategies. Am not in a position to share them though the Inside Bar ones seem so far working normal.
Here they come my Entry codes if they may help some of you (though I doubt it) ..
The following for the InsideBarLong strategy:
Replace the Go Long condition for the InsideBarShort strategy:
Note: Both Outside Bar and Reversal Bar strategies are too advanced for me. Will focus on the Inside Bar one LOL!
The following 2 users say Thank You to wgreenie for this post:
I tried creating an OCO-type order set once the inside bar forms, but I kept getting errors, so now I just use a 1-range bar and if the high or low of the inside bar is exceeded I place a market order, so I'm going to live with the slippage.
Another approach would be to look at how close to the boundaries of the bar are and if it is close to the top of the inside bar then you place your buy stop order, but then if it moves down towards the bottom then cancel the buy stop order and enter a sell stop order. Basically, you're playing pickle with price until it exceeds one side of the inside bar.
I emailed NJ on how to code a pair of breakout orders in a 6.5 strategy. Here it comes his response:
This isn't possible with our managed order system in 6.5. You would run into our internal order handling rules. (Overview)
Methods that generate orders (excluding market orders) to *enter* a position will be ignored if:
* A position is open and an order submitted by an exit method (_ExitLongLimit()_ (ExitLongLimit()) for example) is active and the order is used to open a position in the opposite direction
* A position is open and an order submitted by a set method (_SetStopLoss()_ (SetStopLoss()) for example) is active and the order is used to open a position in the opposite direction
* *The strategy position is flat and an order submitted by an enter method (*_*EnterLongLimit()*_ (EnterLongLimit())* for example) is active and the order is used to open a position in the opposite direction*
This is possible with unmanaged order submission that we introduced in version 7. See here for an introduction to unmanaged orders. (Unmanaged Approach)
I will continue sim-trading both Long and Short strategies and manage them manually.
How far in front of and after a news event do you wait before trading again? What if an inside bar formed inside of the news window, ignore it right? Or you would take it and you just avoid entering trades during the news window, but don't necessarily avoid their candles, right?