Quote:
|
Originally Posted by Tom_trader
Hi guyz, I've tested all indicators above and so far I found "customcandle" by Linuxser to be the most useful. The minor problem is I can't use the same "real body" color together with background color ( look at my screenshot@ post #14) but it's fine with other color. So,it'd be great if someone is able to add or modify it so that it can paint color surrounding the outline of real body. anyway, thanks Linuxser ,4xtrader, fxden for your great contribution.
|
Well, this is the main point.
This is one way :
Technically speaking this code (and the others) does not draw a candle, itīs just an illusion created by an an histogram with candle figure.
Draw a real candle only MT4 can do.
This is other way:
Could be creating/drawing a illusion of a candle with figures for all parts of a candle.
This way could help you to see what you want but will overload the CPU with extra work because every change in a candle signify:
1.one older draw must be erased/moved
2.a new one must be created.
If some of the indicators around the forum doing simple tasks like drawing a big price in main window and update every tick takes some extra resources, imagine what can happens when you have to redraw last 500 bars with a body and wick/shadow.
Look the picture attached. 1000 objects only for the wick/shadow. And the problem of without want it you can move them.
So in both ways youīre in "candle emulation".
There is now way to create an authentic candle because this task is assigned to Terminal not to an indicator.
Unless somebody have access to the source code and can add a option like Bar Up /Down width into Chart Properties there is no real solution.
And I believes the only can do that are the guys of Metaquotes.
Thatīs why I like the method I had choose. Obviously has it limitations but are inherent with MT and QML.
And my limited skill in programing does not know if a real solution exists but I donīt think so.
Thanks for your words.