Announcement

Collapse
No announcement yet.

FVE_Katsanos wedded to Jurik MA

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

  • #16
    A line one error might mean you did not cut and past the "/" before the *.

    look at the code and make sure line 1 has "/*****" etc...

    The other error is due to the fact I left out a ","

    Old code;
    var vJMA1, vJMA2, vJMA3 vJMA4v vJMA5;

    New Code
    var vJMA1, vJMA2, vJMA3, vJMA4v, vJMA5;

    The same problem exists in the other code also;

    Old code;
    var vJMA1, vJMA2, vJMA3 vJMA4;

    New code;
    var vJMA1, vJMA2, vJMA3, vJMA4;

    Hope this fixes it

    Comment


    • #17
      Wow! I got it working (with your help).

      It really looks nice, much better than the last .efs study. I will have to play with it to find the best setting of smoothness and low lag.

      Thanks again for the help. Here is a copy if anyone wants it.

      Best,

      Neil
      Attached Files

      Comment


      • #18
        hi Neil

        Thanks for all your hard work on this EFS and posting the finished version.
        Mark

        Comment


        • #19
          Glad I could share...and really glad I just was able to get it working.

          Without "whatevers" postings and help this thread would be still near the beginning we me being bummed out like I was....

          Tomorrow will be interesting during market hours. Although my trading is not super short term I should be able to know within a couple of days how the indicator works out. I have it on four charts right now.

          Best to all...

          Neil

          Comment


          • #20
            Hi Skylor

            I was gone this last week and just downloaded the JMA5whatever indicator in this thread but it will not work, does yours work fine, maybe you could repost the finished version again.
            Thanks for your help.
            Mark

            Comment


            • #21
              whats its supposed to look like? All I get is a red line that goes flat up and down from time to time. Ill show you. Its the indicator at the very bottom.

              Vince B
              Attached Files

              Comment


              • #22
                I have the same problem. Any help appreciated. TIA

                Comment


                • #23
                  It looks like it is working correctly. If the price does not move a defined amount then the indicator will not move. Try changing the "Factor" setting to a lower value.

                  Comment


                  • #24
                    Originally posted by Bubby
                    whats its supposed to look like? All I get is a red line that goes flat up and down from time to time. Ill show you. Its the indicator at the very bottom.

                    Vince B
                    Hmmmmmmmm......not sure what the problem is on your setup. Could it be you are trading a very short time frame?

                    Try throwing up the QQQQ on a daily chart and see how that works with the indicator.

                    I trade anywhere from the 120m to Daily chart. The results are impressive over here and visually very different than your result.

                    Let us know how it works out.

                    Neil

                    Comment


                    • #25
                      Originally posted by whatever
                      It looks like it is working correctly. If the price does not move a defined amount then the indicator will not move. Try changing the "Factor" setting to a lower value.
                      Hi What,

                      Not sure which one is the "factor". (my indicator is working fine, but I like to understand as much as possible)

                      I have the following parameters...

                      "Period", "JMA length", "JMA Phase", "JMA V Length", "JMA V Phase", "% of Close".

                      Thanks,

                      Neil

                      Comment


                      • #26
                        Sorry, "% of Close", Factor is the variable that represents "% of Close".

                        Your right. If the indicator is placed on a lower time compression the "% of Close" value should be lowered or the price does not move enough and the indicator will show a flat line.

                        Comment


                        • #27
                          thanks. ill play with it and see what happens.

                          Comment


                          • #28
                            I found this and I thought I might share it because it is called "FVE Katsanos Correct JMA". DOn't remember what that means. LOL

                            function preMain(){
                            setStudyTitle("Finite Volume Elements JMA");
                            setCursorLabelName("FVI",0);
                            setDefaultBarFgColor(Color.red,0);
                            setComputeOnClose(true);

                            var fp1 = new FunctionParameter("Period", FunctionParameter.NUMBER);
                            fp1.setName("Period");
                            fp1.setLowerLimit(2);
                            fp1.setDefault(22);

                            var fp2 = new FunctionParameter("J1L", FunctionParameter.NUMBER);
                            fp2.setName("JMA Length");
                            fp2.setLowerLimit(2);
                            fp2.setDefault(7);

                            var fp3 = new FunctionParameter("J1P", FunctionParameter.NUMBER);
                            fp3.setName("JMA Phase");
                            fp3.setLowerLimit(-100);
                            fp3.setUpperLimit(100);
                            fp3.setDefault(50);

                            }


                            VolumePlusMinusArray = new Array();

                            function main(Period, J1L, J1P){

                            var MF = 0, FveFactor = 0, VolSum = 0, VolumePlusMinus = 0, FVE = 0, Fvesum=0;

                            var vJC = null;
                            var vJH = null;
                            var vJL = null;

                            if (vJC == null) vJC = new JurikJMAStudy(J1L, J1P, 0, "Close");
                            if (vJH == null) vJH = new JurikJMAStudy(J1L, J1P, 0, "High");
                            if (vJL == null) vJL = new JurikJMAStudy(J1L, J1P, 0, "Low");

                            MF = vJC.getValue(JurikJMAStudy.JMA, 0) - (vJH.getValue(JurikJMAStudy.JMA, 0) + vJL.getValue(JurikJMAStudy.JMA, 0)) / 2 + (vJH.getValue(JurikJMAStudy.JMA, 0) + vJL.getValue(JurikJMAStudy.JMA, 0) + vJC.getValue(JurikJMAStudy.JMA, 0)) / 3 - (vJH.getValue(JurikJMAStudy.JMA, -1) + vJL.getValue(JurikJMAStudy.JMA, -1) + vJC.getValue(JurikJMAStudy.JMA, -1)) / 3;

                            if(MF > .3 * vJC.getValue(JurikJMAStudy.JMA, 0) / 100)
                            FveFactor = 1;
                            else if(MF < -.3 * vJC.getValue(JurikJMAStudy.JMA, 0) / 100)
                            FveFactor = - 1;
                            else
                            FveFactor = 0;


                            VolumePlusMinus = volume() * FveFactor;
                            for(i = Period - 1; i > 0; i--)
                            VolumePlusMinusArray[i] = VolumePlusMinusArray[i - 1];
                            VolumePlusMinusArray[0] = VolumePlusMinus;
                            for(i = 0; i < Period; i++){
                            Fvesum += VolumePlusMinusArray[i];
                            VolSum += volume(-i);
                            }

                            if(VolumePlusMinusArray[Period - 1] != null){
                            FVE = (Fvesum / VolSum) * 100;
                            return FVE;
                            return null;
                            }

                            }

                            Comment


                            • #29
                              FVE_Katsanos script

                              Can the current bar in this script be updated in realtime? When trying to remove 'setComputeOnClose(true)', the script updates realtime, but the incremental change is so significant to where the reading becomes meaningless.

                              Thanks!

                              /*---FVE Indicator smoothed with JurikJMA---*/
                              var vJC = null;
                              var vJH = null;
                              var vJL = null;

                              function preMain(){
                              setPriceStudy(false);
                              setStudyTitle("Finite Volume Elements JMA");
                              setCursorLabelName("FVI",0);
                              setDefaultBarThickness(2,0);
                              setPlotType(PLOTTYPE_HISTOGRAM,0);
                              addBand(0, PS_SOLID, 1, Color.grey, "Zero");
                              setShowTitleParameters( false );
                              setComputeOnClose(true);

                              var fp1 = new FunctionParameter("Period", FunctionParameter.NUMBER);
                              fp1.setName("Period");
                              fp1.setLowerLimit(2);
                              fp1.setDefault(20);

                              var fp2 = new FunctionParameter("J1L", FunctionParameter.NUMBER);
                              fp2.setName("JMA Length");
                              fp2.setLowerLimit(2);
                              fp2.setDefault(8);

                              var fp3 = new FunctionParameter("J1P", FunctionParameter.NUMBER);
                              fp3.setName("JMA Phase");
                              fp3.setLowerLimit(-100);
                              fp3.setUpperLimit(100);
                              fp3.setDefault(50);

                              var fp4 = new FunctionParameter("Factor", FunctionParameter.NUMBER);
                              fp4.setName("% Value");
                              fp4.setLowerLimit(-10);
                              fp4.setUpperLimit(10);
                              fp4.setDefault(0.1);
                              }
                              VolumePlusMinusArray = new Array();

                              function main(Period, J1L, J1P, Factor){

                              var MF = 0, FveFactor = 0, VolSum = 0, VolumePlusMinus = 0, FVE = 0, Fvesum=0;

                              if (vJC == null) vJC = new JurikJMAStudy(J1L, J1P, 0, "Close");
                              if (vJH == null) vJH = new JurikJMAStudy(J1L, J1P, 0, "High");
                              if (vJL == null) vJL = new JurikJMAStudy(J1L, J1P, 0, "Low");

                              MF = (vJC.getValue(JurikJMAStudy.JMA,0) - (vJH.getValue(JurikJMAStudy.JMA,0) + vJL.getValue(JurikJMAStudy.JMA,0)) / 2 + ((vJH.getValue(JurikJMAStudy.JMA,0) + vJL.getValue(JurikJMAStudy.JMA,0) + vJC.getValue(JurikJMAStudy.JMA,0)) / 3) - ((vJH.getValue(JurikJMAStudy.JMA,-1) + vJL.getValue(JurikJMAStudy.JMA,-1) + vJC.getValue(JurikJMAStudy.JMA,-1)) / 3));

                              if(MF > Factor * vJC.getValue(JurikJMAStudy.JMA, 0)/10000){
                              FveFactor = 1;
                              setDefaultBarFgColor(Color.green,0);
                              setDefaultBarFgColor(Color.green,1);
                              setPriceBarColor(Color.green);
                              }
                              else if(MF < -Factor * vJC.getValue(JurikJMAStudy.JMA, 0)/10000){
                              FveFactor = - 1;
                              setDefaultBarFgColor(Color.red,0);
                              setDefaultBarFgColor(Color.red,1);
                              setPriceBarColor(Color.red);
                              }
                              else {
                              FveFactor = 0;
                              setDefaultBarFgColor(Color.yellow,0);
                              setPriceBarColor(Color.yellow);
                              }
                              VolumePlusMinus = (volume() * FveFactor);
                              for(i = Period - 1; i > 0; i--)
                              VolumePlusMinusArray[i] = (VolumePlusMinusArray[i - 1]);
                              VolumePlusMinusArray[0] = (VolumePlusMinus);
                              for(i = 0; i < Period; i++){
                              Fvesum += (VolumePlusMinusArray[i]);
                              VolSum += (volume(-i));
                              }
                              if(VolumePlusMinusArray[Period - 1] != null){
                              FVE = ((Fvesum / VolSum) * 100);
                              }
                              return new Array (FVE, FVE);
                              }
                              Attached Files
                              --FOREX--

                              Comment


                              • #30
                                can you insert chart better with the FVE jma
                                Thanks

                                Comment

                                Working...
                                X