StockFetcher Forums · Filter Exchange · BATTLE LINES<< 1 2 3 4 >>Post Follow-up
da_trader
22 posts
msg #36867
Ignore da_trader
7/12/2005 11:58:12 AM

nice work TheRumpledOne...
Can you please post one 15 min chart showing these lines?
It does sound interesting.
Keep up the good work and thanks for all your posts... I love going thru them.
Especially the RSI(2) one :)



TheRumpledOne
6,407 posts
msg #36873
Ignore TheRumpledOne
7/12/2005 2:49:43 PM

go to the yahoo stockfetcher group... it's all there... explanation, chart and excel spreadsheet to calculate the lines from S4 to R4.

http://finance.groups.yahoo.com/group/StockFetcher/files/

http://finance.groups.yahoo.com/group/StockFetcher/message/8867

MAY ALL YOUR FILLS BE COMPLETE.


da_trader
22 posts
msg #36875
Ignore da_trader
7/12/2005 3:44:59 PM

Thanks



da_trader
22 posts
msg #36876
Ignore da_trader
7/12/2005 4:09:27 PM

can not get to either site ....
The page cannot be displayed


da_trader
22 posts
msg #36878
Ignore da_trader
7/12/2005 5:31:22 PM

I am able to now... thanks.


roca1018
163 posts
msg #36908
Ignore roca1018
7/13/2005 4:04:08 PM

Rumpled One,

If close is above s1 and above the pp are the calculations different? could you give an example of rimm with actual numbers on 7/12/05 inc the setup for close above and below the pp. I am assuming that pp = H+L+C/3 and S1= PP- (H-PP)

Thanks

Rich


BigOh
23 posts
msg #36915
Ignore BigOh
7/13/2005 9:44:35 PM

TheRumpledone,
Great filter!!
For a scalper like me this is a great tool to add to arsenal. If you ever figure out how to get it to dynamically in eSignal, please, please let us know. I would love to see this work on every stock I look at.


TheRumpledOne
6,407 posts
msg #36923
Ignore TheRumpledOne
7/14/2005 9:14:02 AM

BigOh:

You can code eSignal to do it... I have esignal and just haven't done it yet.

Here's the TradeStation code... if you convert it to eSignal... post it here!

I would love to use it on eSignal too...lol


{_BattleLines_Grid}

inputs:

iSupport("S1"),
iResistance("PP"),

iMult1(.20),
iMult2(.50),
iMult3(.80),



Displace_Label( -50 ),

ColorBL1( DARKGREEN ),
ColorBL2( DARKGREEN ),
ColorBL3( DARKGREEN ),

ibldummy("");

Variables:

BLStyle( Tool_Dashed ),

textBL3(0),
textBL2(0),
textBL1(0),


HavePrevLines( false ),
TLBL1( 0 ),
TLBL2( 0 ),
TLBL3( 0 ),

DayPrevClose( 0 ),
DayOpen( 0 ),

HS(0),
LS(0),

Piv(0),
PA(0),
PB(0),

S4(0),
R4(0),
S1( 0 ),
S2( 0 ),
S3( 0 ),
R1( 0 ),
R2( 0 ),
R3( 0 ),
PP( 0 ),
PPRANGE( 0 ),

xBL1(0),
xBL2(0),
xBL3(0),

TodaysHigh( 0 ),
YestHigh( 0 ),
TodaysLow( 0 ),
YestLow( 0 ),
TodaysClose( 0 ),
YestClose( 0 ),
Counter( 0 ) ,

tPivot(""),
xdummy(0);


{calculations}

if High > TodaysHigh then
TodaysHigh = High ;

if Low < TodaysLow then
TodaysLow = Low ;




If BarType = 2 Then { daily bars }
Begin

{pivot calcs}
PPRANGE = high[1] - low[1];
PP = (high[1] + low[1] + close[1]) / 3;
PP = round(PP,2);
R1 = (2*PP) - low[1];
S1 = (2*PP) - high[1];
R2 = PP + (R1 - S1);
S2 = PP - (R1 - S1);


R3 = ( 2 * PP ) + ( high[1] - ( 2 * low[1]) );
S3 = ( 2 * PP ) - ( ( 2 * high[1] ) - low[1] );
R4 = ( 3 * PP ) + ( high[1] - ( 3 * low[1]) );
S4 = ( 3 * PP ) - ( ( 3 * high[1] ) - low[1] );



end;

If BarType < 2 Then { intraday or tick bars }
Begin
PPRANGE = highd(1) - lowd(1);
PP = (HighD(1) + LowD(1) + CloseD(1)) / 3;
PP = round(PP,2);
R1 = (2*PP) - LowD(1);
S1 = (2*PP) - HighD(1);
R2 = PP + (R1 - S1);
S2 = PP - (R1 - S1);

R3 = ( 2 * PP ) + ( HighD(1) - ( 2 * LowD(1)) );
S3 = ( 2 * PP ) - ( ( 2 * HighD(1) ) - LowD(1) );
R4 = ( 3 * PP ) + ( HighD(1) - ( 3 * LowD(1)) );
S4 = ( 3 * PP ) - ( ( 3 * HighD(1) ) - LowD(1) );



