RAVI FX Fisher2_v1

Author: Copyright � 2005, Luis Guilherme Damiani
RAVI FX Fisher2_v1
Indicators Used
Moving average indicatorIndicator of the average true range
Miscellaneous
Implements a curve of type %1
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 supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---