• 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

  • simpletrades
    started a topic Money Flow Back Recolor

    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

  • simpletrades
    replied
    thanks, i'll try this weekend.

    Leave a comment:


  • NinjaTrader_JessicaP
    replied
    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

    Leave a comment:


  • simpletrades
    replied
    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.

    Leave a comment:


  • NinjaTrader_JessicaP
    replied
    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.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by priceisking, Today, 12:51 PM
1 response
14 views
0 likes
Last Post NinjaTrader_PaulH  
Started by chartish, Today, 10:33 AM
3 responses
18 views
0 likes
Last Post chartish  
Started by casabella, Today, 11:51 AM
1 response
7 views
0 likes
Last Post NinjaTrader_PaulH  
Started by Johnny, Today, 11:42 AM
1 response
14 views
0 likes
Last Post NinjaTrader_Jermaine  
Started by habibalex, Today, 09:03 AM
2 responses
14 views
0 likes
Last Post sledge
by sledge
 
Working...
X