indicator integration
-
If I have the source file for an indicator is there a way to integrate it into the ea so that I wouldn't need to run the indicator along with the EA?
-
yes you can do this using custom code blocks, and avoid whole calculation of data (all historical candles which you dont need in EA, calculate only present data) ..
-
Well, indicators are separate projects for a reason. Their code is similar to Expert Advisors, but also different. Indicators produce array of values (aka buffers) and those values are translated in the chart as lines, arrows, histograms or something similar. EAs can draw some objects, but not those kind of lines that indicators can. Indicators are also normally designed in a way to not recalculate the same data over and over again, which is tricky to do in an EA.
-
I think he need it because of reason "hide indicator" to prevent create copy of his EA
but this is only one of reasons why somebody need integrate indicator into EA, maybe it is something other ... -
so how would i do that with the custom code blocks? just copy and paste the indicator into a custom code block and run it with a pass block?
-
not so easy, you need recreate part of code (of data calculation) into this code ... maybe you can do it with formula blocks but result can be a lot of blocks, all depends on indicator itself
-
Oh ok. I'll pass on that then! thank you