mladen thank you very much for indicator.
You could modify it to draw as in the image attached.
Thank you very much in advance.
Here you go
I am afraid that I do not understand what is the exact problem, and when does it exactly happen.
If I remember correctly you had some problems with some indicators that are showing histogram values on a main chart (as that indicator is doing it) when template is loaded but then after that they worked OK in all other occasions, and as I said, it seems that metatrader has some bug when template is loaded. Other than that I do not see any kind of a problem in the indicator itself (if it does that only when a template is loaded, and works OK in all other occasions, then I am sticking to my conclusion that there is a problem with metatrader when it loads a template and that such a problem has nothing to do with the indicator)
Thank you very much mladen
Mladen, this is a different issue from the one I spoke of. If you could read the message again, I am referring to the candles indicator which you had coded and explained the problem and what I think may have caused it. Please kindly re-read, thank you.
I did read it and the problem is following. When you have an indicator that is drawing candles on chart, you can not overlay it with another indicator that is drawing on those same candles (one will hide the other completely) regardless of the the parameters used. Also, you can not "combine" different time frames - different time frames are not resulting in same results - the set of data for different time frames is not the same and it is only natural that results for different sets of data must be different - they are not calculating the same thing at all - 4 bars of 15 minute time frame will never result in a same result as 1 one hour bar, if not for anything else, then for the mere thing that samples are different
In the code all is correct and there is nothing that can be changed to prevent what you are talking about. It is one indicator that does not "know" of another indicators state (and it can not know). All the job of drawing two indicators on the same chart and both drawing candles in the same time is done by metatrader terminal, not the indicator code (since indicator "knows" only its own data).
Thanks for the EA. It keeps smiling for me but does not place pending orders. I found an other one (attached) in this thread post #152, but that shows grey color in my oco_visual.mq4navigator column. Still asking for addition of trailing stop/profit if possible.
That version will not work since that is a decompiled code (that is why it shows gray color - it is the metatrader protection against decompiled code). I see that I was the one posted it there, but quite frankly have no idea where did I find it (and obviously I did not check the code ;().
eventually I found the origin (at forex factory) but even then it was a decompiled code
Hello, thanks for reply. Let's forget then the decompiled version. There is a problem with the ea you updated, it does not place orders. Still ask whether it could be fixed and trailing stop/profit added to it. Strange enough, the original version back to 2006 seems to work. both attched. Many thanks for help.straddleorderoco_1.01.mq4
Try it out now (there is still time to test it - I tested it on my terminal and it seems to be working OK)
Good evening, Mladen ! I would like to make a new request about the option of upgrading
the indicator from mq4 into mq5 ( it’s another month already ! )
If I am not mistaken it was constructed as a "dynamic" ( DLL depending ) - is it possible to implement
that in MT5 ?
Anyway , thank you in advance , even if it can’t be fulfilled !
Have a nice weekend, Mikhael.