//@version=5 strategy("EMA cross long-close", overlay=true, initial_capital = 1000, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, commission_type = strategy.commission.percent, commission_value = 0.04, process_orders_on_close = true) // time startDate = input.time(timestamp('2017-01-02T00:00:00'), title='Start...
//@version=5 indicator("EMA cross long-close indicator", overlay=true) // EMA short_length = input(5, "short_length") long_length = input(10, "long_length") ema5 = ta.ema(close, short_length) ema10 = ta.ema(close, long_length) plot(ema5, color = color.red) plot(ema10, color = color.yellow) // signal long = ta.crossover(ema5, ema10) long_close =...