Newbie to NT and had some basic questions about EnterLong / ExitLong. Looking at some examples on the net, suppose I have a strategy where I do:
---
if (cond1)
EnterLong();
if (cond2)
EnterShort();
----
(i) in the case above, does EnterLong() automatically call ExitShort(). More specifically, if an EnterLong() occurs, and I am short 1 contract, does EnterLong() generate two (2) long contracts = the first long to cancel the short 1 contract, and the 2nd long to actually go long ?
Suppose now, I have the case where it is much more likely to exit a long condition (e.g. by say a profit taking rule), than by a short condition:
if (cond1)
EnterLong();
if (cond2)
EnterShort();
if (Position.MarketPosition == MarketPosition.Long && cond3)
ExitLong();
if (Position,MarketPosition == MarketPosition.Short && cond4)
ExitShort();
(ii) is this case above, suppose EnterLong() occurs a few bars after an ExitShort(). Does EnterLong() automatically know that the Position.MarketPosition is flat ?
Comment