Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Text Alert on bar close colour change

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

    Text Alert on bar close colour change

    Hello, the title says it all, I’m looking to get a text message when a bar closes a different colour. I use a high tick reversal unirenko bars, I get a colour change every couple hours. Is this possible at all? Thanks!

    #2
    Hello Douglee,

    To do this you would need to figure out what price condition you wanted to track for the alert, color change is not something you can detect from alerts or NinjaScript. By color change do you mean when the bars go from red to green?

    Comment


      #3
      Yes when bars close higher or lower than the last, is that a condition that can be used? See attached picture that’ll help you understand forsure what I’m looking for

      Comment


        #4
        Hello Douglee,

        You could compare the close prices, for example if the current close is less than the previous close. To know if there was a reversal in a trend you would need multiple price conditions to check that the close price has been closing higher than each previous bar and then the current bar closed lower than the previous bar.

        A very simple example would be to check:
        Close[0] < Close[1]
        Close[1] > Close[2]
        Close[2] > Close[3]

        That would check that there were 2 bars rising and then 1 bar falling in a row, you could expand this to account for however many bars you wanted to have in a row before a reversal.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        92 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        122 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X