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

How to build a Market Analyzer Condition

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

    How to build a Market Analyzer Condition

    Hello
    How can I build a column condition in Market Analyzer as below:

    When current (day/week/month) candle (low/high) above/below 50 EMA?


    Thank You

    #2
    Hello BobyGill,

    Thanks for your post.

    We would recommend creating this as an indicator because you can add almost any indicator to the market analyzer by the market analyzer's Indicator column. In addition, you can use the indicator in a strategy (ninjascript or strategy builder strategy).

    When you create the indicator, you can have the indicator provide a transparent plot and the plot can be set to a value of +1 when above the EMA and -1 when below the EMA. When added to the market analyzer indicator column, you would just set the cell conditions based on +1 or -1, regardless of instrument.

    Here is a short video that should help: https://Paul-ninjaTrader.tinytake.co...N18xNjMzMDkyMw

    Here is the example educational indicator I created.

    EMA50.zip







    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul, Thank you, very helpful. Could we use for a different period of an EMA, simply change a period on the parameters?

      Comment


        #4
        Hello Galiula,

        Thanks for your post and welcome to the NinjaTrader forums.

        Yes, in the example I included a user input for the period. The indicator name and its plotname would both reflect 50 period EMA but in name only.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_PaulH View Post
          Hello BobyGill,

          Thanks for your post.

          We would recommend creating this as an indicator because you can add almost any indicator to the market analyzer by the market analyzer's Indicator column. In addition, you can use the indicator in a strategy (ninjascript or strategy builder strategy).

          When you create the indicator, you can have the indicator provide a transparent plot and the plot can be set to a value of +1 when above the EMA and -1 when below the EMA. When added to the market analyzer indicator column, you would just set the cell conditions based on +1 or -1, regardless of instrument.

          Here is a short video that should help: https://Paul-ninjaTrader.tinytake.co...N18xNjMzMDkyMw

          Here is the example educational indicator I created.

          [ATTACH]n1147834[/ATTACH]






          How to set up for Cross above and Cross Below?

          This is shows below and above.

          Comment


            #6
            Hello BobyGill,

            Thanks for your reply.

            You could replace the conditions in the indicator with Crossabove() or Crossbelow().

            Reference:

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by GussJ, 03-04-2020, 03:11 PM
            16 responses
            3,279 views
            0 likes
            Last Post Leafcutter  
            Started by WHICKED, Today, 12:45 PM
            2 responses
            19 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by Tim-c, Today, 02:10 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Taddypole, Today, 02:47 PM
            0 responses
            5 views
            0 likes
            Last Post Taddypole  
            Started by chbruno, 04-24-2024, 04:10 PM
            4 responses
            52 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Working...
            X