WisemanAO_v1

Download script
Author: Copyright � 2005, wellx
WisemanAO_v1

This tool is designed to assist traders by identifying specific momentum shifts in the market. It works by analyzing a technical indicator known as the Awesome Oscillator (AO), which helps measure the strength of price movements over time.

How the Logic Works

The script continuously scans historical and real-time price data to look for very specific "turning point" patterns. Instead of just looking at where the price is going, it looks at the relationship between five consecutive data points of the Awesome Oscillator.

For Upward Signals (Buy Opportunities): The tool identifies a situation where the indicator is currently in positive territory but has begun a consistent, sequential decline over several steps. Specifically, it looks for a sequence where each subsequent value is lower than the previous one, creating a "descending" momentum curve while still remaining above the zero line. When this specific mathematical pattern is met, the script places a green arrow on the chart to signal a potential reversal or entry point.

For Downward Signals (Sell Opportunities): Conversely, the tool monitors for moments when the indicator is in negative territory but shows a consistent, sequential increase over five steps. It looks for a pattern where each value is higher than the one before it, forming an "ascending" curve while remaining below the zero line. When this occurs, the script places a red arrow on the chart to highlight a potential downward move.

Key Features

  • Visual Alerts: The primary output of the script is visual markers (arrows) placed directly on your price chart, allowing you to see historical signals and current opportunities at a glance.
  • Real-Time Notifications: When the specific logic conditions are met on a new candle, the tool can trigger an audible alert to notify you immediately, so you don't have to watch the screen constantly.
  • Customizable Sensitivity: The script includes a setting that allows you to adjust how far away from the price candles the visual arrows appear, ensuring they are easy to see without cluttering your view of the price action.

In summary, this tool acts as a momentum filter, searching for specific "exhaustion" patterns in the market's strength to help highlight potential turning points for the trader.

Indicators Used
Bill Williams Awesome oscillator
Miscellaneous
Implements a curve of type %1
20 Views
0 Downloads
0 Favorites
WisemanAO_v1

//+------------------------------------------------------------------+
//|                                               wlxBWWiseMan-2.mq4 |
//|                                          Copyright © 2005, wellx |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, wellx"
#property link      "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Green
//---- input parameters
extern int updown = 10;
extern bool UseAlert=true;
//---- buffers
double BWWM2Up[];
double BWWM2Down[];
string UD="";

//----
int pos = 0;
double AO, AO1, AO2, AO3, AO4;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexBuffer(0, BWWM2Up);
   SetIndexBuffer(1, BWWM2Down);   
//----
   SetIndexStyle(0, DRAW_ARROW, 0, 2);
   SetIndexStyle(1, DRAW_ARROW, 0, 2);
//----
   SetIndexArrow(0, 140);
   SetIndexArrow(1, 141);
//----
   IndicatorShortName("StrInd(" + updown + ")");
   SetIndexLabel(0, "StrIndUp"); 
   SetIndexLabel(1, "StrIndDn");  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int cbars = IndicatorCounted();
//----
   if(cbars < 0) 
       return(-1);
//----
   if(cbars > 0) 
       cbars--;
//----
   if(cbars > (Bars - 40)) 
       pos = (Bars - 40);
   else
       pos = Bars - cbars;
//----
   while(pos > 0)
     {
       BWWM2Up[pos] = NULL;
       BWWM2Down[pos] = NULL;    
       AO = iAO(NULL, 0, pos);
       AO1 = iAO(NULL, 0, pos + 1);
       AO2 = iAO(NULL, 0, pos + 2);
       AO3 = iAO(NULL, 0, pos + 3);
       AO4 = iAO(NULL, 0, pos + 4);  
       //----
       if((AO4 > 0.0 && AO3 > 0.0) && (AO4 < AO3 && AO3 > AO2 && AO2 >AO1 && AO1 > AO)) 
           BWWM2Up[pos] = (High[pos] + updown*Point);
            if (pos < 2 )
  { 
  UD=" Up.";	
  DoAlert(UD);
  }
           
      //----
       if((AO4 < 0.0 && AO3 < 0.0) && (AO4 > AO3 && AO3 < AO2 && AO2 < AO1 && AO1 < AO)) 
           BWWM2Down[pos] = (Low[pos] - updown*Point);
            if (pos < 2 )
  { 
  UD=" Down.";	
  DoAlert(UD);
  }
           
       pos--; 
     } 
       return(0);
      
       
    //   SpeechText("There is an opportunity to buy or sell ", 

    }
void DoAlert(string UD)
{
   if (!NewBar() || !UseAlert)
      return;
     Alert (Symbol()," ",Period(),"WisemanAO ",UD);

}


  bool NewBar()
{
   static datetime dt  = 0;
   if (dt != Time[0])
   {
      dt = Time[0];
      return(true);
   }
  
}

Comments