Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting active orders on non strategy chart

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

    Plotting active orders on non strategy chart

    Hello,

    I am running several strategies which I for various reasons do not want to sync with my broker's position. I run them from the strategy tab, rather than having a zillion strategy charts open.

    Now, I know I can access historical and real time charts from the Performance option on a strategy by strategy basis, and also that my entries/exits are marked on any other chart I open for the same instrument.

    What I would like to see - on a non-strategy running chart I'd open, possibly via a custom indicator I would develop - are my current working/accepted stop and target orders (maybe also entry points) for all the strategies running on that instrument.

    I have seen on this thread mention of unsupported methods http://www.ninjatrader.com/support/f...ad.php?t=42770

    , and I could go this way. But I don't really need to get the information from my broker, I would be perfectly happy accessing data from within NT, for example the log.
    Not quite sure how to do that
    - I can't call for a plot in each of my strategies I believe, because it would then only chart on that strategy's performance chart?
    - it looks like the "trade class" does not work for me either, as I am looking at yet to be executed orders.

    I'd be grateful if you could point in the right direction - Ninjascript commands to look at.

    Many thanks in advance

    #2
    Hi farang, unfortunately as strategies would not cross communicate or indicator could not access any strategy positions / broker positions, there's not really a supported way here to go about what you try to achieve. Workaround ideas would be accessing / reading the log text files via C# 's StreamReader objects or using text files in general for storing the position info so your indicator could read it, we have some sample dealing with text files in NinjaScript here :

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      I think this is just what I need - I'll try to do something using StreamReader.

      Many thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ccbiasi, 11-23-2017, 06:06 AM
      5 responses
      2,198 views
      0 likes
      Last Post leodavis  
      Started by kujista, Yesterday, 12:39 AM
      2 responses
      14 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by Austiner87, Yesterday, 11:24 AM
      2 responses
      12 views
      0 likes
      Last Post brucerobinson  
      Started by Rogers101, 05-05-2024, 11:30 AM
      3 responses
      21 views
      0 likes
      Last Post Rogers101  
      Started by nightstalker, 05-04-2024, 02:05 PM
      5 responses
      55 views
      1 like
      Last Post nightstalker  
      Working...
      X