Repaints AGAIG A Choice Chart Setup for Trading or Scalping with ThinkOrSwim

Repaints
I am trying to use this setup vertically displaying the 4 min, 5 min and 15 min charts one above the other.

The challenge I am having is that the time lines do not match up.

I have played around with a bunch of options but still end up with them offset (see blue vertical line close to market open).

Any suggestions on how to get them to keep the same time on the x-axis? I understand that since the aggregation periods are different, the bars will be different. However, I'd love to see what they all said at the same point in time.

Thanks.
I see the 3rd chart(bottom) is also 5min... Supposed to be 15min?
 
@csricksdds

How would one add the 24h tracking support back into this version or is there a different version out there that might be better suited for general use trading etc.
(Please forgive the newbie inquiry)
 
I love the Histogram lines on the upper chart but I only can find the script for the lower chart
# AsGoodAsItGets upper Indicator
#CSR Buy/Sell Arrows with Short/Long Bubbles
#Developed 4-23-23 First Edition 8-23-22 Revised
#Updated 3/16/24 by C. Ricks

declare upper;

input atrreversal =2.0;

def priceh = MovingAverage(AverageType.EXPONENTIAL, high, 5);
def pricel = MovingAverage(AverageType.EXPONENTIAL, low, 5);

def EIL = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastL;
def EIH = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastH;

plot signaldown = !isNAN(EIH);
signaldown.SetPaintingStrategy(PaintingStrategy.SQUARED_HISTOGRAM);
signaldown.DefineColor("signaldown", Color.Red);

plot signalrevBot = !isNaN(EIL);

Signalrevbot.SetPaintingStrategy(PaintingStrategy.SQUARED_HISTOGRAM);
signalrevBot.DefineColor("signalrevBot", Color.Green);

input usealerts = yes;
alert(usealerts and signaldown[1] == 1, "SHORT", alert.bar, sound.ring);
alert(usealerts and signalrevbot[1] == 1, "LONG", alert.bar, sound.ring);
 
I have had that problem occasionally - under your studies and strategies replace the code with this code?
Code:
# AsGoodAsItGets Lower Indicator
#CSR Buy/Sell Arrows with Short/Long Bubbles
#Developed 4-23-23 First Edition 8-23-22 Revised
#Updated 3/16/24 by C. Ricks
#Moved to Upper by C.Ricks

declare upper;

input atrreversal =2.0;

def priceh = MovingAverage(AverageType.EXPONENTIAL, high, 5);
def pricel = MovingAverage(AverageType.EXPONENTIAL, low, 5);

def EIL = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastL;
def EIH = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastH;

plot signaldown = !isNAN(EIH);
signaldown.SetPaintingStrategy(PaintingStrategy.SQUARED_HISTOGRAM);
signaldown.DefineColor("signaldown", Color.Red);

plot signalrevBot = !isNaN(EIL);

Signalrevbot.SetPaintingStrategy(PaintingStrategy.SQUARED_HISTOGRAM);
signalrevBot.DefineColor("signalrevBot", Color.Green);

