Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple conditions for colouring

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

    Multiple conditions for colouring

    Hi,I wonder if someone can point me in the right direction with this?
    I have set up a column on Market Analyser to show green or red whether one moving average is above/below another. I did this by setting up a custom indicator for the difference between the two averages and then colouring the Analyser cells whether the difference was greater than/less than zero.

    So far so good.

    My question is: how do I tie together multiple conditions to colour a cell/column in Market Analyser?

    For instance if I want a green cell when (SMA1>SMA2 AND EMA1>EMA2), how do I achieve that?

    Thanks,
    John

    #2
    Hello John,

    You will need to create an additional custom indicator. Include the multiple conditions in the indicator. Subsequently load the indicator in the Market Analyzer.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply Jason. Doing another custom indicator makes sense.
      Am I correct in saying that I can use an "if" statement to produce either a "1" or "0" depending on whether both conditions are met ("1") or not ("0"), then paint the cell depending on that 1 or 0 result?

      Is that the best way or have I missed your point?

      Thanks again,
      John

      Comment


        #4
        Yes that would be a way to approach it. Unfortunately I am not very familiar with NinjaScript; I am not sure what would be the best way.

        If you experience difficulties upon creating the alert, I suggest to check the NinjaScript - Indicators section of the Support Forum.
        JasonNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jclose, Today, 09:37 PM
        0 responses
        4 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,413 views
        0 likes
        Last Post Traderontheroad  
        Started by firefoxforum12, Today, 08:53 PM
        0 responses
        10 views
        0 likes
        Last Post firefoxforum12  
        Started by stafe, Today, 08:34 PM
        0 responses
        10 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by sastrades, 01-31-2024, 10:19 PM
        11 responses
        169 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X