YungTraderFromMontana
Well-known member
I'm looking for something that can detect consolidation so I can stick to trading trends.
Thanks.
Thanks.
I'm looking for something that can detect consolidation so I can stick to trading trends.
input spanOfBase = 8;
input maxPrctCorrection = 10;
input spanOfBreakoutHigh = 42;
def flatBaseHigh = highest(high[1], spanOfBase);
def flatBaseLow = lowest(low[1], spanOfBase);
def percentMaxCorrection = AbsValue(100 * (flatBaseLow / flatBaseHigh - 1));
def withinPrctCorrectionLimits = percentMaxCorrection <= maxPrctCorrection; def highShade = if withinPrctCorrectionLimits then flatBaseHigh else flatBaseLow; def lowShade = if withinPrctCorrectionLimits then flatBaseLow else flatBaseHigh; def flatBase = highShade > lowShade;
def highestHighForBreakout = highest(high[1], spanOfBreakoutHigh);
def currentBreakoutHigh = high > highestHighForBreakout;
# only one of these can be scanned for at one time. Use "#" comment marks to turn off
# the one you don't need
#plot flatBaseFormation = flatBase and currentBreakOutHigh == 0;
plot breakOutSignal = currentBreakOutHigh and currentBreakOutHigh[1] == 0 and flatBase;
@Johnny Cash Absolutely no problem, Just load that code into the scanner and select Weekly aggregation. I just scanned this against the S&P 500 using a weekly aggregation and obtained 10 results.
What is MTF HA and Hull turning? What is the timeframe you use - 1minute?I use MTF HA pair it with Hull turning and Fib support resistance levels .works really good in ES and ZB,which I trade.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | Best swing entry orders outside market hours? | Questions | 0 | |
S | Best Bull Flag Indicator Yet | Indicators | 11 | |
![]() |
Best ATR ADR Indicator I came up with today (with %) | Indicators | 1 | |
![]() |
Scan for Best Performing Stocks within last # Days | Questions | 3 | |
![]() |
The best setup strategy I've come across | Strategies | 0 |