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 tradingnasdaqprueba, 05-07-2024, 03:42 AM
        12 responses
        48 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by bill2023, Yesterday, 08:21 AM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by DawnTreader, Yesterday, 05:58 PM
        4 responses
        19 views
        0 likes
        Last Post DawnTreader  
        Started by lorem, 04-25-2024, 09:18 AM
        10 responses
        47 views
        0 likes
        Last Post lorem
        by lorem
         
        Started by swjake, Today, 12:04 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X