Announcement

Collapse
No announcement yet.

Help with PP removals

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

  • Help with PP removals

    I've modified a Pivot Point study (attached) and its fine so far BUT I would like some of the things I've removed not to show in the display window.

    Any help would be appreciated.

    Bruce

    P.S. I tried to remove vLastArray reference to them but I didn't work.

    P.S. I'd really like to add the text of R1, R2, etc and S1, S2 etc. to the right of it but I couldn't figure that out either.
    Attached Files
    Last edited by InvGrp2; 02-24-2007, 06:31 PM.

  • #2
    Bruce
    You need to remove the items you do not want from the section of code shown below (lines 287-289 in your script)
    Alex

    PHP Code:
    vLastArray = new Array(vLastPPR5vLastPPM5vLastPPR4vLastPPM4vLastPPR3vLastPPM3vLastPPR2,
    vLastPPM2vLastPPR1vLastPPM1vLastPPvLastPPmm1vLastPPS1vLastPPmm2vLastPPS2vLastPPmm3vLastPPS3,
    vLastPPmm4vLastPPS4vLastPPmm5vLastPPS5); 

    Comment


    • #3
      Sorry, I messed up please disregard the prior post.

      I've // out lines 201-210 but all the items still show up.

      Bruce

      if(vReset == true) {
      vLastRawTime = null;
      vLastArray = null;
      var vLastPP = null;
      var vLastPPR1 = null;
      var vLastPPR2 = null;
      var vLastPPR3 = null;
      var vLastPPR4 = null;
      var vLastPPR5 = null;
      var vLastPPS1 = null;
      var vLastPPS2 = null;
      var vLastPPS3 = null;
      var vLastPPS4 = null;
      var vLastPPS5 = null;
      //var vLastPPM1 = null;
      //var vLastPPM2 = null;
      //var vLastPPM3 = null;
      //var vLastPPM4 = null;
      //var vLastPPM5 = null;
      //var vLastPPmm1 = null;
      //var vLastPPmm2 = null;
      //var vLastPPmm3 = null;
      //var vLastPPmm4 = null;
      //var vLastPPmm5 = null;
      vInterval = getInterval();
      vSymbol = getSymbol();
      vSymbol += ",D";
      vReset = false;
      Last edited by InvGrp2; 02-24-2007, 07:00 PM.

      Comment


      • #4
        Bruce
        After you removed from lines 287-289 the items you do not want to plot (see my prior reply) then you need to change all the statements in preMain to reflect the modified return array
        In lines 20-145 you will need to do as indicated in the comments included in the following snippet of code
        PHP Code:
        setCursorLabelName("PP-R5"0);
         
        //setCursorLabelName("PP-M5+", 1);//rem this out
         
        setCursorLabelName("PP-R4"2);//change this to setCursorLabelName("PP-R4", 1);
         //setCursorLabelName("PP-M4+", 3);//rem this out
         
        setCursorLabelName("PP-R3"5);//change this to setCursorLabelName("PP-R3", 2);
         //setCursorLabelName("PP-M3+", 5);//rem this out etc etc 
         
        setCursorLabelName("PP-R2"6);//change this to setCursorLabelName("PP-R2", 3);//
         //repeat for all the remaining items up to line 40

        //then from line 42
        //R5 is a red line
            
        setDefaultBarStyle(PS_SOLID0);
            
        setDefaultBarFgColor(Color.RGB(255,0,0), 0);
            
        setDefaultBarThickness(50);

            
        //M5 is a dashed skyblue line
            //setDefaultBarStyle(PS_DASH, 1);//rem this out 
            //setDefaultBarFgColor(Color.RGB(255,0,0), 1);//rem this out 
            //setDefaultBarThickness(1, 1);//rem this out 

            //R4 is an red line
            
        setDefaultBarStyle(PS_SOLID2);//change this to setDefaultBarStyle(PS_SOLID, 1);
            
        setDefaultBarFgColor(Color.RGB(255,0,0), 2);//change this to setDefaultBarFgColor(Color.RGB(255,0,0), 1);
            
        setDefaultBarThickness(42);//change this to setDefaultBarThickness(4, 1);
            //repeat for all the remaining items up to line 145 
        These changes are required so that the labels in the Cursor Window, the colors, plot types, etc are matched to the appropriate element of the array returned by the script.
        Alex

        Comment


        • #5
          Alex:

          With you help I was able to fix it.

          Thanks.

          Bruce

          P.S. Here is a copy if anyone would like it.
          Attached Files

          Comment


          • #6
            Bruce
            You are most welcome
            Alex

            Comment

            Working...
            X