Unable to read/write indicator buffer data
-
Hi all,
I've been struggling with this for two days without any success. I would like to create an EA based on currency slope strengths, using the Currency Slope Strength indicator published here: https://www.best-metatrader-indicators.com/currency-slope-strength/.
I downloaded the indicator and added the mq4 file to My Indicators in the Builder. At the same time, I of course tried out the indicator on my MetaTrader as well, to see how it works, what it shows etc. No problems so far.
Then, I wanted to set up conditions based on the indicator but the EA didn't work at all. After a while, I started suspecting that the data might not be read correctly from the 8 buffers. So I set up a simple EA which writes all the content of the buffers into a csv file and the surprise came: the buffers do not contain any of the numeric information I see on my MetaTrader chart!
I am totally puzzled at this point... Has anyone encountered a similar problem before? How is it possible that the indicator shows the information correctly in the indicator window (i.e. the indicator places the numeric values correctly into the buffers, otherwise they wouldn't appear on the indicator window I assume) but the content of these buffers are not read in fxdreema / do not arrive?

This first image shows how the indicator appears on the MetaTrader platform.
And this second one shows the csv output I obtained. -
Working woth ex5 files in fxDReema is tough. Please read the following tutorial to be sure you did it correctly:
https://fxdreema.com/forum/topic/9105/tutorial-working-with-ex4-ex5-indicator-file
-
Hi @l-andorrà
Thank you for your answer, I had a look at the link you provided but I did everything in order. I even mentioned it in my comment above that "I downloaded the indicator and added the mq4 file to My Indicators in the Builder," so the problem I am facing doesn't seem to be due to incorrect import into fxDreema.
-
@leventecsibi, please share your project.
How you can use this indicator for trade?! i don't have any idea about that -
@leventecsibi i have already used this indicator but give me an error in the journal (don't remember wich one)
-
@xfire it is a kind of indicator that measures the strength between the pairs, buy the strong pair and sell the weak
-
Could yopu please share your project?
-
I shared it above already, the very simple code is here. It just saves the data that is read from the indicator buffers, into a csv file:
https://fxdreema.com/shared/WLbzZ5d6cI really hope you guys can access the indicator as well through this shared file. I'm not sure if that gets attached too.
-
@ambrogio said in Unable to read/write indicator buffer data:
@leventecsibi i have already used this indicator but give me an error in the journal (don't remember wich one)
Seems odd. It works fine for me on the MT4 platform, I haven't yet experienced any errors. Perhaps we are talking about different versions of the same indicator, that's the only thing I can think of.

-
Hi @xfire ,
It essentially compares the strength of the 8 main currencies to each other. There are "strong" currencies and "weak" currencies in this comparison. One would trade those which are the furthest away from each other. So if at a moment the EUR is indicated as the strongest while the CHF as the weakest, you would look for opportunities to enter a long trade on EURCHF. This is the main idea.
Of course, the notion of "strong" and "weak" currencies is nonsense. If a high value is indicated on the chart for a given currency, it means the currency has been strongly trending in the recent past. So with the previous example, if EUR is indicated as the strongest, it means we have some sort of bullish move on EURUSD, EURCHF, EURCAD etc. The strength of this move depends on the strength of the other currencies: if CHF is the weakest, EURCHF will experience the strongest bullish move, while all pairs with CHF will see the value of the CHF against the other currency fall.
Hope this helps to clear it out a bit.

P.S.: In real time I'd surely not use the indicator chart as it is shown above. Luckily, it is possible to switch off those currencies which are not relevant for the evaluation of the current currency pair. On the image above, we have a chart of the EURUSD so, in this case, I'd switch off the other 6 currencies so that I am only left with the strength of EUR and that of USD. Then it is not confusing to use it

-
@leventecsibi Thank you so much. it was good to explain. your problem is solved or i check for you?
-
@xfire You're welcome!
Unfortunately, I'm still facing the issue
-
@leventecsibi I checked it and i see the buffers working good but your indicator isn't perfect
if you look at the indicator currency list your can see it cant refresh perfect and some numbers are under others
for example in my screenshot USD is -23 and EA show - 0.299 then your indicator calculates the real numbers
and EUR is 39 and in your indicator, you cant see clearly.
i think you can work with buffers

-
Hi @Xfire
So apparently, I might need to look up a better functioning indicator or try to look into the source code and compute the currency strength manually in fxDreema. I'll see! Thanks a ton for your help!