Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Limit a strategy to a dedicated chart of a shared instrument?

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

    Limit a strategy to a dedicated chart of a shared instrument?

    Hello,

    I have two strategies which I am running on the same instrument (ES 12-21) and I would like to track their progress independently of each other i.e strategy 1 of ES 12-21 on chart 1 and strategy 2 of ES 12-21 on chart 2. Both strategies differ in terms of open order time - strategy 1 might only be a few minutes and strategy 2 might be 1-2 hours.

    The strategies run on different time frames however when I applied the strategies today the orders on Chart Trader appeared on both charts despite me colour coding the SuperDOM and charts independently of each strategies chart.

    I have only run both strategies in the simulator - would there be any issues from a broker perspective if I was using two automated strategies on the same instrument...presumably they wouldn't know the orders were independent of each other?

    Thanks,

    Neil

    #2
    Hello burtoninlondon,

    Thank you for the post.

    At the account level you only have a single "position" for any given instrument. You can have any quantity in a direction for a position.

    When running two strategies on the same instrument/account they ultimately manipulate the same overall account position. Strategies are isolated so each strategy will only know about its virtual position and what it is doing, it won't see the actual overall account position and won't know about any positions the other strategy makes. Because they share the same account if strategy A goes long and strategy B goes short you would overall be flat but each strategy would think it is in a position. Things can get out of sync by running two strategies at once and targeting the same account/instrument.

    To completely separate two strategies so you can see the performance of each you would need to use two accounts. You can create multiple SIM accounts to do that. When using a real broker you would not be able to do that comparison using a single account.

    Generally if you have two separate strategies but both should run at the same time you would want to combine those into a single script. You can have many conditions in a single script or even run multiple timeframes using AddDataSeries.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PeakTry, Today, 10:49 AM
    0 responses
    2 views
    0 likes
    Last Post PeakTry
    by PeakTry
     
    Started by llanqui, Today, 10:32 AM
    0 responses
    4 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by StockTrader88, 03-06-2021, 08:58 AM
    45 responses
    3,992 views
    3 likes
    Last Post johntraderuser2  
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    8 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X