• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TriggerLines

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

    TriggerLines

    This is an indicator that plots two lines, one is based on a Linear Regression and the other is an EMA on that Linear Regression. When the two lines cross they change colour.

    Any comments or strategy suggestions welcome.



    To import:

    - Download the file contained in this thread to your desktop
    - From the Control Center window select the menu File > Utilities > Import NinjaScript
    - Select the downloaded file
    Attached Files

    #2
    Hi Gumprie,

    thanks for the trigger lines , I find them very useful, is there any way to color the gab in between the 2 lines ?

    cheers
    Ian

    Comment


      #3
      Originally posted by buderim View Post
      Hi Gumprie,

      thanks for the trigger lines , I find them very useful, is there any way to color the gab in between the 2 lines ?

      cheers
      Ian

      You're welcome. Yes, should be posiible to add fill colours, do you want alternate colours the same as the plot, or do you want to be able to customize them?

      Comment


        #4
        Hi ,

        I was hoping to have a pale color so I could still see the candles
        a bit like it is on the macdbblines indicator.

        cheers
        Ian

        Originally posted by Gumphrie View Post
        You're welcome. Yes, should be posiible to add fill colours, do you want alternate colours the same as the plot, or do you want to be able to customize them?

        Comment


          #5
          trigger line question

          Hello,

          How do you utilize these trigger lines in your daily trading?

          Strickly for trend? Or ..... ??

          thanks

          Colin

          Comment


            #6
            I agree with prostyle! This looks good and would fair well with some treaking in a strategy. Do you know how that code would look? (When Linear Regression crosses the EMA of the linear regression??)

            Comment


              #7
              I don't have any strategy code I can offer, but am open to suggestions.

              Uses I have tried are as a trend indicator within a strategy or possibly you could try multiple different valued trigger lines in a dedicated strategy.

              Comment


                #8
                Originally posted by Gumphrie View Post
                I don't have any strategy code I can offer, but am open to suggestions.

                Uses I have tried are as a trend indicator within a strategy or possibly you could try multiple different valued trigger lines in a dedicated strategy.
                I have an idea how to translate this into a profitable strat biut lack the programming skills to get much further which is a pain

                Cheers

                Comment


                  #9
                  Gumphrie,
                  Thanks for the indicator.
                  I was wondering if you would please modify this indicator to use two SMA lines or (a maybe a choice of two SMA or EMA lines) and also have a choice on each of the two lines to use either the Close or Open.
                  Example: One line would be the 20 SMA of the close and the other line would be the 20 SMA of the open...and change colors when they cross.
                  Thanks

                  Comment


                    #10
                    Hi Dwalls,

                    Look at the first two lines of the OnBarUpdate code, that pretty much decides how the values are calculated. For example, you could just change the EMA to an SMA and change the base Input to Open or Close.

                    Not sure how I would add this as a feature as you don't mention how to deal with the LinReg and why this is a good idea?

                    Comment


                      #11
                      Thanks for your help Gumphrie...got it.

                      Will you please look at my post under "Indicators" called...Time histogram for tic, volume or range charts.....from today and see if its doable.

                      Thanks

                      Comment


                        #12
                        Gumphrie,

                        Thank you for this indicator. I have put it to use over on this thread.

                        Comment


                          #13
                          A Favor to Ask

                          Gumphrie

                          I have a favor to ask, without sounding like a code *****, is it possiable to have this indicator created as a ELD? I know this is for tradestation but I am unable to send a private message and ask.

                          Thanks in advance

                          Comment


                            #14
                            Originally posted by suburban View Post
                            I have a favor to ask, without sounding like a code *****, is it possiable to have this indicator created as a ELD? I know this is for tradestation but I am unable to send a private message and ask.
                            Sorry, don't run Tradestation, I could probably translate an indicator from Tradestation but not to Tradestation.

                            Comment


                              #15
                              Thank You!

                              Nice indicator...similar to big dollar out there.

                              This is the nice thing about forums and the generosity of experienced script developers out there....enabling many to share from the efforts of one. I only hope I repay in kind with the skills I have to others. Thank you for your generosity.

                              Nicely done!

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by wavestrader, Today, 06:02 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post wavestrader  
                              Started by PN720, Today, 06:02 PM
                              1 response
                              5 views
                              0 likes
                              Last Post PN720
                              by PN720
                               
                              Started by alexstox, Today, 03:29 PM
                              0 responses
                              7 views
                              0 likes
                              Last Post alexstox  
                              Started by aligator, Today, 12:29 PM
                              10 responses
                              71 views
                              0 likes
                              Last Post rafleischman  
                              Started by Trader17, Yesterday, 03:03 PM
                              3 responses
                              29 views
                              0 likes
                              Last Post Trader17  
                              Working...
                              X