Announcement

Collapse
No announcement yet.

2 boxes on one bar

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

  • 2 boxes on one bar

    I would like to display 2 boxes on one bar.
    What have i missed or got wrong.
    thanks
    Sam
    Attached Files
    sam

  • #2
    sam
    You are missing a tagID parameter that needs to be unique to each graphic object. See the enclosed revision of your code sample
    Alex

    PHP Code:
    function preMain() {
        
    setPriceStudy(true);
        
    }

    function 
    main(){

        
    drawTextRelative0AboveBar1"EE",  Color.whiteColor.red
                        
    Text.PRESET Text.BOLD Text.CENTER null 10,"boxA"+rawtime(0) );
                    
        
    drawTextRelative0AboveBar3"FF",  Color.whiteColor.green
                        
    Text.PRESET Text.BOLD Text.CENTER null ,10,"boxB"+rawtime(0) );
        

    Comment


    • #3
      thanks again Alex
      sam

      Comment

      Working...
      X