PDA

View Full Version : TriggerLines


Gumphrie
08-12-2007, 04:47 PM
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.

http://www.acuclick.net/TriggerLines.jpg

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

buderim
08-22-2007, 12:20 AM
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

Gumphrie
08-22-2007, 03:52 AM
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?

buderim
08-22-2007, 04:00 AM
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

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?

prostyle
09-26-2007, 11:40 AM
Hello,

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

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

thanks

Colin

edgeliner
12-27-2007, 02:24 PM
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??)

Gumphrie
12-27-2007, 02:43 PM
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.

Bogan7
01-16-2008, 12:26 AM
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

dwalls
01-16-2008, 05:28 PM
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

Gumphrie
01-16-2008, 06:42 PM
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?

dwalls
01-16-2008, 06:56 PM
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

ctrlbrk
12-03-2008, 11:38 PM
Gumphrie,

Thank you for this indicator. I have put it to use over on this thread (http://www.ninjatrader-support2.com/vb/showthread.php?p=64949#post64949).

suburban
01-14-2009, 10:54 PM
Gumphrie

I have a favor to ask, without sounding like a code whore, 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

Gumphrie
01-15-2009, 05:59 AM
I have a favor to ask, without sounding like a code whore, 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.

mjpierce1
01-15-2009, 08:06 AM
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!

suburban
01-15-2009, 09:21 AM
Gumphrie

Thanks so much for your quick reply. Well, I think then I need to rollup my sleeves on this one. :) Can you help me with how the forumula was created? I understand how one of the lines is genreated, basically LenReg(20) however the second line stumps me. It looks like its a EMA with the value of LenReg(20) with a 8 TriAvg. What is the TriAvg?

Thanks in advance

suburban
01-28-2009, 11:53 AM
Are you still here? If you get a chance can you take a look at my post recent post? I am trying to figure out how the tigger lines were created.

Thanks

NinjaTrader_Bertrand
01-28-2009, 12:01 PM
Hi suburban, from the code this is just an EMA over the Linear regression curve with a length of TrigAve (default 8).

suburban
01-28-2009, 01:59 PM
Thanks for the quick reply. What is TriAVG? That is the part I am not understanding.

NinjaTrader_Bertrand
01-28-2009, 02:00 PM
This is just a variable holding the periods for the smoothing EMA to arrive at the second triggerline.

suburban
01-28-2009, 02:01 PM
OK. What if I wanted to just plot that line? The TriAvg that is

dwalls
01-28-2009, 02:03 PM
You could just change the colors of the Trigger Line to Transparent

suburban
01-28-2009, 02:11 PM
Its been a while hope all is well. Thanks for the reply. I was wondering because I need to understand how the coding component of the Triavg works. I would like to code that line so I could use it in a strat.


Thanks for your assistance

kjaved
04-20-2010, 07:56 AM
I am looking for some one help me to covert this indicator to Ninja 7.




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.

http://www.acuclick.net/TriggerLines.jpg

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

NinjaTrader_Bertrand
04-20-2010, 07:59 AM
Welcome to our forums kjaved, if you want to give a go converting our code breaking changes for NT7 are summarized here -

http://www.ninjatrader-support2.com/vb/showthread.php?t=21016

sharmas
04-30-2010, 06:25 PM
Hi

Can we add a Arrow to this TriggerLines when they cross and is there a way to have different colors say 4 colors that shows say for example
Red for Sell and Pink for not a strong sell arrow
Green for Buy and Blue for not a strong buy arrow

thanking you

Sharmas

NinjaTrader_Bertrand
05-02-2010, 11:48 AM
Sharmas, this modification could for sure be done, you want to work with the DrawArrowUp / DrawArrowDown methods in NinjaScript for it.

http://www.ninjatrader-support.com/HelpGuideV6/DrawArrowUp.html

http://www.ninjatrader-support.com/HelpGuideV6/DrawArrowDown.html

For a professionally custom coded solution, please consider a NinjaScript consultant to assist -

http://www.ninjatrader.com/webnew/partners_onlinetrading_NinjaScript.htm