Custom indicator
-
Most important thing in trading is hold on to your dollars. That is more important than making profits. Since divergence could indicate a rversal or correction is about to happen it makes a lot of sence to protect your dollars. It doesn't mean a trend reversal at that moment because divergence often builds up before anything happens.
So in case of divergence I would like the EA to place the trade at break even in case its trading in profit. Simply said: Protect your money at all times.
There are a lot of divergence indicators out there so not asking which one I should use but I can't figure out where to place it and how.Hope you can help me here. A picture is attached to make things clear.
-
I the last version I removed "Signals" block, I decided that it's not a good idea to be used.
Custom indicators gives information to the EA. You must know which buffer to use. There is a block named "Levels tester" (I renamed it to Indicator tester" in the last version) that is used to check indicator buffers. Knowing what's in buffers "Condition" block can be used or some of the blocks in "Indicators" category. -
I am not the smartest when it comes to programming although I am getting the hang of it a little. However I do know quite a few things when it comes to trading and this divergence thing is a bit of a pain. Could you give an example how you would do this?? Just to get me started in the right direction. Would be awsome if you could

-
And this indicator can be downloaded from....?
-
It was a free download. So files attached.
But I have to say I like the CC_divergence indicator a lot more. Also Attached. (weblink http://codebase.mql4.com/source/17351 )
Thanks for giving me hope
......
RSI Divergence.mq4
RSI Divergence.ex4
CC_Divergence_v1.0.mq4 -
As I expected, buffers of those indicators cannot be used, but there is a plan B - working with objects: http://fxdreema.com/shared/47PHHoIZc
I used a little bit of this (see where OBJPROP_STYLE is): http://docs.mql4.com/constants/objects/properties -
Well you gave me some homework. Will be buissy with that for a while.

-
I am getting the Idea slowly but steady. Have also replaced draw arrow with breakeven block and that is working as well.
Oh once per bar was set on a 30min TF in this 4hr chart. Reason of the many arrow.
Thanks for pointing me in the right direction. Now the real stuff can be put together
......
test.png -
The signal (when all conditions are right) lasts for 1 bar time, because of it's nature, so I used "Once per bar" to filter only the first time that all conditions are right. If different timeframe is used for "Once per bar", it will "reset" at different time - sooner or later - and you will see more arrows in the same candle or more arrows on a different candle.
-
Now you have done it to me. You have opened pandora's box and I love it.
Did I tell you... YOU ARE AWSOME
-
__Now you have done it to me. You have opened pandora's box and I love it.
Did I tell you... YOU ARE AWSOME :)[/quote:2szukhc7]Everything can be better, always

-
By the way, normally an EA should work with indicator's buffer(s) and the last project was some kind of hack because for this indicator (in both actually) buffers are useless.
-
PLEASE PROVIDE EASY METHOD FOR STOCHASTIC DIVERGENCE DO SOMETHING ON THE EXISTING DIVERGENCE INDICATOR THAT IT SHOULD GET VALUES FROM THE EXISTING BUFFERS