Announcement

Collapse
No announcement yet.

Help Please?

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

  • Help Please?

    Hi,
    I am new to eSignal and this whole formula thing is all greek to me at this point..so i ll be very happy if you guys can help me out.

    Here is what i am looking for;

    (daily) if i have a 30ema crossup 50ema AND stoch 5,3,1 > 20
    for that bar i need a green arrow and "BUY" written next to
    the efs title.
    if i have a crossup but stoch is not >20 than no green arrow and
    "FLAT" written near efs title. or stoch obove 20 but no crosup..

    and the opposite; 30ema crossdown 50 ema and stoch <80
    red arrow and a "sell" written near the efs title, otherwise its "FLAT"

    and i need the whole thing for (5min) - all realtime...
    so i think i need 2 scripts for this..daily and 5min....


    can this be done?...i would appriciate any help...

    Thank you...

  • #2
    Do you want the STOCH to have been <20 and then >20. In other words do you want a STOCH crossing up signal on the same candle as the MA crossing.

    Comment


    • #3
      Hi, thanks for your reply...

      I dont need a stoch crossup or down signal..

      but stochs need to confirm ema crosses..(by being above 20 or below 80) that way it will give buy or sell signals...
      if ema and stochs dont confirm eachother...then it will display Flat
      for that time frame...5min or daily..

      Thank you....

      Comment


      • #4
        What you want to do can be done very easily with the formula wizard. Why don't you give it a try.

        Remember since you want a MA crossing you will need to compare the previous EMA values and the current EMA values. The previous EMA values are offset -1 from the current EMA values. This will make more sense once you try the wizard.

        If you can't do it let me know.
        Last edited by whatever; 04-05-2004, 03:43 AM.

        Comment


        • #5
          ok, I found a script and tried to change it....now I have 30x50ema
          with arrows..plus a ding sound..

          how do i combine it with stochs?
          how do i make it display FLAT ,BUY ,SELL near efs title?
          how do i make this .efs for daily only?
          how do i make arrows bigger, because i cant see them?

          oh gosh...
          Attached Files

          Comment


          • #6
            zipzipo
            The attached efs may do what you want or at least provide you with a starting point.
            The efs will draw up blue or down red arrows when the two MAs cross and the Stochastic is above 20 or under 80 respectively and grey up/down arrows on the other crosses. It will also write BUY, SELL or FLAT at the top and bottom of the chart in correspondance of those crosses.
            All parameters for the MAs and the Stochastic (including OB and OS thresholds) can be modified through Edit Studies. The efs can be used on any time frame.
            Hope this helps
            Alex

            Attached Files

            Comment


            • #7
              Thanks a million Alexis!!

              now i need to add another stoch into the mix....

              lets say..35,5,1
              How do i make that happen?

              only if stochs 5,3,1 and 35,5,1 (together)> or < 20,80
              at the same time , if we get a 30, 50ema cross up or down, it will give us buy or sell, else --> FLAT....

              and also, for example, lets say we had a ema crossup 5 bars ago
              but stochs were not ready..so it was a flat signal, but now(5 bars later) stochs go above 20 (ema crossup is till valid), it still displays flat..we should get a buy.
              How do i fix that?

              Thank you...

              Comment


              • #8
                Is this what you want.

                I just cut and pasted Alexis' work and made the appropriate changes.
                Attached Files

                Comment


                • #9
                  Whatever, thank you......

                  That did the trick.....

                  very happy now...


                  Thanks alot...

                  Comment


                  • #10
                    Alexis did all the work I just cut and pasted.

                    Comment


                    • #11
                      oh, guys i figured out something.....

                      now lets say we have a sell signal (arrow) at the begining of a candle. when the bar closes, situation changed and took away our sell signal. next bar will give a flat signal...
                      but instead of doing that can we delete that sell signal & arrow
                      if the bar closes with a different signal ..

                      instead of giving the signal at the begining of the candle, it will
                      give it at the close.....

                      ??

                      this way , it clears the "wrong signals"

                      Thank you....

                      Comment


                      • #12
                        Put "setComputeOnClose(true)" in "preMain()". Put it in at line 29 or so.

                        This will cause the script to only run when a candle closes.
                        Last edited by whatever; 04-06-2004, 11:32 AM.

                        Comment

                        Working...
                        X