input usealerts = yes;
alert(usealerts and signaldown[1] == 1, "SHORT", alert.bar, sound.ring);
alert(usealerts and signalrevbot[1] == 1, "LONG", alert.bar, sound.ring);
And for me for some reason I am unable not only not to get the colors to be red and green but I do not get the bars at all, even if I replace the code?? I can import your chart with everything working but if I save it and open in different window it stops working/ is not showing up? just the AsGoodAsItGets upperSqueredHistogram Indicator
:(
 
And for me for some reason I am unable not only not to get the colors to be red and green but I do not get the bars at all, even if I replace the code?? I can import your chart with everything working but if I save it and open in different window it stops working/ is not showing up? just the AsGoodAsItGets upperSqueredHistogram Indicator
:(
I'm sorry - I don't know what to tell you...it should work?
 
AGAIG: A Choice Chart Setup for Trading or Scalping
Might be the best?​

shared Chart Link: http://tos.mx/!3cBl144F MUST follow these instructions for loading shared links.
clmUddq.jpeg





I’m always looking for the best trading (scalping) chart, and this is what I’m currently using. First, a big thanks to all the other posters who share their material (I check nearly every post made to this website).

In order for this chart to show more plainly I have taken the after-hours off (normally used by me) and I am showing smaller candles than I personally use, although my favorite is the 5-min. chart with slightly larger Heikin Ashi Candles for trading (scalping) which I use every day.

In this chart I have moved my histogram bars from the lower to the upper chart and, as you can see, they encompass the chart vertically when present. (My brain cell more easily focuses on less to look at and easily see when those bars appear)…!!

When the Red or Green Histogram Bar appears, it means that two indicators are in agreement (the Short/Long 1.75 ATR Chart Bubbles and the 2.0 ATR Histogram Bars). You can see that many of my other AGAIG Arrows are in agreement as well. Since these indicators can repaint, it’s always best to have multiple indicators in agreement before placing trades.

This charting will work on other time frames, and you can pick any favorite stocks to watch. As you can see from these two charts, you don’t need to scan a lot of charts to make a happy trading day. Some of the others I like are AMD, ENPH, PLTR, AMZN, etc. (ones with close Bid/Ask and 5+ ATR (Average True Range). In these two charts, we are looking at the intraday movement within the larger ATR for 4/4/25.

As always, happy trading!


Hi there—thanks for sharing this chart! I’ve been following your posts and I’m testing out this AGAIG setup now. Really like how everything aligns with ATR bars and the arrows—it keeps things clear and disciplined.

Quick question: Do you ever use this setup for trading options, especially with a small account? I’m more comfortable trading contracts than shares and I’m curious if this approach works well with options plays (like when the signals line up for a quick in-and-out scalp).

Also, I use regular candles instead of Heikin Ashi—wondering if that changes the quality of the entries much in your experience?

Thanks again for sharing—appreciate any thoughts you’re willing to pass along!
 
Last edited by a moderator:
And for me for some reason I am unable not only not to get the colors to be red and green but I do not get the bars at all, even if I replace the code?? I can import your chart with everything working but if I save it and open in different window it stops working/ is not showing up? just the AsGoodAsItGets upperSqueredHistogram Indicator
:(
use this one https://tos.mx/!1zmLTkNV
Code:
# AsGoodAsItGets Lower Indicator
#CSR Buy/Sell Arrows with Short/Long Bubbles
#Developed 4-23-23 First Edition 8-23-22 Revised
#Updated 3/16/24 by C. Ricks

declare lower;
declare real_size;

input atrreversal = 2.0;

def priceh = MovingAverage(AverageType.EXPONENTIAL, high, 5);
def pricel = MovingAverage(AverageType.EXPONENTIAL, low, 5);

def EIL = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastL;
def EIH = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastH;

def signaldown = !isNAN(EIH);
AddVerticalLine(!isNAN(EIH),"SHORT", color.red,curve.long_dash);

def signalrevBot = !isNaN(EIL);
AddVerticalLine(!isNAN(EIL),"LONG", color.Green,curve.long_dash);

input usealerts = yes;
alert(usealerts and signaldown[1] == 1, "Short", alert.bar, sound.ding);
alert(usealerts and signalrevbot[1] == 1, "Long", alert.bar, sound.ding);
 
Last edited by a moderator:


Hi there—thanks for sharing this chart! I’ve been following your posts and I’m testing out this AGAIG setup now. Really like how everything aligns with ATR bars and the arrows—it keeps things clear and disciplined.

Quick question: Do you ever use this setup for trading options, especially with a small account? I’m more comfortable trading contracts than shares and I’m curious if this approach works well with options plays (like when the signals line up for a quick in-and-out scalp).

Also, I use regular candles instead of Heikin Ashi—wondering if that changes the quality of the entries much in your experience?

Thanks again for sharing—appreciate any thoughts you’re willing to pass along!

I only trade options and buy no stocks. Pull up a dual chart using the same stock. On one use regular candles and on the second use Heikin Ashi and see which one is easiest to follow?
 
Last edited by a moderator:
I only trade options and buy no stocks. Pull up a dual chart using the same stock. On one use regular candles and on the second use Heikin Ashi and see which one is easiest to follow?
@csricksdds Here is a script I wrote for identifying puts to sell https://tos.mx/!1OasqYW7. Place it on any chart of a stock or ETF that trades options. You can adjust your parameters as you know.
 
Last edited:
@csricksdds Here is a script I wrote for identifying puts to sell https://tos.mx/!Qkh8czPf. Place it on any chart of a stock or ETF that trades options. You can adjust your parameters as you know.
Typical Delta for 3% OTM Puts. The delta of a put option that is 3% out-of-the-money (OTM) is typically around:
0.25 to 0.35 (negative delta for puts, so −0.25 to −0.35)
This depends on time to expiration (your script uses 10 DTE), Volatility of the underlying and Interest rates and dividends (minor effect in near-term).
For a 10 DTE Put here’s what you’ll generally see across different tickers:

Ticker3% OTM Delta (Put, 10 DTE)
SPY~−0.30
AAPL~−0.28 to −0.33
TSLA~−0.35+ (more volatility)
MSFT~−0.26 to −0.30
Rule of Thumb:
  • 2% OTM ≈ ~−0.35 delta
  • 3% OTM ≈ ~−0.30 delta
  • 5% OTM ≈ ~−0.20 delta
 
Thanks again for the script and your reply—really appreciate you sharing it. I added it to my scans for study, though I mostly day trade options.

Quick question—what specific time frames do you use when you trade? And do you happen to have a scan that identifies stocks that are actively moving and good for scalping? Would love to learn more if you’re open to sharing.

Thanks again—your posts are always solid
 
Typical Delta for 3% OTM Puts. The delta of a put option that is 3% out-of-the-money (OTM) is typically around:
0.25 to 0.35 (negative delta for puts, so −0.25 to −0.35)
This depends on time to expiration (your script uses 10 DTE), Volatility of the underlying and Interest rates and dividends (minor effect in near-term).
For a 10 DTE Put here’s what you’ll generally see across different tickers:

Ticker3% OTM Delta (Put, 10 DTE)
SPY~−0.30
AAPL~−0.28 to −0.33
TSLA~−0.35+ (more volatility)
MSFT~−0.26 to −0.30
Rule of Thumb:
  • 2% OTM ≈ ~−0.35 delta
  • 3% OTM ≈ ~−0.30 delta
  • 5% OTM ≈ ~−0.20 delta
Where in the chart do you see this at i just put on chart aapl nothing shows up help please
 
Where in the chart do you see this at i just put on chart aapl nothing shows up help please
They are just labels that give guidance to potential "safe" options - just points youin the direction for you to start planning a trade.
1752187028016.png
 
maybe i have 2 much labels on top already that is why its not showing can i put it on the lower will labels pop up you think
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
408 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

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.

How do I get started?

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.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top