Need a customized ATR function in MQL4 (math oriented coder only)

MQL4 指标 脚本

指定

Hi,

I need a small MQL4 function that will take the "shift" of a bar as parameter and a customized version of ATR taken from a formula which I will provide in discussion area.

Basically I just want to take the original ATR source code and customize it a little bit and converted into a function that I can use in my own source code.

An example usage would be:  

 

double CustomATR = GetMyCustomATR(int shift, double& SecParam) ;

{

 .... 

 

void Start

double OtherParam = 0;

double MyATR = GetMyCustomATR(1, OtherParam); 

 

 

 

反馈

1
开发者 1
等级
(97)
项目
121
25%
仲裁
5
20% / 60%
逾期
17
14%
空闲
2
开发者 2
等级
(103)
项目
205
41%
仲裁
17
29% / 71%
逾期
45
22%
空闲

项目信息

预算
10 - 20 USD