dtcfmailman

U-Turn 4

75 1 3
Script from U-Turn
Remove from Favorite Scripts Add to Favorite Scripts
study("U-Turn", overlay=false)

Strength = input(title="Strength", type=integer, defval=4)

SwingHighPos = abs(round(highestbars(high, (Strength * 2) + 1)))
SwingHighMet = SwingHighPos == Strength
PivotHigh = SwingHighMet ? high[Strength] : nz(PivotHigh[1])

BuySetup = iff(BuySetup[1] == false,
	SwingHighMet,
	iff(high > PivotHigh[1], false, true))

SwingLowPos = abs(round(lowestbars(low, (Strength * 2) + 1)))
SwingLowMet = SwingLowPos == Strength
PivotLow = SwingLowMet ? low[Strength] : nz(PivotLow[1])

SellSetup = iff(SellSetup[1] == false,
    SwingLowMet,
    iff(low < PivotLow[1], false, true))

ScanValue = iff(nz(BuySetup[1], false) and high > PivotHigh[1] and close < open, -1,
    iff(nz(SellSetup[1], false) and low < PivotLow[1] and close > open, 1, 0))

plot(ScanValue, color=red)
LazyBear PRO
2 years ago
Hi, i am intrigued by this idea. Possible to post more info on this? Thx.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out