MQ4 Indicator to Custom Block
-
Hey all, I really appreciate this visual tool! I even bought a year subscription! I've been creating EA's for a few months now with it visually and am now just starting to get into using the fxdreema studio. I want to take an mql4 indicator I saw online and make it a custom indicator that I can use in fxDreema so I can get comfortable making those type of complex indicators myself in fxDreema studio. I'm a software engineer for my dayjob using c, c++, java, c#, and a couple other languages. This is the indicator I'm looking at: https://forex-station.com/app.php/attach/file/3370658 How might I go about this? I know this is kind of a generic question because I'm just not very familiar with mql4 yet, so I don't expect specifics but any help specific or generic would be much appreciated thank you so much!
-
Why bothering with complex indicators in studio? It will slow down your work. Any complex indicator is mostly a combination of math, logic, arrays and custom functions. As a developer you are comfortable with the code and debugger. Metaeditor is the right tool for creating complex indicators. You can run the indicator directly on the chart to view the history. When you have the indicator ready, then import it into fxdreema and test it for a trading strategy.
-
@mikemanahan basically, paste the mq4 code as "Custom function", set inputs as "Parameter used in block" and then call the function. This way you can convey the buffers to fxdreema variables. I dont know if thats the best way to manage it, I dont really use the studio - I dont think anyone on this forum does lol

-
@miro1360 That's a fair point, I guess I just wanted one tool for the whole development cycle and really like FxDreema. You are right though there'd be no way to debug an indicator not performing correctly besides just not compiling. Is there a specific way to code a custom indicator in MetaEditor so it can import correctly into FxDreema?
-
Not that specifically for fxdreema, but in general:
avoid repainted indicators (fisher is a good example, offline renko charts generated from history prices) .. or use it correctly
try to make the indicator effective so that it does not recalculate the whole history, but recalculates only the necessary number of prices
avoid a possibility of division by zero