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

Trades list

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

    Trades list

    Hi!
    I tryes to make an indicator to listing the active trades.

    I try use
    Code:
    Performance.AllTrades...
    in indicator, but I allways recive errors. It is possible to list active trade on the chart?

    Could someone help with those problem?

    BR
    Tig3r

    #2
    Hello Tig3r,

    Welcome to our forums.

    Accessing trade information isn't possible within an indicator. It's only possible in a strategy and you'll have to expand Performance.AllTrades to display the specific information you're looking for. Something like:
    Code:
     
    Print(Performance.AllTrades.TradesPerformance.GrossProfit);
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello Tig3r,
      Accessing trade information isn't possible within an indicator. It's only possible in a strategy and you'll have to expand Performance.AllTrades to display the specific information you're looking for. Something like:
      Code:
       
      Print(Performance.AllTrades.TradesPerformance.GrossProfit);
      It's very bad information :/

      It its possible in this case make a strategy managing advisor like this:
      - works on all trades (manual trades and all strategy trades) - like close all trades when DD >=10%
      - checking condition on open trade (or befor open) - compare to some indicators in many Time Frames

      Comment


        #4
        Hello tig3r,

        The only trade information that you can access here is the trades that are generated by the strategy.

        works on all trades (manual trades and all strategy trades) - like close all trades when DD >=10%
        The above is not possible because information is not available outside of the strategy that generated it.

        checking condition on open trade (or befor open) - compare to some indicators in many Time Frames
        You can access indicators in multiple time frames:
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 04-23-2024, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        193 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,235 views
        0 likes
        Last Post xiinteractive  
        Working...
        X