Hi all,
I'm trying to create a ThinkorSwim study that replicates the setup shown in the attached chart. I'm looking for help with scripting the following:
1. ATR Levels Display
Show dynamic ±1 ATR levels based on Daily ATR
Color-coded zone with labels (as shown: $541.96, $533.26, etc.)
2. EMA Ribbon
EMA Ribbon with gradients (I believe it uses 8, 13, 21, 34 or similar EMAs)
Colors changing from red to green based on trend direction
3. MACD Filter
Only highlight trade zones when MACD histogram is red and both MACD/Signal lines are below zero
4. Optional (if possible):
Detect small wedge/triangle pattern forming at the bottom (marked with yellow lines)
Let me know if this is doable or if someone already has something close I can build off. I’m open to combining indicators or simplifying logic if needed.
Thanks in advance!
## Request: Create TOS Script Based on This Image
Can someone help create a ThinkorSwim study/script that replicates everything shown in this chart?
Chart features I need in the script:
Thanks a lot!
I'm trying to create a ThinkorSwim study that replicates the setup shown in the attached chart. I'm looking for help with scripting the following:
1. ATR Levels Display
Show dynamic ±1 ATR levels based on Daily ATR
Color-coded zone with labels (as shown: $541.96, $533.26, etc.)
2. EMA Ribbon
EMA Ribbon with gradients (I believe it uses 8, 13, 21, 34 or similar EMAs)
Colors changing from red to green based on trend direction
3. MACD Filter
Only highlight trade zones when MACD histogram is red and both MACD/Signal lines are below zero
4. Optional (if possible):
Detect small wedge/triangle pattern forming at the bottom (marked with yellow lines)
Let me know if this is doable or if someone already has something close I can build off. I’m open to combining indicators or simplifying logic if needed.
Thanks in advance!
## Request: Create TOS Script Based on This Image

Can someone help create a ThinkorSwim study/script that replicates everything shown in this chart?
Chart features I need in the script:
- EMA cloud (multi-EMA ribbon)
- ATR levels with call/put targets
- PML / PMH lines
- MACD panel with histogram and cross arrows
- Optional: RSI and volume bars
- Dynamic label showing ATR % and range
Thanks a lot!
Last edited by a moderator: