Strategy · Pine Script v5 · On the chart

algo-trade-indian-commodity

by akash-yellgetti

A strategy-type script for the price chart that draws the high, low and midpoint of the first part of each session, set by start hour and minute inputs, with alerts when price crosses the high or low.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code380
Settings25inputs
LicenceNone stated
Last update2 years ago15 Jul 2024

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

algo-trade-indian-commodity adds VWAP and a SuperTrend with adjustable ATR period, multiplier, ATR method, signal display and highlighting, plus pivot-based support and resistance and a moving average pair. A date range input is included. Default capital is 100000 with a quantity of one. Order and stop rules are not shown in the supplied code.

Details

Published by

akash-yellgetti on GitHub

Draws

On the price chart

Markets

Oil & commodities

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
Lengthintlenlength
Start Hourint9Start Hour
Start Minuteint30Start Minute
ATR Periodint10Periods
ATR Multiplierfloat2.0Multiplier
Change ATR Calculation Method?booltruechangeATR
Show Buy/Sell Signals?booltrueshowsignals
Highlighter On/Off?booltruehighlighting
Show BreaksbooltruetoggleBreaks
Left Bars inputlenleftBars
Right BarsinputlenrightBars
Volume Thresholdinputlen * 2volumeThresh
Show all 25 settings
SettingTypeDefaultVariable
Sourcesourceclosesrc
Fast Lengthint5fastLen
Slow Lengthint10slowLen
Exponential Moving Averagebooltrueema
Slopefloat0.5mult
Slope Calculation MethodstringAtrcalcMethod
backpaintbooltruebackpaint
Up Trendline Colorcolorcolor.greenupCss
Down Trendline Colorcolorcolor.reddnCss
Show Extended LinesbooltrueshowExt
Fromtimetimestamp("14 FEB 2024 09:00 +0000")i_from
Thrutimetimestamp("28 FEB 2024 23:30 +0000")i_thru
Show Date Rangebooltruei_show
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

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

1-Min Gold Taylor Technique

by eddiebelaval
7 stars

This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad

Strategy v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 1-Min Gold Taylor Technique

Diego's Strategy

by jerryinyang
5 stars

Diego's Strategy draws confirmed swing pivots on the price chart and connects them with dashed lines when the price move exceeds an ATR-based deviation threshold. It can plot Fibonacci retracement levels and use a chosen zone for entries, with separate Fibonac

Strategy v4 Support & resistanceTrend
Updated 2 years ago · None stated GitHub repository of Diego's Strategy
3 stars

Hercules Strategy Rewrite is an automated backtesting strategy that generates entry signals using engulfing candlestick patterns, tick thresholds, and support or resistance level breakouts. It offers multi-layer filtering including moving average trend checks,

Strategy v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Hercules Strategy Rewrite

AlgoBot VWAP Pullback Strategy

by ghostnathan30-ops
1 stars

A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries

Strategy v6 TrendSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Pullback Strategy

More Sessions & time scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers