Using iCustom Feature
-
Hi guys!
I'm starting to use fxDreema to develop an EA using a custom indicator bought at MQL5 and I need to get signal from buffer 14 to buy and signal from buffer 15 to sell, as code :
if( GetIndicatorValue(14) > 0 ) then buy
if( GetIndicatorValue(15) > 0 ) then sell
Which is the best way to program this using FxDreema? The indicator's develop sent this code and I don't know how to join them.
Thanks!
-
fxDreema is an EA builder, but one of those where you normally don't need to write code. To work with a custom indicator, go to My Indicators and add the indicator there. Then you can use "Condition" block and select the indicator (http://prntscr.com/i08ais), also select the correct buffer number, parameters and everything. Then on the right side select Value -> Numeric if you want to compare it with 0.
But when working with custom indicators, I always advice to check the indicator first with that Trace block: https://fxdreema.com/demo/mt4-trace-multiple
-
Thanks for your reply!
Do I need to use both, Condition and Trace, or do Trace replace Condition for indicator?
Please, take a look:
https://fxdreema.com/shared/EvY7Mvv4dMy backtests do not run at all. It stay stucked.
-
there is possibility that your indicator plot only arrows as objects and not into buffers ... it is way how some indicators are done .... are you using adx crosses? if yes, than arrows are simple only adx cross based on DI condition:

-
@miro1360 Thanks for your reply!
This indicator uses Buffers. Also the developer sent an code with the correct iCustom feature. I'm facing some issue while programming using fxDreema.
I've made a test using trace . I'm not sure about it and the backtest worked but not the Ea. I mean, the EA open orders in every single candle from that TF.
It looks like this:

Thank you so much!
-
if this is your indicator:

you can see, that here is a lot of buffers from which is indicator line constructed, blue color is one buffer, orange color is another, than here is red and orange arrow as another buffers ...
these buffers are sometimes active (have value) and sometimes are not (they have value too but it is called EMPTY_VALUE)trace block is for visual tracking (finding) values from buffer and observing how behave these values (in visual tester) ... it is NOT for runing other blocks (for trading as in your example) ... with trace block you can find buffer behaviour and with Condition block you set right condition for buffer ... in your example replace Trace with Condition block ...
-
Great @miro1360 !
I've tried with condition block but the EA doesn't work. The Backtest stay stucked.
I'll try with another setups.
Thank you so much for your help!
-
Hey guys!
I'm using the Condition Block "When indicator appear". I want to open a trade only when the buffer turn from 0 to 1.
But my backtest dont run. It stay stucked consuming memory machine. Do you think that it can be a buffer issue?
this code was sent by the developer :

And I`m using buffers 14/15 .
I've removed all rules just to try the back test. My EA is just like this:
https://fxdreema.com/shared/PCHeRb3udThanks in advance