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 kaywai, 09-01-2023, 08:44 PM
        5 responses
        602 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        22 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        19 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Started by agclub, 04-21-2024, 08:57 PM
        3 responses
        17 views
        0 likes
        Last Post TradingLoss  
        Working...
        X