Announcement

Collapse
No announcement yet.

Possibly a Bug? $TRIN as second symbol in a 30S chart

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

  • Possibly a Bug? $TRIN as second symbol in a 30S chart

    Hi,

    When I plot $TRIN as a second symbol on a $ADD 30S chart it doesn't plot and in the Title Parameters the error message [disabled for tick chart] appears.

    If I plot $TRIN by itself on a 30S chart it plots fine.

    It seems that plotting or calculations in *.efs for close(0,sym("$TRIN,30S")) also works fine. I used a 3 day, 9:30-16:15 Time Template.

    See the efs below and the chart at:



    Also, is there a way to set a -No Scale- parameter in an EFS similar to when you plot two symbols with very different scales on a chart and under -Edit Studies- you select the -No Scale- for the secondary symbol allowing it to plot correctly in the chart?

    Thanks,
    Wayne

    PHP Code:
    debugClear();
    function 
    preMain() {
        
    setPriceStudy(false);
        
    setStudyTitle("test");
        
    setCursorLabelName("$ADD",0);
        
    setCursorLabelName("$TRIN",1);
        
    setShowTitleParameters (true); 
    }
    var 
    bInit false;
    var 
    myStudy0 null;
    var 
    myStudy1 null;
    var 
    xSymbol null;//not really needed
    var ySymbol null;//not really needed

    function main(){
        var 
    vADD;
        var 
    vTRIN;
        if ( 
    bInit == false ) { 
            
    setDefaultBarStylePS_SOLID); 
            
    setDefaultBarStylePS_DOT);
            
    setDefaultBarThickness2); 
            
    setDefaultBarThickness2); 
            
    setDefaultBarFgColorColor.blue); 
            
    setDefaultBarFgColorColor.black,); 
            
    bInit true
        } 
        
    ADD close(0,sym("$ADD,30S"));
        
    ADD ADD/1000;
        
    TRIN close(0,sym("$TRIN,30S"));

        return new Array (
    ADD,TRIN);

    Last edited by waynecd; 12-19-2008, 10:44 PM.

  • #2
    Re: Possibly a Bug? $TRIN as second symbol in a 30S chart

    waynecd

    When I plot $TRIN as a second symbol on a $ADD 30S chart it doesn't plot and in the Title Parameters the error message [disabled for tick chart] appears.
    As far as I know multiple symbol overlay and spreads are not available in tick-based charts
    Alex


    Originally posted by waynecd
    Hi,

    When I plot $TRIN as a second symbol on a $ADD 30S chart it doesn't plot and in the Title Parameters the error message [disabled for tick chart] appears.

    If I plot $TRIN by itself on a 30S chart it plots fine.

    It seems that plotting or calculations in *.efs for close(0,sym("$TRIN,30S")) also works fine. I used a 3 day, 9:30-16:15 Time Template.

    See the efs below and the chart at:



    Also, is there a way to set a -No Scale- parameter in an EFS similar to when you plot two symbols with very different scales on a chart and under -Edit Studies- you select the -No Scale- for the secondary symbol allowing it to plot correctly in the chart?

    Thanks,
    Wayne

    PHP Code:
    debugClear();
    function 
    preMain() {
        
    setPriceStudy(false);
        
    setStudyTitle("test");
        
    setCursorLabelName("$ADD",0);
        
    setCursorLabelName("$TRIN",1);
        
    setShowTitleParameters (true); 
    }
    var 
    bInit false;
    var 
    myStudy0 null;
    var 
    myStudy1 null;
    var 
    xSymbol null;//not really needed
    var ySymbol null;//not really needed
     
    function main(){
        var 
    vADD;
        var 
    vTRIN;
        if ( 
    bInit == false ) { 
            
    setDefaultBarStylePS_SOLID); 
            
    setDefaultBarStylePS_DOT);
            
    setDefaultBarThickness2); 
            
    setDefaultBarThickness2); 
            
    setDefaultBarFgColorColor.blue); 
            
    setDefaultBarFgColorColor.black,); 
            
    bInit true
        } 
        
    ADD close(0,sym("$ADD,30S"));
        
    ADD ADD/1000;
        
    TRIN close(0,sym("$TRIN,30S"));
     
        return new Array (
    ADD,TRIN);

    Comment


    • #3
      Alex,

      I see, thanks.

      Wayne

      Comment

      Working...
      X