Indicators Used
Miscellaneous
0
Views
0
Downloads
0
Favorites
RAVI FX Fisher2_v1
/*-----------------------------+
| |
| Shared by www.Aptrafx.com |
| |
+------------------------------*/
//+------------------------------------------------------------------+
//| 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
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---