Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 14:24:11 +0000



Post From: Fibonacci Retracement and Expansion Tool

[2023-08-11 17:16:30]
User925138 - Posts: 22
Is there an indicator similar to this or can you create one?

Thanks,
-Kevin




Dead Simple Reversal Indicator for ThinkorSwim



# Dead Simple Reversal Points
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/QJ5VgF0D-Simple-Reversal-Point/

# Define Conditions
def c1 = close[1] < open[1] and close > open;
def c2 = close > open[1];
def c3 = lowest(low, 3) < lowest(low, 50)[1] or lowest(low,3) < lowest(low,50)[2] or lowest(low,3) < lowest(low,50)[3];
def buy = c1 and c2 and c3;
def c4 = close[1] > open[1] and close<open;
def c5 = close<open[1];
def c6 = highest(high, 3) > highest(high, 50)[1] or highest(high,3) > highest(high,50)[2] or highest(high,3) > highest(high,50)[3];
def sell = c4 and c5 and c6;

# Plot Signals
plot bullish = buy;
bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
bullish.SetDefaultColor(Color.CYAN);
bullish.SetLineWeight(1);
plot bearish = sell;
bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
bearish.SetDefaultColor(Color.CYAN);
bearish.SetLineWeight(1);