Getting values from other Indicators
-
Is it possible to read "int" & "double" values From an indicator and save those values into a variable?
Please NOTE: The indicator i am talking about uses "object" to display those values.
so in other words i will need a way to read those value from the chart.

and this is the indicator:
0_1563119466759_MoneyManager.mq4 -
Apparently it should. Could you please show your how your custom indicator windows displays it?
-
-
I see this is a custom MT5 indicator. Then I'm afraid it will not work necessarily. fxDreema is not completely developed for MT5 and this is specially evident on custom indicators. Unless the administrator takes a serious effort to fix it, my recommendation is that you try your project on MT4.
-
@l-andorrà bro it's MT4 indicator, I am using it on mt4
And the project I need this indicator for is also being developed in for MT4 -
Ooops, sorry! :D. Then could you please show your project?
-
@l-andorrà okay I am replying from my phone, I'll share the link as soon as I get back
-
since your indicator is open source you can edit the indicator to make those values that are displayed into buffers and then read the buffers like you do with any other indicator
just make the buffers line style be STYLE_NONE so they aren't drawn on the chart
-
@spuzy bro I ho no knowledge of programming whatsoever.





-
-
@zackry Hi. I don't really know much about custom indicators, they are too much hassle for me.
Those values shown as object are probably calculated with some simple algorithm. I would just find out how they are calculated, and just copy that part to my EA. The custom indi is an unnecessary complication -
@roar thanks, I don't have any knowledge about the actual code part but I will try to copy and put that code into my project
-
@roar well no luck there , it all looks like bricks and stones

-
@zackry Ok, lets study the mq4 code:
- The first 3 values ("PT", "SL" and "ATR") are probably calculated by these 3 functions:

- The "RRR" is here:

- The "Risk" is just the Risk_per_Trade constant
- The "Lots" is probably here:

money is your account equity, pip_value is a tool for converting pips to raw number:
pip_value = tick_value = MarketInfo(Symbol(), MODE_TICKVALUE)
Hope this gets you started
Ctrl+f is useful when browsing the mq4 file -
@roar a quick question can I use these lines as it is?
Or do I have to change them in some way? -
@zackry
You must first declare the constants and variables in your fxdreema project.The red ones (ATR_TimeFrame, Risk_per_Trade, etc...) goes to your fxdreema constants list
The black ones (ATR_pips, RRR, lots) goes to your fxdreema variables list -
-
@roar thank you roar you went out of your way to help me, I really appreciate it
By the way, the lot size and rest can be achieved the same way right? -
@zackry No problem lol
And yes, just set up the constants and parameters, and then copypaste the lines from mq4 to calculate
-
@roar perfect.
thanks a million times
i am gonna try it



