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

Backtest-Like indicator inside market analyzer possible?

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

    Backtest-Like indicator inside market analyzer possible?

    hello community,

    i am looking for a way to display a percent value inside market analyzer of how many times in a given period an occuring signal "worked". In case of a long-signal, "worked" means the following day is up and vice versa.

    For example: If the signal happened 10 times in the given period and 5 of the following days were up, the value should display "50" or "0.5" for 50% profitability.

    Somebody an idea how to do this? I was looking into MRO, but it doesn't seem to be the right thing in my case...

    thanks for reading.

    #2
    Hello puravida,

    Thanks for your post and question.

    The senario you are describing is one signal per day and then evaluation of the following days close. You could create a custom indicator that accepts input for the period to review, accumulates the daily signals (assuming they are exposed) and evaluates the close of the signal day to the close of the following day and based upon that provide an output to the market analyzer.

    Please let me know if I can be of further assistance.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul,

      thanks for your help. Could you provide an example how to:
      "...accumulates the daily signals (assuming they are exposed)"

      Many thanks in advance.

      Comment


        #4
        Hello puravida

        Thanks for your post.

        In general terms this could be one way:

        If (dailysignalHigh) accumulateddailyhigh++

        The above if statement depends on the bool dailysignalHigh being true.

        When dailysignalHigh is true, the variable accumulateddailyhigh is incremented by 1.

        Please let me know if you have further questions.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kempotrader, Today, 08:56 AM
        0 responses
        6 views
        0 likes
        Last Post kempotrader  
        Started by kempotrader, Today, 08:54 AM
        0 responses
        4 views
        0 likes
        Last Post kempotrader  
        Started by mmenigma, Today, 08:54 AM
        0 responses
        2 views
        0 likes
        Last Post mmenigma  
        Started by halgo_boulder, Today, 08:44 AM
        0 responses
        1 view
        0 likes
        Last Post halgo_boulder  
        Started by drewski1980, Today, 08:24 AM
        0 responses
        3 views
        0 likes
        Last Post drewski1980  
        Working...
        X