Announcement

Collapse
No announcement yet.

Combi JMA and EMA Study

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

  • Combi JMA and EMA Study

    Hope, that some can give me some help.
    I want to combine the two attached studies as one crossover strategy.

    At this, bars should occur lime and strategy should go long if both have a crossing up. Vice a verca bars should occur red and strategy should go short if both have a crossing down. Other Bars (neutral) should occur blue.

    Would be great to receive a solution, cause i failed several times by trying this.

    Thanks in advance

    Chris

  • #2
    Ups, here are the strategies
    Sorry !
    Attached Files
    Last edited by Goodluck; 01-08-2004, 06:09 PM.

    Comment


    • #3
      Sorry, was only one attachment. Here's the 2nd.....
      Attached Files

      Comment


      • #4
        Chris
        Try the attached. I am not sure if it works as I cannot test it not having the Jurik studies
        Alex
        Attached Files

        Comment


        • #5
          Alex,

          first let me say cordial thanks for your superfast reply !

          Unfortunately it doesn't work. Only the EMA's occur on the chart without setting the bars to colour. Maybe you can have a second look to this, cause i have some problems by coding efs.

          Additionally i have a problem with the formula wizard. Every time i start the wizard, an alert code is fixed in it and i can't delete it, cause the code occurs in the "Generated EFS Code" field.
          Do you have an idea how i can get this out of the wizard ?

          Thank you very much for your help !!!!

          Chris

          Comment


          • #6
            Chris
            There was an error in my code and I think the attached revision should take care of it
            Let me know
            Alex
            Attached Files

            Comment


            • #7
              Alex,

              thank's again for your immediate reply !!!
              But only the EMA's and JMA's occur on the barchart.
              The bars don't change the colour. It is not necessary that the MA's occur, only the colour of the bars should change the colour for long (lime), short (red) and neutral (blue).
              I hope you can have again a look to this.

              Another problem on the EMA basic formula are the alerts. I created that formula with the formula wizard, but as i described before, i have the alert as a standard in the wizard and i couldn't delete them.
              I don't want to have the alerts, so maybe if you can delete the alerts in your formula it would be easier to combine this formulas.

              Perhaps you also can give me an information how i can put the alerts out of the wizard.

              Would be nice to hear from you.

              Nice weekend !

              Chris
              Last edited by Goodluck; 01-09-2004, 03:02 PM.

              Comment


              • #8
                Chris
                Have you tried commenting out the line if (getCurrentBarIndex() == 0) { and its corresponding }?
                It seems that this condition limits all other conditions to the last bar only.
                Perhaps someone else may want to look at this
                As to the alerts you can simply comment them out
                Alex

                Comment


                • #9
                  Alex,

                  great, it seems that it works. I have to check it next week and I will let you know.

                  !! Cordial thanks for your good job and your patience !!

                  One question left, related to the wizard.
                  By creating new formulas i receive each time a formula with alerts, which i only can delete in the editor. Is this now generally on ES7.5 or do i have a problem with the wizard ?

                  Thanks

                  Chris

                  Comment


                  • #10
                    Chris
                    It is possible that you may have to add that statement back so as not to trigger trades other than on the last bar. If that is the case then you will probably have to rearrange the logic so that it does not affect the bar painting.
                    As to your second question can you post an efs created with the Wizard that has this problem.
                    Alex

                    Comment


                    • #11
                      Alex,

                      Combination is working fine !

                      I have attached the revised formula. Now iam going to try to cut off the EMA's and MA's in the chart and the paper trade with the long/short instructions in the formula to make chart and formula more simply. I'll take this formula as basic, when trying to combinate 2 formulas ( in the future.

                      About my 2nd question: i'm sorry, i had a look to the wizard again and think all is ok. It probably was too late that night (about 2-3 a.m. and half asleep ?) when i had a look to this.
                      Sorry for that !!!!!!

                      Again i would like to repeat, how much i appreciated your assistance. Cordial thanks for that.
                      Chris

                      Comment


                      • #12
                        Here's the efs :
                        Attached Files

                        Comment

                        Working...
                        X