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 create a buy/sell condition on an MA color change

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

    How to create a buy/sell condition on an MA color change

    Hi there,

    I'm new here and just got started with the strategy builder.

    i'm currently stuck on setting up an buy and sell condition based on a MA color change. this is what i have currently done for the buy condition https://www.screencast.com/t/lZUymPIcrYZ

    Price >> Close >> Equal >> colorvalue Dogerblue which is the color for the buy signal.

    Thanks for your help.

    #2
    Hello RemonH,

    Thanks for your post and welcome to the NinjaTrader forums!

    It looks like you are using a 3rd party indicator in the Strategy Builder. We could not advise how to set up a condition based on the color of the plot and in this case, would suggest you check with the vendor for clarity on exactly what the plot "colorValue" provides in terms of actual value.

    I suspect, but do not know, that the value of the plot is something simple like a +1 when rising or a -1 when falling. In this case, you would select the indicator on the left side, in the center for Equals, and on the right select Misc>Numeric Value> 1. However again the vendor would be the best source of information on how to use their indicator in a Strategy Builder strategy.

    Also, I'll add some educational references on the strategy b uilder that you may want to review if you have not already done so.
    Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
    Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
    Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm



    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello RemonH,

      Thanks for your post and welcome to the NinjaTrader forums!

      It looks like you are using a 3rd party indicator in the Strategy Builder. We could not advise how to set up a condition based on the color of the plot and in this case, would suggest you check with the vendor for clarity on exactly what the plot "colorValue" provides in terms of actual value.

      I suspect, but do not know, that the value of the plot is something simple like a +1 when rising or a -1 when falling. In this case, you would select the indicator on the left side, in the center for Equals, and on the right select Misc>Numeric Value> 1. However again the vendor would be the best source of information on how to use their indicator in a Strategy Builder strategy.

      Also, I'll add some educational references on the strategy b uilder that you may want to review if you have not already done so.
      Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
      Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
      Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm


      Thanks a lot Paul for your detailed explenation. yes you are right. the +1 value is for the buy signal and -1 for the sell signal.

      I'll give this a try.

      Thank you very much.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AaronKoRn, Today, 09:49 PM
      0 responses
      6 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Today, 08:42 PM
      0 responses
      9 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      10 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,977 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      9 views
      0 likes
      Last Post rbeckmann05  
      Working...
      X