NinjaTrader Support Forum

NinjaTrader Support Forum (http://www.ninjatrader.com/support/forum/index.php)
-   Suggestions And Feedback (http://www.ninjatrader.com/support/forum/forumdisplay.php?f=11)
-   -   Strategy Catch Up (http://www.ninjatrader.com/support/forum/showthread.php?t=4748)

ohowie 12-30-2007 07:02 PM

Strategy Catch Up
 
ok trading strategy is written and runs on charts etc. when first invoked it is usually in the middle of a trade. how can i catch up? should i use the system.io to check for a file named instrument.fullname and trigger the trade by the strategy that way? it works.
thanks for any help

NinjaTrader_Ray 12-30-2007 07:05 PM

The following "Tip" might be of value.

http://www.ninjatrader-support.com/v...ead.php?t=4033

ohowie 12-30-2007 07:19 PM

if the strategy opens long 1 and then uses the exitlong function and not a sell order would the account and strategy both be flat at that point? or would the account be short 1? Thanks Ray

NinjaTrader_Josh 12-30-2007 07:28 PM

We cannot say for certain if your account position will be flat, but your strategy position will.

If you had a long position in your account before you started your strategy your account will still be long after your strategy has done ExitLong() because of the prior long position.

ohowie 12-30-2007 07:35 PM

assuming the account is flat. the strategy opens long 1 then exits long. account still flat right? then next trade triggered by the strategy i.e. long 1 will be in sync with account. yes?

NinjaTrader_Josh 12-30-2007 07:46 PM

Correct. Assuming you start a strategy when it is in sync with your account position they will remain synced.


All times are GMT -6. The time now is 05:59 AM.