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 NullPointStrategies, Today, 05:17 AM
        0 responses
        41 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X