Download MetaTrader 5

Discussion of article "Data Exchange between Indicators: It's Easy"

To add comments, please log in or register
Sign up to publish an article and receive 200 USD
MetaQuotes Software Corp.
Moderator
181039
MetaQuotes Software Corp. 2010.01.14 16:53 

New article Data Exchange between Indicators: It's Easy is published:

The article describes an easy method to develop a program environment for the MetaTrader terminal, that would provide means for accessing indicator buffers from other MQL programs.

Author: Алексей

brisully
43
brisully 2012.08.04 02:36  

I've noticed that with the new MT4 builds the SetIndicatorValue() function doesn't work, but GetIndicatorValue() does. Is this just me, or is there something in the new builds (I think the change happened somewhere after Build 225) that broke that function? If so, any suggestions on how to get the methodologies in this article to work on the new MT4 builds? The fact that the old builds aren't supported anymore is causing me a problem in this regard, as I'd really like to have indicator calculations happen only once, in an EA, but still be displayed on charts by pushing the calculated values to the indicator buffers' pointers. (BTW, I was really grateful to find this article and to be able to apply its techniques - thank you for writing it.)

A related question is that I noticed that on the release notes for Build 392 of MT4 on 3/17/2011, it says, "3. Removed unnecessary recalculations of indicators when displaying them on a chart." Does this improvement effectively negate the need for the techniques in this article in that using custom indicators in the way they were intended will no longer be slower than using the pointer-based techniques taught in this article? Thank you.

brisully
43
brisully 2012.08.08 15:00  
brisully:

I've noticed that with the new MT4 builds the SetIndicatorValue() function doesn't work, but GetIndicatorValue() does. Is this just me, or is there something in the new builds (I think the change happened somewhere after Build 225) that broke that function? If so, any suggestions on how to get the methodologies in this article to work on the new MT4 builds? The fact that the old builds aren't supported anymore is causing me a problem in this regard, as I'd really like to have indicator calculations happen only once, in an EA, but still be displayed on charts by pushing the calculated values to the indicator buffers' pointers. (BTW, I was really grateful to find this article and to be able to apply its techniques - thank you for writing it.)

A related question is that I noticed that on the release notes for Build 392 of MT4 on 3/17/2011, it says, "3. Removed unnecessary recalculations of indicators when displaying them on a chart." Does this improvement effectively negate the need for the techniques in this article in that using custom indicators in the way they were intended will no longer be slower than using the pointer-based techniques taught in this article? Thank you.

It seems I was mistaken, and that the indicator files attached to the article do work in the new builds of MT4. Sorry for the false alarm, and thanks again for this work.
Kourosh Davallou
40139
Kourosh Davallou 2013.04.04 08:37  
thank you
raidsan
89
raidsan 2015.05.26 20:15  
ponter address should be unsigned int, not just int
To add comments, please log in or register