Announcement

Collapse
No announcement yet.

GLOBEX and Pit Session question

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

  • GLOBEX and Pit Session question

    I am looking for a formula to highlight or differentiate bars for the day session using the all session for the Pound symbol 6b u4.

    Can anyone tell me if a similar formula is already written for this?

    Thanks!

  • #2
    JSSER4
    The enclosed efs will paint the bars of the RTH session (7:20-14:00 CST) in blue.
    If you are in a different time zone change the values 720 and 1400 with whatever is applicable
    Alex



    PHP Code:
    function preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("RTH session");
        
    setShowCursorLabel(false);
        
    setColorPriceBars(true);
        
    setDefaultPriceBarColor(Color.black);
          
    }
    function 
    main() {

        if((
    getHour()*100)+getMinute() >= 720 && (getHour()*100)+getMinute() <1400){
            
    setPriceBarColor(Color.blue)
        }

    return;

    Comment

    Working...
    X