Download MetaTrader 5

Vertical text below and above candle simultaneously

To add comments, please log in or register
What is the best place to find a programmer? Freelance service!
Dawid Ciechowski
Dawid Ciechowski 2016.04.16 21:28 

hello :)

I have a question :) how to set a vertical text below and above candle simultaneously? I would like to have the name of the pattern below and above signal bar (like here: ), but I don't know how to do it...


if (C==O)

         if (Display_Doji== true) {  

            ObjectCreate(PatternText[shift], OBJ_TEXT, 0, Time[shift1], Low[shift1] - Range*2.5);

            ObjectSetText(PatternText[shift], "Neutral", 8, "Calibri", White);

            ObjectSetDouble(ChartID(), PatternText[shift], OBJPROP_ANGLE, 90);

            ObjectSetInteger(ChartID(), PatternText[shift], OBJPROP_ANCHOR, ANCHOR_BOTTOM);

            upArrow[shift1] = Low[shift1] - Range*0.5;

            downArrow[shift1] = High[shift1] + Range*0.5;


         if (shift == 0 && Show_Alert == true) {

            pattern="Neutral Signal";

            setalert = 1;



how the code should look like?  thanks in advance for your help ;) 

Vladimir Karputov
Vladimir Karputov 2016.04.21 07:02  

Please, insert a code on a forum correctly.

The script places the text below and the higher than bar which you set:

Step 1 




To add comments, please log in or register