Author: Shimodax & Emerald King
Miscellaneous
Implements a curve of type %1
0 Views
0 Downloads
0 Favorites
FXOE-LRSI
//+------------------------------------------------------------------+
//|                                                    SHI_Slope.mq4 |
//|                                          Shimodax & Emerald King |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Shimodax & Emerald King"
#property  link     "http://www.strategybuilderfx.com/forums/showthread.php?t=15112"

#property indicator_separate_window
#property indicator_color1 LightSeaGreen
#property indicator_level2 0.75
#property indicator_level3 0.45
#property indicator_level4 0.15

//---- input parameters
extern double Gamma= 0.7;

double LRSIBuf[];

#include "fxoe-lib.mqh"


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
      
int init()
{
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0, LRSIBuf);
   SetIndexDrawBegin(0,1);
   
   IndicatorShortName("FXOE-LaguerreRSI(Gamma= "+DoubleToStr(Gamma,1)+")= ");
   
   return(0);
}
  
int deinit()
{
   return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
{
   int counted_bars= IndicatorCounted(),
         lastbar;

      
   if (counted_bars>0)
      counted_bars--;
      
   lastbar= Bars - counted_bars;
   
   LaguerreRSI(0, lastbar, LRSIBuf, Gamma);

   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 ---