StockFetcher Forums · Filter Exchange · BATTLE LINES<< 1 2 3 4 >>Post Follow-up
TheRumpledOne
6,411 posts
msg #36792
Ignore TheRumpledOne
7/8/2005 11:43:53 AM

Fetcher[

/* BATTLE LINE FILTER DISPLAY - 20 YARD LINE */

set{AS2, count(close above s2,1) - count(close above s1,1)}
set{AS1, count(close above s1,1) - count(close above pp,1)}
set{APP, count(close above pp,1) - count(close above r1,1)}
set{AR1, count(close above r1,1) - count(close above r2,1)}


/* DETERMINE WHICH PIVOT LINE IS SUPPORT */

set{xS2, AS2 * S2}
set{xS1, AS1 * S1}
set{xPP, APP * PP}
set{xR1, AR1 * R1}


/* CALC DIFFERENCE BETWEEN SUPPORT AND RESISTANCE */

set{DS2, S1 - S2}
set{DS1, PP - S1}
set{DPP, R1 - PP}
set{DR1, R2 - R1}

/* COMPUTE 20% OF DIFFERENCE ... 20 YARD LINE */

set{Z20S2, DS2 * .20}
set{Z20S1, DS1 * .20}
set{Z20PP, DPP * .20}
set{Z20R1, DR1 * .20}


/* ADD DIFFERENCE TO SUPPORT */

set{S20S2, S2 + Z20S2}
set{S20S1, S1 + Z20S1}
set{S20PP, PP + Z20PP}
set{S20R1, R1 + Z20R1}

/* PICK WHICH 20 YARD LINE */

set{Y20S2, AS2 * S20S2}
set{Y20S1, AS1 * S20S1}
set{Y20PP, APP * S20PP}
set{Y20R1, AR1 * S20R1}

set{A1, Y20S2 + Y20S1}
set{A2, A1 + Y20PP}
set{YARD20, A2 + Y20R1}

add column YARD20





add column s2
add column s1
add column pp
add column r1
add column r2

VOLUME ABOVE 10000000
CLOSE ABOVE 10
]




Fetcher[

/* BATTLE LINE FILTER DISPLAY - 80 YARD LINE */

set{AS2, count(close above s2,1) - count(close above s1,1)}
set{AS1, count(close above s1,1) - count(close above pp,1)}
set{APP, count(close above pp,1) - count(close above r1,1)}
set{AR1, count(close above r1,1) - count(close above r2,1)}


/* DETERMINE WHICH PIVOT LINE IS SUPPORT */

set{xS2, AS2 * S2}
set{xS1, AS1 * S1}
set{xPP, APP * PP}
set{xR1, AR1 * R1}


/* CALC DIFFERENCE BETWEEN SUPPORT AND RESISTANCE */

set{DS2, S1 - S2}
set{DS1, PP - S1}
set{DPP, R1 - PP}
set{DR1, R2 - R1}

/* COMPUTE 80% OF DIFFERENCE ... 80 YARD LINE */

set{Z80S2, DS2 * .80}
set{Z80S1, DS1 * .80}
set{Z80PP, DPP * .80}
set{Z80R1, DR1 * .80}


/* ADD DIFFERENCE TO SUPPORT */

set{S80S2, S2 + Z80S2}
set{S80S1, S1 + Z80S1}
set{S80PP, PP + Z80PP}
set{S80R1, R1 + Z80R1}

/* PICK WHICH 80 YARD LINE */

set{Y80S2, AS2 * S80S2}
set{Y80S1, AS1 * S80S1}
set{Y80PP, APP * S80PP}
set{Y80R1, AR1 * S80R1}

set{A1, Y80S2 + Y80S1}
set{A2, A1 + Y80PP}
set{YARD80, A2 + Y80R1}

add column YARD80





add column s2
add column s1
add column pp
add column r1
add column r2

VOLUME ABOVE 10000000
CLOSE ABOVE 10
]





Fetcher[

/* BATTLE LINE FILTER DISPLAY - 50 YARD LINE */

set{AS2, count(close above s2,1) - count(close above s1,1)}
set{AS1, count(close above s1,1) - count(close above pp,1)}
set{APP, count(close above pp,1) - count(close above r1,1)}
set{AR1, count(close above r1,1) - count(close above r2,1)}


/* DETERMINE WHICH PIVOT LINE IS SUPPORT */

set{xS2, AS2 * S2}
set{xS1, AS1 * S1}
set{xPP, APP * PP}
set{xR1, AR1 * R1}


/* CALC DIFFERENCE BETWEEN SUPPORT AND RESISTANCE */

set{DS2, S1 - S2}
set{DS1, PP - S1}
set{DPP, R1 - PP}
set{DR1, R2 - R1}

/* COMPUTE 50% OF DIFFERENCE ... 50 YARD LINE */

set{Z50S2, DS2 * .50}
set{Z50S1, DS1 * .50}
set{Z50PP, DPP * .50}
set{Z50R1, DR1 * .50}


/* ADD DIFFERENCE TO SUPPORT */

set{S50S2, S2 + Z50S2}
set{S50S1, S1 + Z50S1}
set{S50PP, PP + Z50PP}
set{S50R1, R1 + Z50R1}

/* PICK WHICH 50 YARD LINE */

set{Y50S2, AS2 * S50S2}
set{Y50S1, AS1 * S50S1}
set{Y50PP, APP * S50PP}
set{Y50R1, AR1 * S50R1}

set{A1, Y50S2 + Y50S1}
set{A2, A1 + Y50PP}
set{YARD50, A2 + Y50R1}

add column YARD50





add column s2
add column s1
add column pp
add column r1
add column r2

VOLUME ABOVE 10000000
CLOSE ABOVE 10
]




