How Do I Create An EA With This Type of Custom Indicator?
-
Hello Everyone
Please have a look at this attached custom indicator and advice me on how to use it to create an EA in FXdreema. I have tried all I know but its seems I missing something.
Please help, I want the EA to take buy orders when the indicator color is green and sell when the color is red.
Thank you.
@ambrogio and @l-andorrà please help have a look.
-
@lanrayy Working with ex5 files is alway risky in fxDreema. Don't you have the mq5. version?
-
@l-andorrà said in How Do I Create An EA With This Type of Custom Indicator?:
@lanrayy Working with ex5 files is alway risky in fxDreema. Don't you have the mq5. version?
I have it sir @l-andorrà, here it is.
-
@lanrayy I see the problem. This is very common with mq5 indicators. Both colours share the same buffer. Sadly, fxDreema cannot recognize them as it is now. Some coding needs to be done (I'm not a coder, sorry). Maybe miro1360 can help.
-
@lanrayy said in How Do I Create An EA With This Type of Custom Indicator?:
@l-andorrà said in How Do I Create An EA With This Type of Custom Indicator?:
@lanrayy Working with ex5 files is alway risky in fxDreema. Don't you have the mq5. version?
I have it sir @l-andorrà, here it is.
Thank you so much @l-andorrà .
@miro1360 Please come to my rescue , I need your help on this.
-
this indicator code recall me an indicator which repaints, fisher ... not bad one for a visual analysis but a wrong choice for EA ... it repaints on a fifth candle or so

anyway, the condition is simple, if indicator is more or less than null
-
@miro1360 This is very interesting miro. If I understand you correctly, no matter there is one only buffer. Right? If its value is above zero we'll get one colour and if it is below zero we'll get the other one. Correct?
Finally you selected candle ID 5 because that is the 'first' truly reliable candle. Right?
-
correct, in this case the color depends on the zero, sometimes it is much more complicated because the code contains different conditions to set up the color
in this case it is just the null ...
exactly, this "fisher yurik" indicator repaints like crazy, up to fifth or sixth candle -
I am having the same concern about how to use a custom indicator in my EA but until now I have no success doing it.
Actually, I only have the .ex4 file
How can I solve this?
Thanks in advance for your help -
@miro1360 said in How Do I Create An EA With This Type of Custom Indicator?:
this indicator code recall me an indicator which repaints, fisher ... not bad one for a visual analysis but a wrong choice for EA ... it repaints on a fifth candle or so

anyway, the condition is simple, if indicator is more or less than null
Thank you so much @miro1360 for the insight provided. I was able to use it to create EA according to your instruction. But I am still having some challenges with it. The EA is able to place trade after changing color using candle 1 (like I want it to be). But the issues am having is that :
- The EA does not run properly on strategy tester. I had to put it on a demo account before i could see how it works.
- The EA does not close existing trading after change of color in order to place a new trade. (close buy and open sell) like I have set it.
I don't know if this problems are due to the nature of the custom indicator or there is something I did not set right.
Here is the link to the project : https://fxdreema.com/shared/Nsng5FtKb
please have a look and advice me on what to do.@l-andorrà and @ambrogio please help me have a look as well on what is missing from the setting. Thank you.
-
@lanrayy Sorry but I can't get it to work, the tester doesn't move

-
your EA is right, but the indicator repaints on many past candles (indicator is useless for any EA)
How to check if an indicator repaints?
you can trace the values of indicator (in the main or a separate window) using trendlines
https://fxdreema.com/shared/5vQ8dwt0c
(Trace block can be used for indicator in the main window)
purple trendlines are the real values from the current and first candle
you can clearly see how the indicator repainted itself over time (where the values were at the beginning), crazy .... this youtube guy has a good reaction for the indicator
https://www.youtube.com/watch?v=kyPzl8M4yCE

see, how the same trendline is stable on RSI

-
@ambrogio said in How Do I Create An EA With This Type of Custom Indicator?:
@lanrayy Sorry but I can't get it to work, the tester doesn't move

Alright thanks
-
@miro1360 Alright. Thanks for the enlightenment. I understand better now.
lol @ the youtube video -
@miro1360 please I would like you to help me with how to set up Awesome Oscillator and Accelerator Oscillator for an EA.
I have tried the options that I know but but I couldn't get them working.
Please help, I just the EA to be able to place buy order when color is green and sell what n color is red.
Thanks in anticipation.