Announcement

Collapse
No announcement yet.

Looking for EFS that plots price pivot labels

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

  • Looking for EFS that plots price pivot labels

    New to eSignal, can't find a EFS that will plot Higher Highs and Lower Lows... can anyone please point me in the right direction? Thanks in advance.

  • #2
    Here's an example of what I'm looking for .... to plot the HH and LH, etc.. on the chart .. can anyone help please?
    Attached Files

    Comment


    • #3
      Hi there,

      Here is what you are looking for. Created it specially for you, quite simple but helpful

      PHP Code:

      var fpArray = new Array();
      var 
      bInit false;

      function 
      preMain() {

          
      setPriceStudy(true);
          
      setShowCursorLabel(false);
          
      setShowTitleParametersfalse );
          
          
      setStudyTitle("HH, LL, HL, LH");

          
          
      askForInput();
          var 
      x=0;

          
      fpArray[x] = new FunctionParameter("FontColor"FunctionParameter.COLOR);
          
      with(fpArray[x++]){
              
      setName("Font Color");
              
      setDefault(Color.green);
          }    

          
      fpArray[x] = new FunctionParameter("FontSize"FunctionParameter.NUMBER);
          
      with(fpArray[x++]){
              
      setName("Font Size");
              
      setDefault(10);
          }    

        
          
      fpArray[x] = new FunctionParameter("Length"FunctionParameter.NUMBER);
          
      with(fpArray[x++]){
              
      setLowerLimit(1);        
              
      setDefault(50);
          }


      }

      var 
      Counter 0;

      function 
      main(LengthFontSizeFontColor) {
      var 
      nState getBarState();
      var 
      nCurrent Counter;


          if ( 
      bInit == false ) { 
              
      ClearChart();
              
      bInit true
          } 

          if (
      getNumBars() <= Length) return;

          if (
      nState == BARSTATE_ALLBARS) {
              
      ClearChart();
          }    

          if (
      nState == BARSTATE_NEWBAR) {
              
      Counter++;
              
      nCurrent Counter;
          } 

          
      my_HH(LengthnCurrentFontSizeFontColor);
          
      my_HL(LengthnCurrentFontSizeFontColor);            
          
      my_LL(LengthnCurrentFontSizeFontColor);
          
      my_LH(LengthnCurrentFontSizeFontColor);


          return  ;

      }


      function 
      my_HH(nBarAgonCurrentFontSizeFontColor){
      var 
      nRes high(0);
      var 
      nBarIndex 0;
          for (var 
      0nBarAgoi++) {
              if (
      nRes <= high(-i)) {
                  
      nBarIndex i;
              } 
          }
          if (
      nBarIndex == 0drawTextRelative0nRes 0.01"H H"FontColornullText.BOTTOM Text.CENTER"Times New Roman"FontSize"HH" nCurrent); 
          if (
      nBarIndex != 0drawTextRelative0nRes  0.01" "FontColornull,  Text.BOTTOM |Text.CENTER"Times New Roman"FontSize"HH" nCurrent); 
          return;
      }

      function 
      my_HL(nBarAgonCurrentFontSizeFontColor){
      var 
      nRes low(0);
      var 
      nBarIndex 0;
          for (var 
      0nBarAgoi++) {
              if (
      nRes <= low(-i)) {
                  
      nBarIndex i;
              } 
          }
          if (
      nBarIndex == 0drawTextRelative0nRes  0.01"H L"FontColornullText.ONTOP Text.CENTER"Times New Roman"FontSize"HL" nCurrent); 
          if (
      nBarIndex != 0drawTextRelative0nRes  0.01" "FontColornullText.ONTOP Text.CENTER"Times New Roman"FontSize"HL" nCurrent); 
          return;
      }


      function 
      my_LL(nBarAgonCurrentFontSizeFontColor){
      var 
      nRes low(0);
      var 
      nBarIndex 0;
          for (var 
      0nBarAgoi++) {
              if (
      nRes >= low(-i)) {
                  
      nBarIndex i;
              }    
          }

          if (
      nBarIndex == 0drawTextRelative0nRes  0.01"LL"FontColornullText.ONTOP Text.CENTER"Times New Roman"FontSize"LL" nCurrent); 
          if (
      nBarIndex != 0drawTextRelative0nRes  0.01" "FontColornullText.ONTOP Text.CENTER"Times New Roman"FontSize"LL" nCurrent); 
          return;
      }

      function 
      my_LH(nBarAgonCurrentFontSizeFontColor){
      var 
      nRes high(0);
      var 
      nBarIndex 0;
          for (var 
      0nBarAgoi++) {
              if (
      nRes >= high(-i)) {
                  
      nBarIndex i;
              }    
          }
          if (
      nBarIndex == 0drawTextRelative0nRes  0.01"LH"FontColornullText.BOTTOM Text.CENTER"Times New Roman"FontSize"LH" nCurrent); 
          if (
      nBarIndex != 0drawTextRelative0nRes  0.01" "FontColornullText.BOTTOM Text.CENTER"Times New Roman"FontSize"LH" nCurrent); 
          return;
      }



      function 
      ClearChart(){
          
      debugClear();
          
      clearText();   
          return;

      Attached Files

      Comment

      Working...
      X