Hull Crossover Strategy no TP or SL
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Tuned_Official
//@version=4
strategy(title="Hull Crossover Strategy no TP or SL", overlay = true, pyramiding=1, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.04)

//Inputs
hullLen1 = input(title="Hull fast length", defval=56)
hullLen2 = input(title="Hull slow length", defval=76)

//Indicators
fasthull = hma(close, hullLen1)
slowhull = hma(close, hullLen2)

//conditions
go_long = crossover(fasthull, slowhull)
go_short = crossunder(fasthull, slowhull)

//Entry
strategy.order("long", strategy.long, when=go_long)
strategy.order("Short", strategy.short, when=go_short)