Fake Strategy
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © strategydebunker

//@version=5
strategy("Fake Strategy", overlay=true, initial_capital=1000, default_qty_value=100, default_qty_type=strategy.percent_of_equity, commission_type=strategy.commission.percent, commission_value=0.1)
import PineCoders/Time/3 as t
resolution = t.secondsToTfString(timeframe.in_seconds(timeframe.period), 2)
[htfClose, htfHigh, htfLow] = request.security(syminfo.tickerid, resolution, [close, high, low], lookahead=barmerge.lookahead_on)

if(close!=htfClose and htfHigh > high and bar_index > last_bar_index-5000)
    strategy.entry('Long', strategy.long)
    strategy.exit("ExitLong", "Long", limit=htfHigh, stop=htfLow-ta.tr)