Strategy · Pine Script v5 · On the chart

SAIYAN OCC Strategy R5.41

by IAMATOMIC001

SAIYAN OCC Strategy is a price-chart strategy that builds a short moving average of open and close prices using TEMA, Hull, or ALMA and colours bars by trend.

View on GitHub

Repaints

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code769
Settings40inputs
LicenceNone stated
Last update12 months ago31 Oct 2025

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

SAIYAN OCC Strategy R5.41 can take long, short, or both directions, optionally from Heikin Ashi closes or a multiplied alternate timeframe. Supply and demand boxes, swing labels, zigzag, break-of-structure and point-of-interest labels, and support-resistance lines are drawn on the chart. Position size defaults to ten percent of equity. It has no stop loss by default and requests higher-timeframe data with lookahead.

Details

Published by

IAMATOMIC001 on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Trend, Moving averages, Support & resistance, SMC / ICT / price action

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time
  • 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
TIMEFRAMEtimeframe15res
Use Alternate SignalsbooltrueuseRes
Multiplier for Alernate Signalsint8intRes
MA Type: stringALMAbasisType
MA Periodint2basisLen
Offset for LSMA / Sigma for ALMAint5offsetSigma
Offset for ALMAfloat0.85offsetALMA
Show coloured Bars to indicate Trend?booltruescolor
Delay Open/Close MA (Forces Non-Repainting)int0delayOffset
What trades should be taken : stringBOTHtradeType
Signals for Heikin Ashi Candlesboolfalseh
Swing High/Low Lengthint10swing_length
Show all 40 settings
SettingTypeDefaultVariable
History To Keepint20history_of_demand_to_keep
Supply/Demand Box Widthfloat2.5box_width
Show Zig Zagboolfalseshow_zigzag
Show Price Action Labelsboolfalseshow_price_action_labels
Supplycolorcolor.new(#EDEDED,70)supply_color
Outlinecolorcolor.new(color.white,75)supply_outline_color
Demandcolorcolor.new(#00FFFF,70)demand_color
Outlinecolorcolor.new(color.white,75)demand_outline_color
BOS Labelcolorcolor.whitebos_label_color
POI Labelcolorcolor.whitepoi_label_color
Price Action Labelcolorcolor.blackswing_type_color
Zig Zagcolorcolor.new(#000000,0)zigzag_color
Channel BalancebooltruechannelBal
SR On/OffbooltrueenableSR
Support Colorcolor#00DBFFcolorSup
Resistance Colorcolor#E91E63colorRes
S/R Strengthint2strengthSR
Line StylestringDottedlineStyle
S/R Line Widthint2lineWidth
Zones On/OffbooltrueuseZones
High Low Zones On/OffbooltrueuseHLZones
Zone Width %int2zoneWidth
Expand SRbooltrueexpandSR
Initial Stop Loss Points (zero to disable)int0slPoints
Initial Target Profit Points (zero for disable)int0tpPoints
Number of Bars for Back Testingint4000ebar
- SET to ZERO for Daily or Longer Timeframesboolfalsedummy
Long Entry Messagetexti_alert_txt_entry_long
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

XXX

by MeridianAlgo
9 stars

This multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots

Strategy v5 TrendMoving averages Repaints
Updated 4 months ago · MIT GitHub repository of XXX

CHOCH + BOS Strategy

by skipp-dev
1 stars

This strategy identifies market structure shifts, specifically Change of Character (ChoCH) and Break of Structure (BOS), on the main price chart. It triggers entries based on swing pivot breakouts with an optional volume filter and moving average confirmation.

Strategy v6 SMC / ICT / price actionTrend
Updated 2 days ago · None stated GitHub repository of CHOCH + BOS Strategy

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

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