Announcement

Collapse
No announcement yet.

Fixing Vertical Scale(s)

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

  • Fixing Vertical Scale(s)

    Other than 'grabbing' the vertical axis and adjusting it manually, is there a way of setting it to a fixed scale which then scrolls up and down in order to keep the price plot within the chart window?

    If you fix it manually by grabbing and adjusting then the price dissapears out of the chart window when it reaches the top or bottom of the window and you have to grab the window and keep manually moving it to catch up with price - no good at all.

    How do I maintain a fixed scale on an autoscrolling window - both for price and any indicator in the price window with a scale plotted to the left of of the window?

  • #2
    dsn
    That option is not available at this time. If you would like to submit a suggestion send an email to [email protected] or click Customer Support-> Make a Suggestion in the main menu of eSignal
    Alex

    Comment


    • #3
      Here's a study that should help.

      If iReset is true, TRO_PLOT_ADJUST plots "invisible" squares at the highest high + iOffset and lowest low - iOffset for the last iPeriods.

      If iReset is false, TRO_PLOT_ADJUST plots "invisible" squares at the highest high + iOffset and lowest low - iOffset for entire chart length.

      The screen shot is of an extreme example so you can see it works.

      HANS has a 4:1 split and I am including the price BEFORE the split by using the last 100 bars on a 60 minute chart. You can see it keeps my lines within the viewing window.

      HTH ( hope this helps)


      PHP Code:
      /*********************************************************
      TRO_PLOT_ADJUST 20060722 PLOT TO KEEP OTHER PRICE PLOTS VISABLE

      **********************************************************/

      debugClear(); 

      function 
      preMain() {

          
      setPriceStudy(true);
          
      setStudyTitle("TRO_PLOT_ADJUST");

          
      setCursorLabelName("Plot_Hi"0);
       
          
      setCursorLabelName("Plot_Lo"1);

          
      setDefaultBarFgColor(Color.white,0);

          
      setDefaultBarFgColor(Color.white,1);

          
      setDefaultBarThickness(2,0); 
          
      setDefaultBarThickness(2,1); 

          
      setPlotType(PLOTTYPE_SQUARE ,0);
          
      setPlotType(PLOTTYPE_SQUARE ,1); 

      }
        
      var 
      xBars    =    ;  
      var 
      HH        =    ;  
      var 
      LL         =    999999999 ;  

      askForInput();


          var 
      iOffset = new FunctionParameter("iOffset"FunctionParameter.NUMBER);
          
      iOffset.setDefault.05 );

          var 
      iPeriods = new FunctionParameter("iPeriods"FunctionParameter.NUMBER);
          
      iPeriods.setDefault100 );

          var 
      iReset = new FunctionParameter("iReset"FunctionParameter.BOOLEAN);
          
      iReset.setDefaulttrue );


      function 
      mainiOffsetiPeriods iReset ) {

          if (
      close(-1)==null) return;
          

          if ( 
      iReset == true && xBars >= iPeriods ) {
              
      xBars    =    
                 
      HH =    ;  
                 
      LL =    999999999 ;  

          }


          if ( 
      high(0) > HH HH high(0) + iOffset ;
          if ( 
      low(0)  < LL LL low(0)  - iOffset ;
          

          if ( 
      isLastBarOnChart() == true ) { 
       
                
      //print a line of text to that window 

              
      debugPrint"HH:       " formatPriceNumberHH ) + "\n" );
                    
      debugPrint"LL:       " formatPriceNumberLL ) + "\n" );  

              
      debugPrint"iOffset:  " formatPriceNumberiOffset ) + "\n" );
                    
      debugPrint"iPeriods: " formatPriceNumber(iPeriods ) + "\n" );  
             } 


      return new Array( 
      HH LL  );
          

      Attached Files

      Comment


      • #4
        Thanks for that buzzhorton,

        I'll add that to some charts later this week and have a play around with it.

        Cheers

        Comment

        Working...
        X