Check out our Buy the Dip indicator and see how it can help you find profitable swing trading ideas. Scanner, watchlist columns, and add-ons are included.
Please share code here and we can help youDoes anyone know how I can edit RAF study to only display Major Buys/Major Sells that are Overbought/Oversold. The way it is written is too messy for me.
# Fisher Transform With First Wave (David Elliot)
# Mobius
# Chat Room Request 10.14.2020
# Scan for FT > FS5x3
def h = high;
def l = low;
def c = close;
def CountChg;
def SOAPCount;
def maxHigh = Highest(h, 5);
def minLow = Lowest(l, 5);
def k1v = Max(-100, Min(100, (StochasticFull(KPeriod = 5, slowing_period = 3))) - 50) / 50.01;
def k2v = Max(-100, Min(100, (StochasticFull(KPeriod = 8, slowing_period = 5))) - 50) / 50.01;
def k3v = Max(-100, Min(100, (StochasticFull(KPeriod = 17, slowing_period = 5))) - 50) / 50.01;
def R1v = Max(-100, Min(100, reference RSI(2)) - 50) / 50.01;
if k2v > 0
{
CountChg = if k1v <= k2v and k1v[1] > k2v[1] and k2v[1] > 0 then -1 else 0;
SOAPCount = CompoundValue(1, Min (0, SOAPCount[1]) + CountChg, 0);
}
else
{
CountChg = if k1v >= k2v and k1v[1] < k2v[1] and k2v[1] <= 0 then 1 else 0;
SOAPCount = CompoundValue (1, Max (0, SOAPCount[1]) + CountChg, 0);
}
def fish1 = CompoundValue(1, 0.5 * (Log((1 + k1v) / (1 - k1v)) + fish1[1]), 0);
def FS5x3 = fish1;
def value = if maxHigh - minLow == 0
then 0
else 0.66 * ((close - minLow) / (maxHigh - minLow) - 0.5) + 0.67 * value[1];
def truncValue = if value > 0.99
then 0.999
else if value < -0.99
then -0.999
else value;
def fish = 0.5 * (Log((1 + truncValue) / (1 - truncValue)) + fish[1]);
def FT = fish;
plot isTrue = FT > FS5x3;
# End Scan Code
FT.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
declare lower;
input price = hl2;
input length = 10;
def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
def value = if IsNaN(price)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((price - minLow) / range - 0.5) + 0.67 * value[1];
def truncValue = if value > 0.99 then 0.999 else if value < -0.99 then -0.999 else value;
def fish = 0.5 * (log((1 + truncValue) / (1 - truncValue)) + fish[1]);
#plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;
#FTOneBarBack.SetDefaultColor(GetColor(1));
FT.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
FT.SetDefaultColor(GetColor(8));
FT.DefineColor("Positive and Up", Color.GREEN);
FT.DefineColor("Positive and Down", Color.DARK_GREEN);
FT.DefineColor("Negative and Down", Color.RED);
FT.DefineColor("Negative and Up", Color.DARK_RED);
FT.AssignValueColor(if FT >= 0 then if FT > FT[1] then FT.color("Positive and Up") else FT.color("Positive and Down") else if FT < FT[1] then FT.color("Negative and Down") else FT.color("Negative and Up"));
ZeroLine.SetDefaultColor(GetColor(5));;
Hi cos251, I copied over your FisherTransform CCI combo indicator code and really like it. Good work. Please let me know if you have any updates. I do have the RAF Pro version from Carter and so far I am not seeing a lot of good signals on the 2 min charts. Still playing with it.Agreed BenTen. If anyone can tell me what the indicator is using outside of the FisherTransform I'm happy to hack away at it.
I can also add that from the chart I posted above, I'm using the FisherTransform and CCI in combination as an upper study to provide indication of turning points on multiple timeframes. I have found this to be a great indicator but obviously needs a lot of refining.
Hi cos251, I copied over your FisherTransform CCI combo indicator code and really like it. Good work. Please let me know if you have any updates. I do have the RAF Pro version from Carter and so far I am not seeing a lot of good signals on the 2 min charts. Still playing with it.
Get access to Ben's watchlist, swing trading strategy, ThinkorSwim setup, and trade examples.
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.