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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        87 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        132 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        118 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X