Announcement

Collapse
No announcement yet.

Triple Screen Alert

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

  • Triple Screen Alert

    Hello Everybody,

    I wonder if one of you guys can help me tweak the attached efs to alert me when the MACD signal trend is up (TRUE) and up (FALSE). I believe it happens on line 55. There you will see the following code:

    if ( /* (vMACD_Hist >= vMACD_Hist_1) && (vMACD_Hist_1 >= vMACD_Hist_2)&&*/
    (vEMA > vEMA_1) && (vEMA_1 > vEMA_2) )
    TrendIsUp = true; else TrendIsUp = false;

    If someone could just show me how to rewrite that piece of code so that I'm alerted when TrendIsUP = true and when TrendIsUp = False.

    Cheers guys.

    Carlton
    Attached Files

  • #2
    Carlton
    I think the attached efs implements the revision you wanted.
    Alex
    Attached Files

    Comment


    • #3
      Alex,

      Cheers mate.

      Carlton

      Comment


      • #4
        Alex,

        I have just tested out the efs you tweaked for me, however, it doesn't appear to send any alerts when either one of the conditions are met.

        Uhmmm.....


        Carlton

        Comment


        • #5
          Carlton
          I did not add any alerts to the efs. I only changed the logic to give True/False based on the Signal line rather than the EMA.
          Alex

          Comment


          • #6
            Alex,

            While testing out the efs you tweaked for me I noticed that it didn't match an identical efs reprogrammed for me by an esignal programmer (I can't remember his name.) I have attached a snapshot showing the differences. You're efs is the one on top. You will notice at the cross-airs the box says the macd signal is "UP" However, the chart below says that the macd signal is "FALSE", which appears to be correct. I will attach the original efs written for me (which also includes alerts) Your thoughts would be greatly appreciated.


            Thanks

            Carlton
            Attached Files

            Comment


            • #7
              Alex,

              OK.

              Anyway, what are your thoughts on the differences? I have the efs.

              Cheers

              Carlton
              Attached Files

              Comment


              • #8
                Alex,

                Do you think you could assist me in adding code that will also highlight the bar when the macd signal is up "TRUE" and down "TRUE"?

                Thx.

                Carlton

                Comment


                • #9
                  Carlton

                  While testing out the efs you tweaked for me I noticed that it didn't match an identical efs reprogrammed for me by an esignal programmer (I can't remember his name.) I have attached a snapshot showing the differences. You're efs is the one on top. You will notice at the cross-airs the box says the macd signal is "UP" However, the chart below says that the macd signal is "FALSE", which appears to be correct. I will attach the original efs written for me (which also includes alerts) Your thoughts would be greatly appreciated

                  As i said in my prior message I changed the logic that defines the trend in light of your referencing the MACD Signal in your messages.
                  FYI in the original efs the trend signals are not defined by the MACD Signal but by a 13 period EMA.
                  To verify this run the attached efs which will plot that EMA on the price pane and will paint the EMA in blue if in uptrend, in magenta if in downtrend and in yellow if no trend (ie when both are showing "false").
                  In my version of the efs the trend is instead determined by the MACD Signal (ie the green line).

                  Alex

                  Alex
                  Attached Files

                  Comment


                  • #10
                    Carlton

                    Do you think you could assist me in adding code that will also highlight the bar when the macd signal is up "TRUE" and down "TRUE"?

                    Based on the explanation of the differences between the two efs what exactly do you want to use to define the trend? The EMA (as in the original efs) or the MACD Signal (as in my modified version)?

                    Alex

                    Comment


                    • #11
                      Alex,

                      I understand what you mean. I think I'm going to experiment with them both.

                      Is the trendtest.efs complete? Or is there a few more lines of code you need to add before I should use it on live data?

                      Thanks

                      Carlton

                      Comment


                      • #12
                        Alex,

                        I tried to add some code to your trendtest.efs to alert me when the ema changes to an uptrend, downtrend and no trend but I keep on getting a syntax error. I attempted to enter the following code, but no luck.

                        Alert.playSound("cashreg.wav");
                        Alert.addToList(getSymbol(),"Triple Screen - Long", Color.green, Color.black );


                        Thanks


                        Carlton

                        Comment


                        • #13
                          Carlton
                          #trendtest.efs was just to show you on what the True/False for Up/Down in ##nqlonger1_term.efs were based on.
                          As far as I can tell it should work in real time
                          Alex

                          Comment


                          • #14
                            Alex,

                            I understand.


                            Thanks for the explanation. I'm going work with both formulas.

                            Cheers


                            Carlton

                            Comment

                            Working...
                            X