Author: Bopp Kapitalmarktstudien
bullbreath

Overview of the Bullbreath Indicator

The Bullbreath indicator is a momentum-tracking tool designed to visualize market sentiment by analyzing recent price movements. Rather than looking at complex mathematical formulas or high-frequency data, it focuses on a simple, rhythmic count of "positive" price actions over a specific timeframe to help identify potential shifts in supply and demand.

How the Logic Works

The core logic of this script revolves around observing the behavior of the most recent candles (bars) on your chart. Here is a breakdown of how it processes that information:

1. The Tracking Window The indicator looks back at the last 10 completed bars on the chart. By narrowing the focus to this specific window, it aims to capture the immediate "mood" of the market rather than being distracted by long-term historical trends.

2. Identifying Upward Movement For every bar within that 10-bar window, the script performs a simple comparison:

  • It checks if the closing price of a bar is higher than the closing price of the bar immediately preceding it.
  • If the price closed higher, it counts as a "point" or a positive movement.
  • If the price closed lower or stayed the same, no point is added to the tally.

3. Calculating the Score The indicator sums up all these points to create a final result for each point in time. This result—ranging from 0 to 10—is then plotted as a line on a separate window below your main price chart.

How to Interpret the Results

The tool uses specific thresholds to help traders identify potential opportunities based on market strength:

  • Buying Signal (Bullish Sentiment): When the indicator shows a value of 3, it suggests that the recent price action is starting to lean toward the upside, potentially indicating a buying situation.
  • Selling Signal (Bearish Sentiment): When the indicator reaches a value of 7 or higher, it indicates that the majority of the recent bars have closed higher than their predecessors, signaling a stronger trend or a specific selling situation depending on your strategy.

In summary, Bullbreath serves as a visual "pulse" for the market, translating a sequence of price closes into a numerical score that helps you see whether the current momentum is leaning toward one side or the other.

Miscellaneous
Implements a curve of type %1
11 Views
0 Downloads
0 Favorites
bullbreath
//+------------------------------------------------------------------+
//|                                           bullbreath.mq4 |
//|                                                       Thonas Bopp |
//|                                         http://www.fx-training.de |
//+------------------------------------------------------------------+
/*Dieser Indikator zählt, wieviele der letzten 10 Balken im Plus gelandet
sind. Im Tageschart zeigt  ein Stand von 3 eine Kaufsituation an.
Ein Stand von sieben und grösser eine Verkaufsituation.*/

#property copyright "Bopp Kapitalmarktstudien"
#property link      "http://www.fx-training.de"

#property indicator_separate_window
#property indicator_level1 3
#property indicator_level2 7
#property indicator_buffers 1
#property indicator_color1 Red

//---- buffers
double ExtMapBuffer1[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   
   string short_name = "Bullbreath (c)www.fx-training.de";
   IndicatorShortName(short_name);
//----
   return(1);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- 
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
   
//---- check for possible errors
   if (counted_bars<0) return(-1);
//---- last counted bar will be recounted
   if (counted_bars>0) counted_bars--;
   
   int    pos=Bars-counted_bars;
   
   double aclose , avclose , dResult;
   //-- aclose=aktueller Kurs avclose=Kurs vor aktuellem Kurs
   Comment("Bullbreath (c)www.fx-training.de");

//---- main calculation loop
//---- Einstellung, die letzten 10 Balken. Prüfung:
//---- Kurs gegen Vorbalken höher=Indikator +1
//---- Kurs gegen Vorbalken niedriger= Indikator unverändert
   while(pos>=0)
     {
         
         dResult = 0;
         int j;
         for (j=0; j<11;j++) 
         {
         aclose = Close[pos+j];
         avclose = Close[pos+j+1];
         if(aclose > avclose)
         {
         dResult=dResult+1;
         }
         }
         ExtMapBuffer1[pos]= dResult ;
         pos--;
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments