Strategy · Pine Script v5 · On the chart

Archens Shares

by hasnocool· code credited to //@version=5

Archens Shares is an intraday breakout strategy designed for session-based trading.

View on GitHub

GitHub stars106on the repository
Pine versionv5runs as is
Lines of code21
Settings2inputs
LicenceGPL-3.0
Last update2 years ago18 Sep 2024

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  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

21 lines of Pine Script v5 from ARCHENS SHARES.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.

ARCHENS SHARES.pine
// Copyright (c) 2019-present
//@version=5
strategy("ARCHENS SHARES", overlay=true)
timeframe = input.timeframe(defval = "30", title = "timeframe")
session = input.session(defval="0945-1015", title = "session")
tradein = time(timeframe, session)
half_high = request.security(syminfo.tickerid, "30", high)
half_low = request.security(syminfo.tickerid, "30", low)
HH = ta.valuewhen(tradein, half_high, 0 )
HL = ta.valuewhen(tradein, half_low, 0 )
buy = ta.crossover(close,HH)
sell = ta.crossunder(close,HL)
// Reset strategy at the start of each day
if dayofweek != dayofweek[1]
    buy := false
    sell := false
plot(HH, style=plot.style_circles, color = color.orange, linewidth = 2)
plot(HL, style=plot.style_circles, color = color.orange, linewidth = 2)
strategy.entry("long", direction = strategy.long, when = buy, comment = "ARCHENS BUY")
strategy.entry("short", direction = strategy.short, when = sell, comment = "ARCHENS SELL")
Expand (29 lines)

Overview

Archens Shares tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closing price crosses above the recorded session high, and a short position is entered when price crosses below the session low. The levels plot as orange circles on the chart. There are no stop-loss or take-profit rules, leaving position exits solely to reverse breakout signals.

Details

Published by

hasnocool on GitHub

Code credit

//@version=5, as written in the script's header

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Breakout, Sessions & time, Support & resistance

Markets

Stocks, Indices

Timeframes

M15-H1

Risk Notes

  • The strategy enters trades without a stop loss

Topics

analysisbtcusdtcryptocurrencydatapandaspythonsimulationtradingtradingview

Settings

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

SettingTypeDefaultVariable
timeframetimeframe30timeframe
sessionsession0945-1015session
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

7 stars

This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w

Strategy v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of London SR Cleaner WR (TP 0.20)
6 stars

This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela

Strategy v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Advanced ORB + ICT Strategy

This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr

Strategy v6 BreakoutTrend
Updated today · AGPL-3.0 GitHub repository of Forven S01509 - Simple Donchian 20/10 Breakout
257 stars

This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos

Strategy v6 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Best Chart 1m Strategy Candle Bar

STRG-HOLP

by harryguiacorn
219 stars

STRG-HOLP is a trading strategy that identifies High of Low Period (HOLP) and Low of High Period (LOHP) breakout setups. It tracks the lowest low or highest high over a user-defined lookback window. A long trade opens when the close breaks above the high of th

Strategy v5 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of STRG-HOLP

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