Cronex_Taichi
Download scriptThe Cronex Taichi is a specialized technical analysis tool designed to provide traders with a clearer picture of market trends by blending multiple layers of price data into a single visual interface. It operates by synthesizing the core components of the popular Ichimoku Kinko Cloud system, smoothing out market "noise" to help identify significant momentum and potential trend reversals.
Core Analytical Logic
The logic of this script can be broken down into three distinct phases:
1. Data Synthesis (The Foundation) Instead of relying on a single price point, the indicator calculates four primary components from the Ichimoku system:
- Tenkan-sen (Short-term trend)
- Kijun-sen (Medium-term trend)
- Senkou Span A and B (The "Cloud" boundaries)
The script then averages these four values together. This creates the primary Taichi line, which represents a balanced, smoothed summary of both short-term momentum and long-term equilibrium. By averaging these specific components, the tool provides a more stable view of price action than any single Ichimoku line could offer on its own.
2. Signal Generation (The Momentum) Once the primary Taichi line is established, the script applies two different types of moving averages to that data:
- Primary Signal: A fast-reacting smoothed average designed to track immediate shifts in the Taichi line.
- Secondary Signal: A slower-moving average that captures the broader "anchor" of the trend.
The relationship between these signals serves as a secondary confirmation layer, helping traders see whether the current momentum is accelerating or decelerating relative to the historical average.
3. Stability and "Flat" Detection One of the unique features of this script is its ability to identify periods of market equilibrium—often referred to as "flat" zones. The logic compares the distance between the Taichi line, the Primary Signal, and the Secondary Signal simultaneously.
If all three values converge within a very tight proximity, the script identifies this as a state of high stability or consolidation. It then projects visual markers (FlatBuffers) above and below the signal lines to highlight these zones. For a trader, these indicators visually represent areas where the market is "waiting" for a breakout, potentially signaling a period of low volatility before a new move begins.
Summary for the Trader
In essence, this tool takes complex Ichimoku data and simplifies it into a more readable format. It allows you to see:
- The Main Trend: Via the Taichi line.
- Momentum Shifts: By watching how the Signal lines interact with the Taichi line.
- Consolidation Zones: Through the visual "Flat" markers that identify when the market is moving sideways and may be preparing for a significant price expansion.
//+------------------------------------------------------------------+
//| Cronex Taichi.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, Cronex"
#property link "http://www.metaquotes.net/"
//---- indicator settings
#property indicator_chart_window
//#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 Silver
#property indicator_color2 Red
#property indicator_color3 Lime
#property indicator_color4 DarkOrange
#property indicator_color5 DeepSkyBlue
#property indicator_color6 DeepSkyBlue
#property indicator_width1 2
#property indicator_width4 2
//---- indicator parameters
extern int Tenkan=9;
extern int Kijun=26;
extern int Senkou=52;
//---- indicator buffers
double TaichiBuffer[];
double TaichiForBuffer[];
double SignalBuffer[];
double SSignalBuffer[];
double FlatBuffer1[];
double FlatBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- drawing settings
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
SetIndexStyle(2,DRAW_LINE);
SetIndexStyle(3,DRAW_LINE);
SetIndexStyle(4,DRAW_HISTOGRAM,STYLE_DOT);
SetIndexStyle(5,DRAW_HISTOGRAM,STYLE_DOT);
// SetIndexDrawBegin(1,SignalSMA);
IndicatorDigits(Digits+1);
//---- indicator buffers mapping
SetIndexBuffer(0,TaichiBuffer);
SetIndexBuffer(1,SignalBuffer);
SetIndexBuffer(2,SSignalBuffer);
SetIndexBuffer(3,TaichiForBuffer);
SetIndexBuffer(4,FlatBuffer1);
SetIndexBuffer(5,FlatBuffer2);
SetIndexShift(3,Kijun);
// SetIndexDrawBegin(3,Kijun);
//---- name for DataWindow and indicator subwindow label
IndicatorShortName("Cronex Taichi");
SetIndexLabel(0,"Taichi");
SetIndexLabel(1,"Signal");
SetIndexLabel(2,"SSignal");
SetIndexLabel(3,"TaichiFor");
SetIndexLabel(4,"Flat1");
SetIndexLabel(5,"Flat2");
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| Moving Averages Convergence/Divergence |
//+------------------------------------------------------------------+
int start()
{
double TenkanSen,KijunSen,SenkouSpanA,SenkouSpanB,ChinkouSpan;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
if(counted_bars==0) limit-=1+Kijun;
//---- macd counted in the 1-st buffer
for(int i=-Kijun; i<limit; i++)
{
// TaichiBuffer[i]=(iRSI(NULL,0,FastEMA,PRICE_OPEN,i)+iRSI(NULL,0,SlowEMA,PRICE_OPEN,i)+)/2;
// TaichiBuffer[i]=iRSI(NULL,0,SlowEMA,PRICE_OPEN,i);
TenkanSen = iIchimoku(NULL,0,Tenkan,Kijun,Senkou,MODE_TENKANSEN,i);
KijunSen = iIchimoku(NULL,0,Tenkan,Kijun,Senkou,MODE_KIJUNSEN,i);
SenkouSpanA = iIchimoku(NULL,0,Tenkan,Kijun,Senkou,MODE_SENKOUSPANA,i);
SenkouSpanB = iIchimoku(NULL,0,Tenkan,Kijun,Senkou,MODE_SENKOUSPANB,i);
ChinkouSpan = iIchimoku(NULL,0,Tenkan,Kijun,Senkou,MODE_CHINKOUSPAN,i);
if(i>=0)
{
TaichiBuffer[i]=(TenkanSen+KijunSen+SenkouSpanA+SenkouSpanB)/4;
TaichiForBuffer[i+Kijun]=(SenkouSpanA+SenkouSpanB)/2;
}
else TaichiForBuffer[i+Kijun]=(SenkouSpanA+SenkouSpanB)/2;
}
//========================== signal line counted ================
for(i=0; i<limit; i++)
{
SignalBuffer[i]=iMAOnArray(TaichiBuffer,Bars,Kijun,0,MODE_LWMA,i);
SSignalBuffer[i]=iMAOnArray(TaichiBuffer,Bars,Senkou,0,MODE_LWMA,i);
if(MathAbs(((TaichiBuffer[i]-SignalBuffer[i])+(TaichiBuffer[i]-
SSignalBuffer[i])+(SignalBuffer[i]-SSignalBuffer[i]))/3)<10*Point)
FlatBuffer1[i]=SignalBuffer[i]+15*Point;
FlatBuffer2[i]=SignalBuffer[i]-15*Point;
}
//---- done
return(0);
}
//+------------------------------------------------------------------+
Comments