dtcfmailman

U-Turn 4

80 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)
Hi, i am intrigued by this idea. Possible to post more info on this? Thx.
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out