RAVI FX Fisher2
Download scriptThis tool is designed to provide a visual representation of market momentum by analyzing the relationship between different types of moving averages. Instead of just looking at price movement directly, it creates a specialized mathematical curve that helps traders identify the strength and direction of the current trend.
How the Logic Works
The script operates by comparing two distinct speeds of data: a "fast" moving average and a "slow" moving average. By calculating the distance between these two lines, the tool can determine how quickly price is pulling away from its historical average. This comparison helps distinguish between a strong, sustained trend and minor, insignificant price fluctuations.
To ensure the data remains accurate and isn't skewed by sudden, extreme price spikes, the logic incorporates a volatility filter. This ensures that the resulting movement is grounded in the actual "noise" of the market at that specific moment.
The Final Output
The final step of the logic transforms these complex calculations into a simplified value. It uses an exponential mathematical formula to "compress" the data into a readable format.
For the user, this means the indicator doesn't just show you price; it provides a smoothed, stabilized view of market energy. When the resulting line moves in one direction, it signals a dominant trend; when it flattens or shifts, it suggests a change in momentum. This allows for a clearer, more refined perspective on how the market is behaving compared to looking at standard price charts alone.
//+------------------------------------------------------------------+
//| RAVI FX Fisher.mq4 |
//| Copyright © 2005, Luis Guilherme Damiani |
//| http://www.damianifx.com.br |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, Luis Guilherme Damiani"
#property link "http://www.damianifx.com.br"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 MediumSeaGreen
extern int MAfast=4;
extern int MAslow=49;
double RAVIfxFishBuffer[];
int init()
{
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,RAVIfxFishBuffer);
return(0);
}
int deinit()
{
return(0);
}
int start()
{
double MAValue=0;
double IFish=0;
double imaFast=0;
double imaSlow=0;
double iATRFast=0;
for (int shift = 0; shift<=Bars-100;shift++)
{
imaFast=iMA(NULL,0,MAfast,0,MODE_LWMA,PRICE_TYPICAL,shift);
imaSlow=iMA(NULL,0,MAslow,0,MODE_LWMA,PRICE_TYPICAL,shift);
iATRFast=iATR(NULL,0,MAfast,shift);
MAValue = 100 * (imaFast - imaSlow)* iATRFast/imaSlow/iATRFast;
IFish=(MathExp(2*MAValue)-1)/(MathExp(2*MAValue)+1);
RAVIfxFishBuffer[shift]=IFish;
}
return(0);
}
Comments