end;

If iSupport = "S4"
then begin
HS = S3;
LS = S4;
END;

If iSupport = "S3"
then begin
HS = S2;
LS = S3;
END;


If iSupport = "S2"
then begin
HS = S1;
LS = S2;
END;

If iSupport = "S1"
then begin
HS = PP;
LS = S1;
END;

If iSupport = "PP"
then begin
HS = R1;
LS = PP;
END;

If iSupport = "R1"
then begin
HS = R2;
LS = R1;
END;

If iSupport = "R2"
then begin
HS = R3;
LS = R2;
END;


If iSupport = "R3"
then begin
HS = R4;
LS = R3;
END;


xBL1 = (HS-LS) * iMult1 + LS;
xBL2 = (HS-LS) * iMult2 + LS;
xBL3 = (HS-LS) * iMult3 + LS;


if Date <> Date[1] and Date = LastCalcDate then { ie, if new day }
begin

{ truncate the previous lines if they exist }
if HavePrevLines then
begin
TL_SetEnd( TLBL1, Date[1], Time[1], xBL1 ) ;
TL_SetEnd( TLBL2, Date[1], Time[1], xBL2) ;
TL_SetEnd( TLBL3, Date[1], Time[1], xBL3) ;
TL_SetExtRight( TLBL1, false ) ;
TL_SetExtRight( TLBL2, false ) ;
TL_SetExtRight( TLBL3, false ) ;
end ;



{ insert the new lines and set their colors/extents }

TLBL1 = TL_New( Date[1], Time[1], xBL1, Date, Time, xBL1 ) ;
TLBL2 = TL_New( Date[1], Time[1], xBL2, Date, Time, xBL2 ) ;
TLBL3 = TL_New( Date[1], Time[1], xBL3, Date, Time, xBL3 ) ;

TL_SetColor( TLBL1, ColorBL1 ) ;
TL_SetColor( TLBL2, ColorBL2 ) ;
TL_SetColor( TLBL3, ColorBL3 ) ;

TL_SetExtLeft( TLBL1, false ) ;
TL_SetExtLeft( TLBL2,false ) ;
TL_SetExtLeft( TLBL3,false ) ;

TL_SetExtRight( TLBL1, true ) ;
TL_SetExtRight( TLBL2, true ) ;
TL_SetExtRight( TLBL3, true ) ;

TL_SetStyle(TLBL1, BLStyle);
TL_SetStyle(TLBL2, BLStyle);
TL_SetStyle(TLBL3, BLStyle);

textBL3 = Text_New(Date, (CurrentTime + Displace_Label),xBL3, "Seller's 20 ("+ NumToStr(xBL3, 2 )+")");
Text_SetStyle(textBL3, 1,1 );
Text_SetColor(textBL3, ColorBL3 );

textBL2 = Text_New(Date, (CurrentTime + Displace_Label),xBL2, "50 yd Line ("+ NumToStr(xBL2, 2 )+")");
Text_SetStyle(textBL2, 1,1 );
Text_SetColor(textBL2, ColorBL2 );

textBL1 = Text_New(Date, (CurrentTime + Displace_Label),xBL1, "Buyer's 20 ("+ NumToStr(xBL1, 2 )+")");
Text_SetStyle(textBL1, 1,1);
Text_SetColor(textBL1, ColorBL1 );


END;

MAY ALL YOUR FILLS BE COMPLETE.


roca1018
163 posts
msg #36942
Ignore roca1018
7/15/2005 7:48:45 AM


Rumpled One,

In the example you use at the outset, you state that the 20 yd line =
SL- (RL-SL) *.20 then right below you use SL - (PP-SL) *.20 if close is below PP
When do you actually use the first equation which obviously generates different numbers then the second?

Thanks,

Rich


TheRumpledOne
6,407 posts
msg #36944
Ignore TheRumpledOne
7/15/2005 9:10:38 AM

I understand why you ask...

RL means RESISTANCE LINE

SL means SUPPORT LINE

20 yard line = SL + (RL - SL) * .20

50 yard line = SL + (RL - SL) * .50

80 yard line = SL + (RL - SL) * .80

WHERE SL and RL are the S2, S1, PP, R1, R2 pivots.

Example, if the closing price is above S1 and below PP then...

20 yard line = S1 + (PP - S1) * .20

50 yard line = S1 + (PP - S1) * .50

80 yard line = S1 + (PP - S1) * .80

In the example above, S1 is the SUPPORT LINE and PP is the RESISTANCE LINE.

If the price were to go above PP, the PP would become the SUPPORT LINE and R1 would become the RESISTANCE line... in other words, they are DYNAMIC and adjust in realtime.

MAY ALL YOUR FILLS BE COMPLETE.



StockFetcher Forums · Filter Exchange · BATTLE LINES<< 1 2 3 4 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.