Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
Stochastic Divergence TrendLine Details »»
Stochastic Divergence TrendLine
Platform: 8.6, by aaa aaa is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: Tradestation Rating:
Released: 12-05-2009 Last Update: Never Installs: 19
Supported
Re-useable Code Translations  

// Sto Divergence TrendLine
// Author: MARKPLEX
// version: 1.0

// Author: aaa
// version: 2.0
// Date: 20091129
// added:
// divergence on top +
// Line.Color.Top + Line.Color.Bot + Line.Size + Plot.Sto in inputs

From

http://markplex.com/tutorial4.php

--------------------------------------------------------

Download Now

File Type: txt Sto Divergence TrendLine.txt (2.3 KB, 181 views)
File Type: pla Sto Divergence TrendLine.pla (7.3 KB, 96 views)
File Type: eld Sto Divergence TrendLine.ELD (5.7 KB, 250 views)

Screenshots

Stochastic Divergence TrendLine-snap1.jpg  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Similar Indicator
Mod Developer Type Replies Last Post
Tidal Wave Tams Trading Indicators 7 07:49 AM 11-05-2009
Fisher Transform Tams Trading Indicators 3 11:17 PM 07-27-2009
Instantaneous TrendLine Tams Trading Indicators 43 11:21 PM 09-06-2011
Negative/Reverse Divergence lonew0lf Trading Indicators 11 03:19 AM 06-01-2010
Req: Stochastic Alignment Alert for Different Time Frames - MT4. P.W. Trading Indicators 0 07:10 AM 02-11-2011
The Following 14 Users Say Thank You to aaa For This Useful Post:
addvalue (12-23-2009), dlv123000 (12-17-2009), jubilant (12-12-2009), kale (03-01-2012), Lurveyj (12-06-2009), MOE (12-09-2009), nuno-online (12-06-2009), shrike (12-05-2009), snowbird (12-05-2009), Tams (12-05-2009), TIKITRADER (05-01-2010)

Comments
Old 12-06-2009, 02:35 PM   #2

Join Date: Sep 2007
Location: France
Posts: 3
Ignore this user

Thanks: 4
Thanked 6 Times in 2 Posts

Re: Stochastic Divergence TrendLine

Hello,

I give you my version. I use it with various indicators. I think the author is Marplex.
Sorry for my bad english.

Code:
inputs: periodlen(1),colorH(white), colorL(yellow),period(30),smooth(1),type(1),length(20),leftstrength(3),RightStrength(1),Bartol(3);
vars: Pivotprice1(0), pivotbar1(0),Pivotprice2(0), pivotbar2(0),Pivotprice3(0), pivotbar3(0),Pivotprice4(0), pivotbar4(0),
Pivotprice5(0), pivotbar5(0),Pivotprice6(0), pivotbar6(0),Pivotprice7(0), pivotbar7(0),Pivotprice8(0), pivotbar8(0);

value1=yourindicator(periodlen);

//market pivot:

// pivot low
condition3 = pivot(low,length,leftstrength,RightStrength,1,-1,pivotprice3,pivotbar3)<>-1;
condition4 = pivot(low,length,leftstrength,RightStrength,2,-1,pivotprice4,pivotbar4)<>-1;

//pivot high
condition5 = pivot(high,length,leftstrength,RightStrength,1,1,pivotprice5,pivotbar5)<>-1;
condition6 = pivot(high,length,leftstrength,RightStrength,2,1,pivotprice6,pivotbar6)<>-1;


//indicator pivot:


//pivot low
condition1 = pivot(value1,length,leftstrength,RightStrength,1,-1,pivotprice1,pivotbar1)<>-1;
condition2 = pivot(value1,length,leftstrength,RightStrength,2,-1,pivotprice2,pivotbar2)<>-1;


//pivot high
condition7 = pivot(value1,length,leftstrength,RightStrength,1,1,pivotprice7,pivotbar7)<>-1;
condition8 = pivot(value1,length,leftstrength,RightStrength,2,1,pivotprice8,pivotbar8)<>-1;

//last low

if condition3 and condition4 and condition2 and condition1 
and (absvalue(pivotbar1-pivotbar3)<bartol)
and (absvalue(pivotbar2-pivotbar4)<bartol)
and(pivotbar3=RightStrength or pivotbar1 = RightStrength)
and (Pivotprice3<=Pivotprice4 and pivotprice1>Pivotprice2)
and barstatus(1)=2 then begin

