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

multicolor plot problem

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

    multicolor plot problem

    I'd like to color my indicator plotting as follow :

    if myindicator>0 then upcolor
    if myindicator<0 then downcolor

    I use the script samplemulticoloredplot but the result is not really good :



    I think it has something to do with the logic of the code itself
    Connects the up plot segment with the other plots
    UpPlot.Set(1, Myindic(Period)[1]);

    Does anyone know how to solve that problem ?

    #2
    Hi kuroro13,

    The picture looks fine to me. Remember there may be some overlaps across the zero line simply because you are connecting the line plots between two data points. If one of the points does not land exactly at 0 there is no way to address this and the coloring will extend slightly down or up to reach the next point.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,

      I'm aware of that but I had hoped I could find a way to overcome this maybe by using another logic (DrawRegion ?).

      Comment


        #4
        Actually kuroro13. Give this a try: http://www.ninjatrader-support.com/HelpGuideV6/SetUp4.html
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Kaledus, Today, 01:29 PM
        0 responses
        3 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by PaulMohn, Today, 12:36 PM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by yertle, Yesterday, 08:38 AM
        8 responses
        36 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by rdtdale, Today, 01:02 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by alifarahani, Today, 09:40 AM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X