as to your code, is the "stoploss" logic correct? or as i understand (font in red)?
DislikedIf someone wants to automated trade this system, here's the simple code (for Zorro):
[code]function run()
{
// Open a Daily chart
BarPeriod = 1440;
// Place a 5 EMA High and 5 EMA Low on the chart.
var EMA5H = EMA(series(priceHigh()),5);
var EMA5L = EMA(series(priceLow()),5);
// Stop Loss is high/low from last candle.
Stop = priceHigh(1) - priceLow(1);
Stop = priceHigh(1) for short, or priceLow(1) for long?
// Short when candle closes inside the channel
if(priceOpen() > EMA5H && priceClose()...Ignored