Strategy · Pine Script v6 · On the chart

STT SR TMA Scale Plan

by majohnst

The STT SR TMA Scale Plan is an intraday trading strategy that overlays price charts to execute trades based on Triangular Moving Average (TMA) crossings, VWAP breakouts, and support/resistance levels like daily pivots or Anchored VWAP.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code2,172
Settings40inputs
LicenceNone stated
Last update3 months ago1 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Entries are restricted within defined daily time windows and stock criteria. Exits trigger based on TMA or VWAP reversal conditions, or automatically at a specified daily market close time. Key settings adjust trade direction, trigger logic, and session timing. There is no built-in hard stop loss by default.

Details

Published by

majohnst on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Sessions & time, Support & resistance

Markets

Stocks

Timeframes

M15-H1

Risk Notes

  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Script TitlestringSTT SR TMA ScalescriptName
Show label on chart?boolfalseshowLabel
Entry TypestringTMA-CrossingprimaryEntryType
Entry Type Addition Logical MethodstringoradditionalEntryTypeLogic
Price Trigger TypestringClosemainTriggerPriceType
Allow scale up entriesboolfalseallowScale
Limit Only One Trade Per DayboolfalseoneSignalPerDay
Enable Daily ClosebooltruecloseDaily
Trade types allowedenumTradeDirection.LongtradeDirectionSelected
Use Daily Pivotbooltruesr_usePivots
Use Anchored VWAPboolfalsesr_useAVWAP
Use True 5-Day MAboolfalsesr_use5DMA
Show all 40 settings
SettingTypeDefaultVariable
AVWAP Anchor Lookbackint100sr_avwapLookback
Hour (ET) to begin allowing trade entryint8dailyEntryWindowStartHour
Minutes after Hour to begin allowing trade entryint30dailyEntryWindowStartMinute
Hour (ET) to force daily trade exitsint15dailyExitWindowStartHour
Minutes after Hour to force trade exitsint30dailyExitWindowStartMinute
Force Exit Buffer Minutesint15exitBufferMinutes
Allow Trading Alerts in Extended HoursbooltrueallowETH
Trigger Entry Enable Hour (ET)int9triggerHour
Trigger Entry Enable Minuteint45triggerMinute
Include Pre-Market HighboolfalseusePreMarketHigh
Max Float Size (M)float20.0floatSize
Volume Multiplierfloat1.0volumeMultiplier
Min Percent Gain (%)float25.0percentGain
Trade Entry Additional TypestringBreakoutadditionalEntryType
Entry Requires TMA bullish statebooltruetmaEntry_required
Entry Requires Price Above VWAPboolfalsevwapEntryRequired
Exit Requires Price Below VWAPboolfalsevwapExitRequired
Exit Requires TMA bearish statebooltruetmaExitRequired
Use Price Only (disables all others)boolfalsemanualPriceOnly
TMA trigger typeenumTmaTriggerType.CrossingtmaCrossingType
Primary Stop TypestringRange-BasedprimaryStopLossType
Stop Type Addition Logical MethodstringoradditionalStopLossTypeLogic
Additional Stop TypestringTMA-CrossingadditionalStopLossType
Primary Take Profit TypestringRange-BasedprimaryTakeProfitType
Additional Take Profit TypestringTMA-CrossingadditionalTakeProfitType
Take Profit $1 Range Start float0.07tpAmount
Use Range Based Stop/ProfitsbooltruerangeBased
Long starting value at $1float0.08rangeBasedInit
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

VWAP Bounce & Cross

by Basant1Saini
1 stars

This strategy trades intraday price interactions with the Volume Weighted Average Price (VWAP). It offers bounce and crossover entry modes, filtered by an Exponential Moving Average trend filter and a customizable trading session window. Stop loss levels are c

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of VWAP Bounce & Cross

Omar Edited WF

by Alorse
330 stars

Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Omar Edited WF
257 stars

This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross

Strategy v5 TrendSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of 30s - ES 1m Strategy Candle Bar

This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced VWAP-Momentum Pullback Trend Qualifier
104 stars

This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of 3MA and Fractals Strategy

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers