I figured if I see my trade setup before the automated strategy triggers, I could get in early. So to avoid 2 entries from occurring, I set my "Entries per direction" to "1" and I also tested to see if the market was flat in Ninjascript {"Position.MarketPosition == MarketPosition.Flat"}, but after I manually entered the trade early, the automated strategy kicked in afterwards and entered a 2nd trade anyway. So the question is can manual and automated trading be used together in this way? Is my approach wrong?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can You Trade Using Manual & Automated Trading Simultaneously?
Collapse
X
-
Can You Trade Using Manual & Automated Trading Simultaneously?
Hello,
I figured if I see my trade setup before the automated strategy triggers, I could get in early. So to avoid 2 entries from occurring, I set my "Entries per direction" to "1" and I also tested to see if the market was flat in Ninjascript {"Position.MarketPosition == MarketPosition.Flat"}, but after I manually entered the trade early, the automated strategy kicked in afterwards and entered a 2nd trade anyway. So the question is can manual and automated trading be used together in this way? Is my approach wrong?Tags: None
-
I tried the following:
" if(Position.MarketPosition == MarketPosition.Flat &&
GetAtmStrategyMarketPosition(@"OneUp1") == MarketPosition.Flat "...
with and without the "@" sign to no avail. It compiles, but I can't enable it.
-
Hello RookieTrader,
Thank you for your notes.
The Position information from a strategy will only be the position based on the strategy instance itself and it will not have any knowledge of the account's position. You could use PositionAccount to get information about a real account position. Here are the help guide pages explaining each:- Position: https://ninjatrader.com/support/help...8/position.htm
- PositionAccount: https://ninjatrader.com/support/help...ionaccount.htm
When using ATM strategies programmatically, it is important to keep the following information in mind:NinjaScript can be used to programmatically generate an entry, then the resulting position should be managed manually.
Please let us know if we may be of further assistance.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment