Announcement

Collapse
No announcement yet.

drawTextRelative Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • drawTextRelative Problem

    I have 2 drawTextRelative commands in an efs. Problem is only one of them print on the chart.

    If I enter them one at a time in the efs it prints but when I put both into the code only one print.

    Any explanation? Or do I have a mistake in the code?

    Help will be appreciated.

    Regards
    Attached Files

  • #2
    Kobus
    Because you omitted to add a tagID parameter in the drawTextRelative() functions so as to distinguish each graphic object only one of them gets drawn. The corrected section of code is enclosed below.
    PHP Code:
    drawTextRelative(-3lowp"________________________"Color.RGB(155,0,0), Color.RGB(255,255,255), Text.UNDERLINE"Arial"2,"textA"+rawtime(0));
    drawTextRelative(-3highp"_______________________"Color.RGB(155,0,0), Color.RGB(255,255,255), Text.UNDERLINE"Arial"2,"textB"+rawtime(0)); 
    You can replace rawtime(0) with a counter of your own or with the getCurrentBarCount() function or any other method that returns a unique value on every bar.
    Alex

    Comment


    • #3
      Alex

      As always your superior knowledge saves the day

      Thank you very much

      Regards

      Comment


      • #4
        Kobus
        You are most welcome
        Alex

        Comment

        Working...
        X