Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EMA Crossover

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

    EMA Crossover

    Prints a triangle above or below a bar when 2 EMAs cross.
    An extra period for confirmation is configurable, this will introduce more lag though. The triangle will be drawn 2 periods ago from the time it is actually calculated if more confirmation is required, don't forget that when you look at past price action!

    Test it don't take my word for its accuracy.

    Edit: Triangles are drawn on the chart(thanks to Gumphrie's ModHeikenAshi), dragging is now impossible, added parameter for distance to bar
    Edit: v1.2 adjusted for intra bar calculation
    Edit: v1.3 colors save correctly now, thanks to Gumphrie again
    Edit: v1.4 NT 6.5, can be printed as a plot(1 above, -1 below) OR as triangles for indication, remember to move it to another panel if you go for the plot. Also added, MA type selection. Confirmation removed, it's bugged
    Edit: v1.44 Added choice to either plot or draw triangles
    Attached Files
    Last edited by Rollins; 01-06-2008, 08:10 AM.

    #2
    Hi Rollins,

    Thanks for the indicator it is very useful.

    I am trying to get it to show different colours in Market analyzer.

    The idea is I set up Maxover in several timeframes I want the maxover box in each time frame to be coloured depending if the cross is showing long or short trend.

    I have added maxover to market analyzer but I cant see how to set the conditions to make the colours change and I wondered if you knew how to ?

    Sorry if this is a bit garbled.

    Thanks
    IAn
    Attached Files
    Last edited by buderim; 12-12-2007, 07:10 PM. Reason: add pic

    Comment


      #3
      Thank you buts don't count.

      I've added a way how to achive this, but this one has been done on NT 6.5, if it doesn't work on 6.0 you're out of luck (at least if someone else isn't making the changes ).

      So here's how you get your desired results, set ShowPlot to true, the indicator should return 1 and -1 now.

      Would be probably easier to code a strategy if your system can be automated.
      My SignalBars indicator does something similar btw.

      Backtest the results, don't take my word for it.

      Comment


        #4
        Originally posted by Rollins View Post
        Thank you buts don't count.

        I've added a way how to achive this, but this one has been done on NT 6.5, if it doesn't work on 6.0 you're out of luck (at least if someone else isn't making the changes ).

        So here's how you get your desired results, set ShowPlot to true, the indicator should return 1 and -1 now.

        Would be probably easier to code a strategy if your system can be automated.
        My SignalBars indicator does something similar btw.

        Backtest the results, don't take my word for it.
        Thanks for the reply.

        I will give 6.5 a try.

        Ian

        Comment


          #5
          I've made the 1.4 version a little more efficient for the way you use it.
          If you use bar graphs on your market analyzer window, it will be even easier to spot which MA is leading, you need to set the max value to something around 1 though.

          A lot of indicators don't have problems on NT 6.0 when exported from 6.5.

          Imo 6.5 beta is already very mature and I like the improvements.
          Last edited by Rollins; 12-12-2007, 07:52 PM.

          Comment


            #6
            Originally posted by Rollins View Post
            I've made the 1.4 version a little more efficient for the way you use it.
            If you use bar graphs on your market analyzer window, it will be even easier to spot which MA is leading, you need to set the max value to something around 1 though.

            A lot of indicators don't have problems on NT 6.0 when exported from 6.5.

            Imo 6.5 beta is already very mature and I like the improvements.
            Hi Rollins,

            I really appreciate you making this work .

            I have loaded it on 6.5 and it works great.

            Many Thanks

            Ian

            Comment


              #7
              Glad that it works for you.

              I've removed the confirmation part, it's bugged and didn't add something(prepare to be whipsawed ).

              Also mistakenly set CalculateOnBarClose to false, my bad.

              I've also switched the -1 and 1, should be indicating uptrend with 1 and not -1.
              Last edited by Rollins; 12-12-2007, 09:34 PM.

              Comment


                #8
                Which Version

                Rollins,

                Thank you for the indicator. I will try it with 6.5. Is the correct version to download 1.43 for 6.5?

                Art

                Comment


                  #9
                  Yep Art, 1.43's been done on 6.5.
                  Last edited by Rollins; 12-13-2007, 07:26 PM.

                  Comment


                    #10
                    Hi Rollins,

                    the Ma crossover is working well in market analyzer.

                    I have been trying to edit the code so I can set one of the moving average parameters to use the bar open price rather than the usual close price.

                    I am unable to see where I can change it, any clues would be appreciated.

                    Thanks
                    Ian

                    Comment


                      #11
                      Hi Ian,

                      Code:
                                  PriceTypeSupported    = false;
                                  Add(new Plot(Color.FromKnownColor(KnownColor.Lime), PlotStyle.Line, "XOver"));
                                  maSlow = MAV( Input, SlowPeriod, (int)SlowMAType );
                                  maFast = MAV( Input, FastPeriod, (int)FastMAType );
                      either change:

                      Code:
                      PriceTypeSupported = true;
                      but this will affect both Input series

                      or

                      Code:
                                  maSlow = MAV( Input, SlowPeriod, (int)SlowMAType );
                                  maFast = MAV( Open, FastPeriod, (int)FastMAType );
                      Of course you could also use a combination of both

                      Cheers
                      Last edited by Rollins; 12-28-2007, 02:32 AM.

                      Comment


                        #12
                        Originally posted by Rollins View Post
                        Hi Ian,

                        Code:
                                    PriceTypeSupported    = false;
                                    Add(new Plot(Color.FromKnownColor(KnownColor.Lime), PlotStyle.Line, "XOver"));
                                    maSlow = MAV( Input, SlowPeriod, (int)SlowMAType );
                                    maFast = MAV( Input, FastPeriod, (int)FastMAType );
                        either change:

                        Code:
                        PriceTypeSupported = true;
                        but this will affect both Input series

                        or

                        Code:
                                    maSlow = MAV( Input, SlowPeriod, (int)SlowMAType );
                                    maFast = MAV( Open, FastPeriod, (int)FastMAType );
                        Of course you could also use a combination of both

                        Cheers
                        Thanks for that,

                        I made the change and it works

                        Cheers
                        IAn

                        Comment


                          #13
                          Thanks for the indicator.
                          I've noticed that if you set a wide right side margin (for whatever reason) the indicator does not indent with the margin setting...causing the arrows not to line up with the crossovers. Is there any way to have the indicator adjust to whatever right side margin someone might want to set?
                          So things will line up.

                          Thanks

                          Comment


                            #14
                            Dwalls, sorry for the bug. Unfortunately I am no longer using this indicator and have got a lot of things to do, that's why I have no intention to fix it. Maybe someone else will make the necessary changes.

                            Comment


                              #15
                              I've added the option to chose between plotting and drawing the triangles. Set DrawObjects to true and see if it fixes your issue. I haven't been able to replicate the bug but did a bit of testing, unfortunately I can't dedicate more time to this.
                              Please post if this fixes your bug or not.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              648 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              369 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              108 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              572 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              574 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X