May be using iCustom() has some problem ,The data EA get from the indicator are
different with the data calculating by the indicator itself.
We know Mt4 have a series famous three articles to explain how to use iCustom(),
the hard nut.
But I found some thing wrong happened with Transferring an Indicator Code into an
Expert Advisor Code
In those articles,the writor give the classical example:
An EA "ASCTrend1RAVI_Expert.mq4" communicates with an Indicator "RAVI.
I do something to show you the wrong facts.
For this, I adding some Filewrite instruction at Ravi.mq4 to record the the buffer's
And simplify the ASCTrend1RAVI_Expert.mq4 to TEST.mq4
The TEST.mq4 only get data once from RAVI.mq4,so we can compare with the data in
the buffers of RAVI.mq4
I give you the results and the mq4s
RAVI_Up[bar-1] = iCustom(NULL, RAVI_Timeframe,"RAVI", Period1_Up,Period2_Up, MA_Metod_Up, PRICE_Up, 0, bar-1);
You are an intelligentest man in Russia may be in the world !!!
You so quickly found the bug and fixed it !
Thank you very very much !
The mistake came from Mr. Nikolay Kositsin
I copyed the code from his program exactly.
So Mr. Nikolay Kositsin may pay us for drinking vodka a lot when I come to Russia
添加评论, 请 登陆 和 注册