Which one is it?There is a trend reversal indicator in the scalping section I like to use but I only use it with stocks I know. (Not stock advice) If you look at NIO today 3/13/2021 on a 2 minute time frame once the reversal pops up it's confirmed by the 9 SMA crossing above or below the 15 SMA. It does repaint/show and go away sometimes. I use the one with arrows that was shared down in the post. Like most people said in here you still need to know how to read the charts. Because this indicator doesn't seem to work well with every single stock I had to find a few favorites and your favorite timeframe also.
Another great one also that I will use. I found this one Saturday night and it seems to be great so far!!!!!!!!!!!!!!!Which one is it?
#Heiken_Ashi based on Sylvan Verboort's Trading with HA Candlestick Oscillator
#Bon Bon _last update Jan 17th 2021
#Influenced by script from HoboTheClown / blt,[URL]http://www.thinkscripter.com[/URL], TD Hacolt etc.
#MTF based on HannTech's MTF_MACD script
#update 1/2/21 - changed the default moving average to TEMA. Changed the period to 35.
#update changed reversal arrows to reversal bubbles with price
### YOU MUST HAVE THE STYLE SETTING FIT STUDIES ENABLED ###
#hint: The style setting Fit Studies must be enabled to use these bars.
input period = 50;
input hideCandles = yes;
input candleSmoothing = {default Valcu, Vervoort};
input show_bubble_labels = yes;
input bubbles = yes;
input arrows = yes;
#input smoothingLength = 3;
input movingAverageType = {default TEMA, Exponential, Hull };
def openMA;
def closeMA;
def highMA;
def lowMA;
switch (movingAverageType) {
case Exponential:
openMA = CompoundValue(1, ExpAverage(open, period), open);
closeMA = CompoundValue(1, ExpAverage(close, period), close);
highMA = CompoundValue(1, ExpAverage(high, period), high);
lowMA = CompoundValue(1, ExpAverage(low, period), low);
case Hull:
openMA = CompoundValue(1, HullMovingAvg(open, period), open);
closeMA = CompoundValue(1, HullMovingAvg(close, period), close);
highMA = CompoundValue(1, HullMovingAvg(high, period), high);
lowMA = CompoundValue(1, HullMovingAvg(low, period), low);
case TEMA:
openMA = CompoundValue(1, TEMA(open, period), open);
closeMA = CompoundValue(1, TEMA(close, period), close);
highMA = CompoundValue(1, TEMA(high, period), high);
lowMA = CompoundValue(1, TEMA(low, period), low);
}
HidePricePlot(hideCandles);
def haOpen;
def haClose;
switch (candleSmoothing){
case Valcu:
haOpen = CompoundValue(1, ( (haOpen[1] + (openMA[1] + highMA[1] + lowMA[1] + closeMA[1]) / 4.0) / 2.0), open);
haClose = ((((openMA + highMA + lowMA + closeMA) / 4.0) + haOpen + Max(highMA, haOpen) + Min(lowMA, haOpen)) / 4.0);
case Vervoort:
haOpen = CompoundValue(1, ( (haOpen[1] + (openMA[1] + highMA[1] + lowMA[1] + closeMA[1]) / 4.0 ) / 2.0), open);
haClose = ((((openMA + highMA + lowMA + closeMA) / 4.0) + haOpen + Max(highMA, haOpen) + Min(lowMA, haOpen)) / 4.0);
}
plot o = haOpen;
o.Hide();
def haLow = Min(lowMA, haOpen);
def haHigh = Max(highMA, haOpen);
#Zero Lag System - MetaStock Crossover Formula
#zero-lagging principle
#Zero-lagging TEMA average on closing prices
#Medium-term price reversals - upward trend
def avg = 34;
def TMA1 = reference TEMA(haClose, avg); # triple exponential moving average (TEMA) of 34 bars
def TMA2 = reference TEMA(TMA1, avg);
def Diff = TMA1 - TMA2;
def ZlHa = TMA1 + Diff; #Zero-lagging TEMA average on closing prices - medium term uptrend;
#Medium-term price reversals - downward trend
def TMA1_ = reference TEMA((high + low) / 2, avg);
def Diff2 = TMA1_ - TMA2;
def ZlCl = TMA1_ + Diff2; #Zero-lagging TEMA average on closing prices - medium term doenwardtrend;
def ZlDif = ZlCl - ZlHa; # Zero-Lag close - Zero-Lag HA(green candle) Uptrend when ZlDif is equal to or greater than zero
#uptrend {green candle}
def keep1 = if (haClose >= haOpen and haClose[1] >= haOpen[1]) then 1 else 0;
def keep2 = if ZlDif >= 0 then 1 else 0;
def keep3 = if (AbsValue(close - open) < ((high - low) * 0.35)) and high >= low[1] then 1 else 0;
def keeping = if (keep1 or keep2) then 1 else 0;
def keepall = if keeping or (keeping[1]) and close >= open or close >= (close[1]) then 1 else 0;
def utr = if keepall or (keepall[1]) and keep3 then 1 else 0;
#downtrend red candle
def keep1_ = if (haClose < haOpen and haClose[1] < haOpen[1]) then 1 else 0;
def keep2_ = if ZlDif < 0 then 1 else 0;
def keep3_ = if (AbsValue(close - open) < ((high - low) * 0.35)) and low <= high[1] then 1 else 0;
def keeping_ = if (keep1_ or keep2_) then 1 else 0;
def dkeepall_ = if keeping_ or (keeping_[1]) and close < open or close < (close[1]) then 1 else 0;
def dtr = if dkeepall_ or (dkeepall_[1] - 1) and keep3_ == 1 then 1 else 0; #downtrend
def upw = if dtr and (dtr[1]) and utr then 1 else 0;
def dnw = if !utr and (utr[1] ) and dtr then 1 else 0;
def results = if upw then 1 else if dnw then 0 else results[1];
#Change the color of HA and Japanese Candles - turn off to show only HA on chart
#AssignPriceColor(if haClose >= haOpen
#then Color.GREEN else
#if haClose < haOpen
#then Color.RED else Color.WHITE);
#Heiken_A script
#####################################################################################################
input charttype = ChartType.CANDLE;
def haopen_ = if haClose <= haOpen
then haOpen + 0
else Double.NaN;
def HAhi = if haClose <= haOpen
then haHigh
else Double.NaN;
def HAlo = if haClose <= haOpen
then haLow
else Double.NaN;
AddChart(growColor = Color.RED, neutralColor = Color.CURRENT, high = HAhi, low = HAlo, open = haopen_, close = haClose, type = ChartType.CANDLE);
def HAclose1 = ohlc4;
def HAopen1 = if haClose >= haOpen
then CompoundValue(1, (haOpen[1] + haClose[1]) / 2, (open[1] + close[1]) / 2)
else Double.NaN;
def haopen_1 = if haOpen <= haClose
then HAopen1 + 0 else Double.NaN;
def HAhigh1 = haHigh;
def HAlow1 = haLow;
AddChart(growColor = Color.GREEN, neutralColor = Color.CURRENT, high = HAhigh1, low = HAlow1, open = haopen_1, close = haClose, type = ChartType.CANDLE);
#####################################################################################################
#Buy and sell signals
def trend = haClose >= haOpen;
def trendup = trend and !trend[1];
def trendd = haClose < haOpen;
def trendDown = trendd and !trendd[1];
AddChartBubble(bubbles and trendup and trendup, HAlow1, ("Reversal:" + round(HAlow1, 2)), Color.GREEN, no);
AddChartBubble(bubbles and trendDown and trendDown, HAhigh1, ("Reversal:" + round(HAhigh1,2)), Color.LIGHT_RED, yes);
#Arrows instead of bubbles
#def trend = haClose >= haOpen ;
#plot trendup = trend and !trend[1];
#trendup.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
#trendup.SetDefaultColor(Color.CYAN);
#def trendd = haClose <= haOpen ;
#plot trendDown = trendd and !trendd[1];
#trendDown.SetDefaultColor(Color.MAGENTA);
#trendDown.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Zedd, I think everyone has felt that way before at times...so something that has worked well for me (doing the type of trading you are talking about) is using the standard deviation channels (first in tradingview) in Thinkorswim on a 1 or 2 min timeframe. I am actually new to TOS but not to this strategy or trading in general. It just got way easier to do with TOS because the channels are auto calculated and you don't have to do them manually. The theory is that price will not exceed the -2 or +2 standard deviation 97% of the time. So if you watch the channels and wait until a sharp selloff or downtrend and price goes to one of these levels (mainly on an uptrend when the channels are sloping up), you can usually catch a really good bounce off of the -2 or even better the -3 standard deviation level. I use the 1, 2, and 3 channels on my charts in TOS. the idea is that these are low risk high probability entry areas. Even if you don't like trading reversals...say you like to trade patterns, these channels can tell you which patterns are likely to play out. For instance you would not trade a bull flag pattern right under the +1 or +2 levels which can act as resistance. If I trade patterns its always below or at the center line of the channels. There is obviously a lot more to it...like watching the yearly and 180 day levels and marking those on the charts and seeing if they will interact on the intraday chart, etc. If channels are sloping up, my exits are twice oversold, divergence on the RSI, rejection at key levels, or break of obvious trend...if channels are sloping down (and I am going long) I am just looking for a quick scalp and will get out at once oversold on the RSI, and I watch volume like crazy. When I see the sellers step in I will usually get out. But, like the others said, its hard to tell someone a strategy. you have to get into the weeds with it, put in the time, figure out your entry criteria, exit criteria, form a trade plan, and then learn to trade the plan well and not let emotions or decisions weigh into too much. You will literally get decision fatigue and you will start doubting every decision you make. Trading can head knick you for sure. But I will say, of all of the strategies that I have tried, and that is MANY, none of them have come close to this one in terms of reliability. In fact, when i am trading the index ETF's, when they hit a -2 level and the channels are sloping up (indicating a sharp pullback in a bullish day trend) I will back up the dumptruck and buy all I can. Did this today on UPRO (3x leveraged ETF of SPY) and cleaned house.appreciate the help. I am interested and trade emini's and stocks only. tried scalping but mostly ends up with loss or even. And then tried to look for intraday trend that I can ride for mins or even hours but its hard to predict. seems like the stock I chose to focus on with all the right indications that It will go my way takes an opposite turn the second I get in the trade.
@brendel thanks for sharing this. Just curious, which timeframe do you trade the squeeze on? Which lower timeframe would you suggest is the best to use the TTM Squeeze for a day trade?
Good stuff! Thanks for the advice! I've been trading off the 2 min chart with SPY and the squeeze has been working for that ticker. Also noticed many times I could have held longer when using the 5 min chart, so your advice is spot on to what I've discovered. Will try trading SPY on the 5 min makes so much sense. Thanks again for the advice, so very helpful!I mostly scalp off the 2 minute chart using the squeeze, it also depends on the ticker. For example TSLA moves so fast usually. For other tickers like AAPL, and SPY I will do 5 minute, and for NVDA I will do usually 15 minute. The squeeze will work in any timeframe, but keep in mind the longer the timeframe the longer the squeeze. I would say majority of the time I stick with 2 minutes. TSLA moves way too fast in option price and usually will go up and down 20 points in a matter of minutes and can get several hundred dollars in just a few minutes which is why I like sticking with 2 minutes, for slower moving tickers I will go higher. It really depends what you get use to. I highly recommend paper trading at first for a few days until you have your strategy down. Trust me they are all not winners, but I either place a stop loss, or a mental stop loss of 20%, but prefer not doing mental. If I can get in the squeeze it will jump in one direction it is picking that right direction, but if it goes against what I think it will be based on the histogram/macd and EMA, I lose but won't lose more then 20%. For 2 minute squeeze I am usually only in for 3-5 bars once it fires and get out, and will do that maybe 3-4x a day.
Also another tip if you are scalping options, I try to pick options that are 1-2 strikes OTM, and has high volume and interest, so the bid/ask is close, especially if it hits my stop loss I do a market to get out. If i do a limit with the stop loss it will sometimes go right past it. You don't have to do a stop loss, but I prefer that otherwise mental stop loss will give you way more losses thinking it will come back and you wait and wait and then you are down several hundred dollars depending upon how many contracts you buy
I have learnt a while ago from hard lessons always better to leave money on the table then to lose all the money on the table.Good stuff! Thanks for the advice! I've been trading off the 2 min chart with SPY and the squeeze has been working for that ticker. Also noticed many times I could have held longer when using the 5 min chart, so your advice is spot on to what I've discovered. Will try trading SPY on the 5 min makes so much sense. Thanks again for the advice, so very helpful!
Yes, no lies told here. Expert advice once again. TY @brendel!I have learnt a while ago from hard lessons always better to leave money on the table then to lose all the money on the table.
What I mean is get out even if 20% return if your indicators and strategy is based on your exit plan, yes you might see it go up later and you are like oh man I should have stayed in, but you can always get back in again. I rather have many small wins , and very small losses then go for home runs. In the long run you want your win rate to be high and expect to have losses but minimize those losses, and profit is profit
http://tos.mx/RC8jbxc@wcsharron @greenalert20 Thank you guys.. where can i find the TMO MomentumOscillator etc., I couldn't find this in TOS
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
V | Best time frame for day trading? | Questions | 5 | |
K | Identifying Best Stocks/Scanner/Gapups for Day Trading | Questions | 6 | |
M | Best Daytrading Strategies For SPY | Questions | 6 | |
S | What is the best way to identify the choppy price action? | Questions | 1 | |
Best editing tool in ThinkOrSwim | Questions | 1 |
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.