![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2006
Location: , ,
Posts: 1,316
Thanks: 1
Thanked 7 times in 7 posts
|
I am making trades from my strategy and also manually
Is there a way to have my strategy check for positions that are made manually?...or can it only check the status of positions originated by the strategy? I would like to check for any positions in the account so the strategy will not enter a new trade if I have a manual trade on. Would this code do the trick for instance? protected override void OnPositionUpdate(IPosition position) { if (position.MarketPosition == MarketPosition.Flat) { // Do something } } Thanks |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Is there a way to have my strategy check for positions that are made manually?
Unfortunately not at this time. We'll consider improving the "sync strategy to live account" with NT7 though.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Request: Auto Connect on Startup and auto restart when connection down | skynetman | Suggestions And Feedback | 24 | 03-07-2009 11:25 AM |
| I copied this out of the NT manual and put it into Tradestation. | sp139214 | Automated Trading | 3 | 05-22-2008 10:44 PM |
| Strategies and manual orders | tecmisc1 | Strategy Development | 1 | 04-10-2008 12:01 PM |
| Limitis of Ninjascript? Manual? | fliesch | Indicator Development | 2 | 03-16-2006 09:50 PM |
| User Manual PDF Format. | Ripcat | Miscellaneous Support | 1 | 09-26-2005 09:03 AM |