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 Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,789 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      837 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,293 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      13 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      11 responses
      63 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X