UpTwoBucks
Active member
Gap and Run Code:
Ruby:
plot GapandRun = ( open - close[1] ) > 0 and close > open and (100* (close/high)) > 80.0;
Gap and Run Watchlist Code:
Ruby:
input length = 20;
input multiplier = 1.5;
input emaLength = 8;
def ma = MovingAverage(AverageType.SIMPLE, close, length);
def pullbackValue = ma - multiplier * Average(TrueRange(high, close, low), length);
def isPullback = close < pullbackValue;
def ema = ExpAverage(close, emaLength);
def isFirstGreenCandle = !isPullback and close > open and close[1] <= open[1] and close > ema;
def isPostPullback = Sum(isFirstGreenCandle, 1) == 1;
plot PullbackIndicator = isPostPullback;
To import my desktop: Copy Link Below, Click Setup Top Right, Open Shared Item, CTRL V to paste, Preview then Import.
My DeskTop: https://tos.mx/IWmhb61
Last edited by a moderator: