people with nt,
i have a question that should be quite simple.
all my strategies are directional, so i would only have one instance of one strategy active at any time for any instrument because i would only be interested in having one single position in any particular instrument. in order to avoid duplicate orders or positions, i had to make entries and exits conditional and add position checks to all my strategies.
something like this:
// Set 1 if ( conditions for short && (Position.MarketPosition != MarketPosition.Short) ) { EnterShort( ); } else // Set 4 if ( (Position.MarketPosition == MarketPosition.Long) && conditions to exit long ) { ExitLong( ); } // Set 3 if ( conditions for long && (Position.MarketPosition != MarketPosition.Long) ) { EnterLong( ); } else // Set 2 if ( (Position.MarketPosition == MarketPosition.Short) && conditions to exit short ) { ExitShort( ); }
i am currently working on a different structure, so i still have to evaluate whether using if else conditionals would be beneficial.
and i would like to know whether using any checks is of any use. as i remember, the marketposition checks never helped to avoid duplicate orders or positions. ¿is it possible to use both account positions and strategy position checks simultaneously? ¿is there any benefit to including both checks simultaneously? the definitions for accounts positions https://ninjatrader.com/support/help...ns_account.htm include locks, ¿could these account positions checks cause any problems when automating strategies or negatively impact performance? ¿are there any samples of how to use account positions checks? i am considering getting rid of all checks altogether if they are not productive.
very well, regards.
Comment