Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alarm indicator

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

    Alarm indicator

    Hello everyone.
    I have been tearing my hair our attempting to work out a sounding alarm to activate when two indicators cross at the same time or within a nominated + or - difference.
    The two individual indicators are the DM, and the Z20090712Laguerre ECO.
    Is there someone out in the community that would be willing to take up what is for me a painful challenge, but is probably a really simple task for the person who knows how to do it?
    Please help me save what little hair I have left. Really appreciate any help.
    Thanks from Australia.

    #2
    CrossAbove and CrossBelow

    Hi,

    You could use CrossAbove and CrossBelow methods to check if the indcators cross a reference level and Alert or PlaySound to produce the sounding alarm.

    Example

    if (CrossBelow(DM(14),referenceLevel1,allowedInterval ) && CrossBelow(SMA(14),referenceLevel2,allowedInterval ))
    {
    PlaySound(@"C:\mySound.wav");

    }

    You should change SMA for Laguerre indicator (I don´t have it) and you need a sound record to play.

    CrossAbove is the same.

    I hope it helps

    Comment


      #3
      Thank you very much. I will give it a go.
      Appreciate your input.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      164 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      317 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X