What are BATTLE LINES?

Battle lines are points between support and resistance lines where buyers and sellers put up a "battle" - they struggle as to which way the price is going to go.

I was experimenting with different numbers like fib numbers but found out that the 80/20 rule applies.

Think of the distance between a support line and a resistance line as a football field. The 50 yard line is midfield. The 20 yard line on either end is the RED ZONE. Defense gets tough in the RED ZONE and it's hard to move the ball (price) over the goal(support/resistance) line.

This is almost too simple but if you draw these lines on a 15 minute chart it will make sense to you.

How do I use this knowledge to make money?

Knowing where the RED ZONES are will help you trade accordingly.

Buying in the bottom RED ZONE should be a safe entry as your defense will resist the price dropping below the goal (support) line.

Having a STOP LOSS in the upper RED ZONE will allow you to keep most of the profit if your team can't get the ball (price) across the goal (resistance) line.

The bummer is having to use 3 separate filters due to SET statement limitations.

MAY ALL YOUR FILLS BE COMPLETE.





TheRumpledOne
6,411 posts
msg #36793
Ignore TheRumpledOne
7/8/2005 11:54:02 AM

In case someone wants to program BATTLE LINES for QuoteTracker or eSignal, here's the formulas:

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

When you are charting you may want to draw BATTLE LINES between S1 & PP and PP & R1, at the open. If you're good at programming you can figure out how to place them where you need them dynamically.

MAY ALL YOUR FILLS BE COMPLETE.


glgene
616 posts
msg #36814
Ignore glgene
7/10/2005 2:23:40 AM

TheRumpledOne,

I don't totally understand your scripting logic with this run, but I certainly appreciate your fine work and dedication to this line of posts. You get the gold star. You are wonderful!

GL Gene



TheRumpledOne
6,411 posts
msg #36819
Ignore TheRumpledOne
7/10/2005 11:35:37 AM

GlGene...

The "scripting" logic is simple actually, I included comments.

Due to the limitations of the SF filter language, one must be creative to get what is wanted.

So the filter has to determine between which support and resistance lines the close lies and then it can compute where the BATTLE LINES lie.

It is that simple.

Thank you.


glgene
616 posts
msg #36828
Ignore glgene
7/10/2005 10:48:13 PM

To TheRumpledOne,

Where can I obtain a copy of "SF filter language?"

GL Gene


mrbobolina
19 posts
msg #36835
Ignore mrbobolina
7/11/2005 12:26:52 AM

StockFetchers downloadable PDF manual has an explanation of all the indicators, etc. and how to use them. Also, go to this website for more in depth examples:

http://yepher.com/~yepher/stockfetcher/command.html

The kind of filters therumpledone writes is waaaaaay beyond my abilities but I still enjoy trying to figure them out and put them to use.

Hope that helps...


TheRumpledOne
6,411 posts
msg #36844
Ignore TheRumpledOne
7/11/2005 4:21:06 PM

"The kind of filters therumpledone writes is waaaaaay beyond my abilities but I still enjoy trying to figure them out and put them to use. "

The reason they look so complicated is because of SF programming language limitations.

I had to implement things like Boolean Logic because SF doesn't have the OR command.

But that just made me dust off a few programming tricks.




glgene
616 posts
msg #36845
Ignore glgene
7/11/2005 4:58:59 PM

TheRumpledOne,

That's my point. What is doable beyond basic SF filtering techniques? I see some stuff you do ... and it's not in the SF manuals. Where do I find out about programming possibilities beyond standard SF?

GL Gene


TheRumpledOne
6,411 posts
msg #36849
Ignore TheRumpledOne
7/11/2005 8:04:11 PM

glgene... my degree is in computer science.

I create the tools I need, when I need them, if I can.

Besides, don't waste your time reinventing the wheel... there are plenty of filters already posted that you can use.

Better to learn trading and money management techniques.

IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!




TheRumpledOne
6,411 posts
msg #36850
Ignore TheRumpledOne
7/11/2005 8:06:49 PM

For the record:

I have been trading RIMM the past couple of days using BATTLE LINES.

On a 15 minute chart, I just enter at one line and exit at the next and then reverse position (most of the time). Showing a profit at the end of each day. Scalping has never been easier, well except maybe the open scalp.

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.