value2 = tl_new_s(D[pivotbar4],time_s[pivotbar4],l[pivotbar4],D[pivotbar3],time_s[pivotbar3],l[pivotbar3]);
tl_setcolor(value2,colorL);
tl_setsize(value2,3);
end;

//last high

if condition5 and condition6 and condition7 and condition8 
and (absvalue(pivotbar7-pivotbar5)<bartol)
and (absvalue(pivotbar8-pivotbar6)<bartol)
and(pivotbar5=RightStrength or pivotbar7 = RightStrength)
and (Pivotprice5>=Pivotprice6 and pivotprice7<Pivotprice8)
and barstatus(1)=2 then begin

value3 = tl_new_s(D[pivotbar6],time_s[pivotbar6],h[pivotbar6],D[pivotbar5],time_s[pivotbar5],h[pivotbar5]);
tl_setcolor(value3,colorh);
tl_setsize(value3,3);
end;
Sincerely,
Franck
FranckT is offline  
Reply With Quote
The Following 5 Users Say Thank You to FranckT For This Useful Post:
aaa (12-12-2009), britun (12-17-2009), nuno-online (12-06-2009), Tams (12-10-2009)
Old 12-12-2009, 05:45 AM   #3
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Stochastic Divergence TrendLine

Hi FrankT

Here is a snapshot of your indic with the Stochastic same values.on the same 5 mn chart.

Please correct my code adaptation if necessary

Regards

Attached Thumbnails
Stochastic Divergence TrendLine-snap1.jpg  
Attached Files
File Type: txt Sto Divergence TrendLine Different Calculation.txt (2.4 KB, 63 views)
aaa is offline  
Reply With Quote
The Following 4 Users Say Thank You to aaa For This Useful Post:
britun (12-17-2009), FranckT (12-17-2009), Tams (12-12-2009)
Old 12-12-2009, 02:07 PM   #4
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Stochastic Divergence TrendLine

Attached Thumbnails
Stochastic Divergence TrendLine-snap1.jpg  
aaa is offline  
Reply With Quote
The Following 3 Users Say Thank You to aaa For This Useful Post:
britun (12-17-2009), Tams (12-12-2009)
Old 12-23-2009, 01:34 AM   #5

Join Date: Dec 2009
Location: Coalinga,
Posts: 1
Ignore this user

Thanks: 23
Thanked 0 Times in 0 Posts

Re: Stochastic Divergence TrendLine

Thanks Markplex for sharing thins. I have used and learned with your materials before and appreciate your efforts and teachings.
Dennis
addvalue is offline  
Reply With Quote
Old 03-15-2010, 06:23 PM   #6

Join Date: Mar 2010
Location: santa rosa
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Stochastic Divergence TrendLine

i am using ninja trader platform i wanna add this Stochastic indicator it is possible or not?
xavi7 is offline  
Reply With Quote
Old 03-20-2010, 05:50 AM   #7
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Stochastic Divergence TrendLine

Hi Xavi7
This indicator is written for an Easy Language platform
I guess that it is possible to make a translation for any other platform.
rgds

Last edited by aaa; 03-20-2010 at 06:12 AM.
aaa is offline  
Reply With Quote
Old 05-01-2010, 07:08 AM   #8
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Stochastic Divergence TrendLine

MACD Divergence TrendLine here

http://www.traderslaboratory.com/for...line-7845.html
aaa is offline  
Reply With Quote
The Following 2 Users Say Thank You to aaa For This Useful Post:
Tams (05-01-2010)

Reply

Tags
stochastic, trendline

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indicator Feedback - Inverse Fisher Transform(Stochastic) cstar Beginners Forum 6 04-22-2011 11:51 AM
Slow Stochastic Indicator (Built In?) Resistor Open E Cry 1 11-16-2009 06:29 PM
TS Stochastic Crossover Strategy Code Help? clbradley Automated Trading 3 08-05-2009 05:38 PM
Stochastic-RSI khagans Coding Forum 2 08-15-2008 03:46 PM
slow stochastic overlayed on RSi/BB sergej Coding Forum 4 09-10-2007 09:12 AM

All times are GMT -4. The time now is 08:27 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.