Strategy · Pine Script v4 · On the chart

ABU Euroramp

by hasnocool

This strategy executes a time-based long entry at 02:00 exchange time, targeted around the European market open.

View on GitHub

GitHub stars106on the repository
Pine versionv4older, still runs
Lines of code20
Settings0inputs
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

20 lines of Pine Script v4 from ABUs Euroramp.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.

ABUs Euroramp.pine
//@version=4
strategy("ABU Euroramp", overlay=true)
//Chicago timezone 9am Europe / 3am EST
if (hour == 2 and minute == 00)
    strategy.entry("LE", strategy.long, comment="Long", qty = 2)
    
if (strategy.position_avg_price - 5 >= close)
    strategy.exit("LE", comment = "Stop Loss", stop = strategy.position_avg_price - 5, qty_percent = 100)
if (strategy.position_size == 2)
    if (close - strategy.position_avg_price >= 3)
        strategy.close("LE", comment="TP 1", qty_percent = 50)
        strategy.exit("LE", comment = "Stop BE", stop = strategy.position_avg_price + 0.5)
else
    if (close - strategy.position_avg_price >= 10)
        strategy.cancel("LE")
        strategy.exit("LE", comment = "Trail Stop + 5", stop = strategy.position_avg_price + 5)
    
    if (hour == 15 and minute == 00)
        strategy.close_all(comment="Close EOD")
Expand (21 lines)

Overview

ABU Euroramp opens a position of two units and applies fixed-point profit and risk management. If price drops five points below the entry, a full stop loss triggers. When price gains three points, it takes partial profit on 50% of the position and adjusts the stop to breakeven plus 0.5 points. Further gains to ten points trail the stop to entry plus five points. Any remaining position is closed at 15:00.

Details

Published by

hasnocool on GitHub

Type

Strategy, Pine Script v4

Draws

On the price chart

Category

Sessions & time

Markets

Forex, Indices

Timeframes

M15-H1, M1-M5

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.

Topics

analysisbtcusdtcryptocurrencydatapandaspythonsimulationtradingtradingview

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

361 stars

Forven S01512 — Monday Drift is a calendar-based long trading strategy designed to exploit time-based recurring market patterns. It tracks UTC calendar days and hours to enter a long position at a specified day and hour, holding it for a fixed duration until a

Strategy v6 Sessions & time
Updated today · AGPL-3.0 GitHub repository of Forven S01512 - Monday Drift

This overlay strategy offers two selectable entry modes: a Bollinger squeeze on typical price and a simple moving-average cross. It filters trades by weekday, session, date range, and an optional news window, and can restrict direction or invert the side. Risk

Strategy v5 Volatility & bandsMoving averages
Updated today · None stated GitHub repository of Boilerplate Configurable Strategy [Yosiet]
257 stars

Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized 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