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

SMAOverUnderPaintBar

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

  • NinjaTrader_Joydeep
    replied
    Hello BryanGriggs,
    Please add additional plot values using the Add() method to plot multiple MA.


    To create user defined inputs please refer to this post


    To create user defined inputs for coloring the bars please refer to this post which further illustrates it

    Leave a comment:


  • BryanGriggs
    replied
    With Neutral Bars

    I have attached a modified file of the SMAOverUnderPaintBar. I renamed it as PriceOverUnderMAPaintBar. Go to chart data settings and make the color for bars up and down the same color. This will be your Neutral color. If the bar closes over your MA and is an up bar, it will be painted green. If it closes above your MA but is a down bar, it will not be painted and will show as your selected Neutral color. I am still working on this in my spare time and would like the indicator to allow for different MA options as well as be able to select Up/Down bar colors. Any help would be great and I will Update when complete but may be a while.
    Thanks
    Attached Files

    Leave a comment:


  • NinjaTrader_Joydeep
    replied
    Hello BryanGriggs,
    Thanks for your note.

    Please let me know if I can assist you any further.

    Leave a comment:


  • BryanGriggs
    replied
    Sometimes you just have to walk away. First Joydeep I'd like to say Thank You so much for your help and reply. Second I want to say NinjaTrader is the BEST! Second to none! I had put in the "&" but realized this morning that I was saving everytime and not compiling. Daaaaaa! I'm gonna work to make this indicator better (in my opinion). Here you can see a screen shot from just this mornings session that shows the possobilites. Thanks again Joydeep and I'll keep you posted.
    Bryan
    Last edited by BryanGriggs; 09-28-2012, 08:33 AM.

    Leave a comment:


  • NinjaTrader_Joydeep
    replied
    Hello BryanGriggs,
    Welcome to the forum and I am happy to assist you.

    Seems you missed a &. The correct code will be,

    Code:
    if (Open[0] > SMAvg[0] && Open[0] < Close[0])
    {
       //do something
    }

    Leave a comment:


  • BryanGriggs
    started a topic SMAOverUnderPaintBar

    SMAOverUnderPaintBar

    I downloaded this indicator and really like it but I am trying to get it to only paint up bars above or down bars below. I would like for down bars above and up bars below to be neutral bars.

    It has: if (close[0] > SMAvg[0])

    I'm trying to add: Open[0] > SMAvg[0] & Open[0] < Close[0]

    I have searched all thru the site and can't find what I need to make it happen. Any help would be greatly appreciated.
    Thanks,
    Bryan Griggs
    [email protected]

Latest Posts

Collapse

Topics Statistics Last Post
Started by helpwanted, Today, 03:06 AM
1 response
14 views
0 likes
Last Post sarafuenonly123  
Started by Brevo, Today, 01:45 AM
0 responses
11 views
0 likes
Last Post Brevo
by Brevo
 
Started by aussugardefender, Today, 01:07 AM
0 responses
6 views
0 likes
Last Post aussugardefender  
Started by pvincent, 06-23-2022, 12:53 PM
14 responses
244 views
0 likes
Last Post Nyman
by Nyman
 
Started by TraderG23, 12-08-2023, 07:56 AM
9 responses
387 views
1 like
Last Post Gavini
by Gavini
 
Working...
X