So I'm tooling along on the new strategy. Got a lot done so far (thanks again to all your fantastic input)... however... I'm still having a bit of a challenge getting my head around certain concepts... such as MarketPosition, and when I'm supposed to use this method and why. I find examples in the user's help guide, but I don't find the "logic and reasoning" behind why these methods would be applied.
In my strategy, I'm using the wizard as you may already know...

In the conditions pane, there are two different sets of entry conditions for each trade direction (long or short).
Basically it goes like this:
Set 1: if indicatorA cross above n Variable0 == 1 Set 2: if Variable0 = 1 && IndictorB cross above n2 && IndicatorC > X EnterLong Variable0 == 0 Set 3: // Not relying on the variable for this entry. if indicatorB cross above n2 && IndicatorC < X EnterLong
For exits... I have it set up to exit when an indicator crosses below X.
i.e. "if indicator line crosses below X, ExitLong." I'm not including any signal names because I want the strategy only to enter these trades if Set 2 didn't find any qualifying trade setups. Then, Set 3 takes over and grabs any trades which didn't quite qualify for Set 2's conditions.
I've got a stoploss set to 10 in the "profit & stoploss" panel.
I'm having a heck of a time getting this strategy to place orders in sim connected to a live CQG feed.
I think it may be related to MarketPosition. I'm not currently using this in the conditions area because I don't fully understand what it is for. In some of the examples posted by NinjaTrader support, I see this used, in others, I just see "EnterLong" without any reference to MarketPosition.
I've "played around" with it, setting "== flat" or "==long" or "!== Long," etc., just to see what difference it makes... and I'm lost.
For my strategy setup, when I load the strategy, I leave "calculate on bar close" to true.
I have "Sync account position" set to "True."
And, I have my "Tools > Options > Strategies > NijnaScript" tab set to "Wait until flat before executing live."
In a strategy with multiple entry conditions, I suspect I should be using the MarketPosition method in some way. I'm just not sure why, and I'm certainly not sure exactly how.
Could someone please give me a wee nudge in the right direction?

Almost there... just a few more tweaks!
-V

Comment