• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Money Flow Back Recolor

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

    Money Flow Back Recolor

    I'm trying to get Moneyflow to color the background Green if its above 50 and Red if Below 50.

    I had an RSI do that and I copied the recolor code in my Moneyflow but greened it out just so you could see it.
    I don't know how to tell it what to look for as over or under 50.
    Attached Files

    #2
    Hello simpletrades, and thank you for your question. Please note that while we are happy to answer any question about Ninja that we may, any time a user is specifying behavior and asking us to find code that matches the behavior requested, we have stepped outside the scope of the support we may provide directly. This said I will be happy to answer your question about what to look for in this code to gain more control over it. I am assuming this is the code we are talking about.

    Code:
    
    if (RSI(myInput0,3)[0] > 70)
        BackColor = Color.DarkGreen; //MidnightBlue;
    if (RSI(myInput0,3)[0] < 30)
        BackColor = Color.DarkRed; 
    If this is the case I have bolded the code which looks at whether the first condition is over 70, and whether the second condition is under 30. By changing the 70 and 30 here to 50 and 50 you will have the point of control you are looking for. Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Thanks but what was in green was from an RSI indicator I don't use anymore.
      I want my Money Flow Indicator to change backgrounds at 50 and included the greened RSI as an example of what I need to change. I don't know how to replace the RSI references it had with Money Flow references in the backcolor part to tell the code to recolor at 50.
      Last edited by simpletrades; 03-09-2017, 04:37 PM.

      Comment


        #4
        Thank you for this additional information.

        Attached is a code sample functionally identical to the ChaikinMoneyFlow indicator, with commented out instructions that will guide you through accomplishing this goal. Code samples we provide are for educational purposes, and are not intended for live trading, and are not guaranteed to accomplish any user goal or to be maintained.


        Please let us know if there are any other ways we can help.
        Attached Files
        Jessica P.NinjaTrader Customer Service

        Comment


          #5
          thanks, i'll try this weekend.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ct, Today, 05:31 AM
          0 responses
          2 views
          0 likes
          Last Post ct
          by ct
           
          Started by pstrusi, Today, 02:21 AM
          0 responses
          5 views
          0 likes
          Last Post pstrusi
          by pstrusi
           
          Started by indy73, Yesterday, 10:52 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by priceisking, 05-13-2019, 08:30 AM
          6 responses
          40 views
          0 likes
          Last Post Harry
          by Harry
           
          Started by WgfhqDsdfg, Today, 12:56 AM
          0 responses
          7 views
          0 likes
          Last Post WgfhqDsdfg  
          Working...
          X