Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can You Trade Using Manual & Automated Trading Simultaneously?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.

    Comment


      #3
      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:The Entries Per Direction property is only based on positions entered by the strategy logic itself and not any manually opened positions.

      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


        #4
        Thanks for your valuable input Emily.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        30 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X