Rads SMAC-D crossover alert

Download script
Author: Copyright � 2009, MetaQuotes Software Corp.
Rads SMAC-D crossover alert

This script is designed to act as an automated monitoring tool for your trading platform, specifically focusing on identifying key momentum shifts in the market. Its primary purpose is to provide real-time notifications whenever two specific indicators "cross" each other on your price chart.

How it Works

The logic operates by constantly observing two different data streams provided by the "Rads SMAC-D" indicator. You can think of these as two moving lines on a graph: one represents a primary trend and the other represents a secondary signal.

The script is programmed to watch for a specific moment of intersection. Instead of just showing you the lines, it waits for the exact point where the lines switch positions relative to one another. Specifically:

  • Upward Interaction: It detects when the first line moves from below the second line to above it.
  • Downward Interaction: It detects when the first line moves from above the second line to below it.

The Notification System

Whenever the script detects one of these "crosses," it triggers an immediate visual and audible alert on your screen labeled "CrossOver!!".

By using this script, you don't have to manually watch the charts every second to see when the lines meet. The logic handles the constant surveillance for you, highlighting those specific moments where the market trend might be changing direction, allowing you to react more quickly to potential trading opportunities.

Miscellaneous
It issuies visual alerts to the screen
13 Views
0 Downloads
0 Favorites
Rads SMAC-D crossover alert
//+------------------------------------------------------------------+
//|                                  Rads SMAC-D crossover alert.mq4 |
//|                      Copyright © 2009, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
if (1000*iCustom(Symbol(),Period(),"Rads SMAC-D",0,1)<1000*iCustom(Symbol(),Period(),"Rads SMAC-D",1,1) && 1000*iCustom(Symbol(),Period(),"Rads SMAC-D",0,0)>1000*iCustom(Symbol(),Period(),"Rads SMAC-D",1,0)) {Alert("CrossOver!!");}
if (1000*iCustom(Symbol(),Period(),"Rads SMAC-D",0,1)>1000*iCustom(Symbol(),Period(),"Rads SMAC-D",1,1) && 1000*iCustom(Symbol(),Period(),"Rads SMAC-D",0,0)<1000*iCustom(Symbol(),Period(),"Rads SMAC-D",1,0)) {Alert("CrossOver!!");}
  
//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments