ultra_trend_alarm

Author: --Id--
ultra_trend_alarm
Miscellaneous
It plays sound alerts
0 Views
0 Downloads
0 Favorites
ultra_trend_alarm
//+------------------------------------------------------------------+
//|                                                                  |
//|                                        Copyright © 2009, --Id--  |
//|                                       http://www.metaquotes.net/ |
//+------------------------------------------------------------------+

#property copyright "--Id--"


extern string AlarmSound = "alert.wav";
extern double LevelValue = 20;

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+

 
int start()
   
   {
     
      if (
      (iCustom(NULL, Period(),"ULTRA_TREND",0,0) > LevelValue)
      && (iCustom(NULL, Period(),"ULTRA_TREND",0,1) < LevelValue)
      )
      PlaySound(AlarmSound);
      
      if (
      (iCustom(NULL, Period(),"ULTRA_TREND",1,0) > LevelValue)
      && (iCustom(NULL, Period(),"ULTRA_TREND",1,1) < LevelValue)
      )
      PlaySound(AlarmSound);
      
      
      return(0);
   
   }

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---