| Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL. |
![]() | | Tweet | |
Klinger-Goslin ATR Indicator Details »» | |||||||||||||||||||||||||||||||
Here is a 'squeeze-like' indicator I converted from some very good code. Trend39 from the TS forums converted the Klinger and Goslin together adding an ATR factor to it. Here are the links to the originals: http://www.tradestation.com/Discussi...Topic_ID=26841 http://www.tradestation.com/Discussi...Topic_ID=26605 http://www.tradestation.com/Discussi...Topic_ID=37624 Code:
[LegacyColorValue = true];
{_KlingerVolume Function}
{KlingerOsc}
value1 = KVO_rd(34, 55);
value2 = Summation(value1, 1);
if 1 <= 1 then begin
_KlingerVol = value1; end
else _KlingerVol = value2; Code:
{KVO Function}
Inputs:
FastX(Numeric),
SlowX(Numeric);
Vars:
FXAvg(0),
SXAvg(0);
FXAvg = XAverage(VForce_rd, FastX);
SXAvg = XAverage(VForce_rd, SlowX); {Samll change made to Vforce_rd to make volume smaller)}
KVO_rd = (FXAvg - SXAvg); Code:
{V-Force Function}
Vars: TSum(0), Trend(0), DM(0), CM(0);
TSum = High + Low + Close;
DM = High - low;
IF TSum > TSum[1] Then
Trend = 1
Else
Trend = -1;
IF Trend = Trend[1] Then
CM = CM + Range
Else
CM = Range + Range[1];
IF CM <> 0 Then
VForce_rd = Volume * AbsValue(2 * (DM/CM) -1) * Trend * 0.01; {0.01 works great too; original version had * 100.
Made smaller to decrease the plotted size of volume} Code:
[LegacyColorValue = true];
{Volume Flow Indicator + Klinger Volume Indicator + ATR Summation
Trend39 compiled into one indicator
Simterann22 made changes below:Zeroline turns red when Klinger is below trigger line and green when above trigger line.
Klinger Histogram shows volume increasing or decreasing}
Inputs:
ATRLength(21),
Trigger(13),
SmoothATR(1),
Smooth(5),
UpVolColor(green),
UpVolColor2(darkGreen),
DnVolColor(red),
DnVolColor2(darkRed);
value1= summationif(close > open,truerange,ATRlength);
value2=summationif(close < open,truerange,ATRlength);
value3= value1-value2; {Sum}
value4 = average(value3,SmoothATR)*.5;
value5= Average((_KlingerVol+ Value4)*1/2,Smooth);
plot1(0,"Zero line");
plot98(0,"Zero Line BG");//Aesthetic
plot2(value5,"Klinger+ATR");
plot3 (average(value5,Trigger),"Trigger");
//Histogram
If Plot2>0 and Plot2>Plot2[1] then
setplotcolor(2,UpVolColor);
If Plot2<0 and Plot2>Plot2[1] then
setplotcolor(2,DnVolColor2);
If Plot2<0 and Plot2<PLot2[1] then
setplotcolor(2,DnVolColor);
If Plot2>0 and Plot2<PLot2[1] then
setplotcolor(2,UpVolColor2);
//ZeroLine
If plot2>plot3 then
begin
setplotcolor(1,UpVolColor);
setplotcolor(98,UpVolColor2);//aesthetic only: must plot thicker and darker color than plot1
end;
If plot2<plot3 then
begin
setplotcolor(1,DnVolColor);
setplotcolor(98,DnVolColor2);//aesthetic only: must plot thicker and darker color than plot1
end; Download Now
Screenshots Show Your Support
| |||||||||||||||||||||||||||||||
| The Following 4 Users Say Thank You to simterann22 For This Useful Post: | ||
| Comments |
| | #2 | ||
![]() | Re: Klinger-Goslin ATR Indicator | ||
| |
|
| | #3 | ||
![]() | Re: Klinger-Goslin ATR Indicator Quote:
This is a mutual relationship. You can start by sharing your Amibroker indicators... and this would encourage others to do the same. note: when I say "sharing", I don't mean copying indicators from the Amibroker site. Last edited by Tams; 07-05-2009 at 09:45 AM. | ||
| |
|
| | #4 | ||
![]() | Re: Klinger-Goslin ATR Indicator | ||
| |
|
| The Following User Says Thank You to ajax358 For This Useful Post: | ||
simterann22 (07-07-2009) | ||
| | #5 | ||
![]() | Re: Klinger-Goslin ATR Indicator | ||
| |
|
| | #6 | ||
![]() | Re: Klinger-Goslin ATR Indicator Quote:
I usually keep all my input values in Fibonacci vlues (3,5,8,13,21,34, 55,etc) & work with these first. Then if it is close to the fastest one, will then go a half a Fib distance between Fib #'s on either side of it to find THE fastest one in the turns....this to keep the Fib Universal ratio in tact.....generally find that either a whole or half Fib number value/combination works the best every time for any indicator!! My whole system is Fib # based & one of the reasons is so effective for me.....all inputs are Fib #'s & all charts are fib #'s too in time/tick frames. So, try that in backtesting....takes times, like hours of backtesting for just one indicator, but as in all things, nothing good is easy & takes time to get it right. Hope that helps.... ![]() ajax | ||
| |
|
| The Following User Says Thank You to ajax358 For This Useful Post: | ||
simterann22 (07-08-2009) | ||
| | #7 | ||
![]() | Re: Klinger-Goslin ATR Indicator thanks | ||
| |
|
| | #8 | ||
![]() | Re: Klinger-Goslin ATR Indicator Quote:
| ||
| |
|
![]() |
| Thread Tools | |
| Help Others By Rating This Thread | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Indicator with Data of Another Indicator | Tresor | Coding Forum | 13 | 08-06-2008 10:48 AM |