di niente Tom!

ciao,Marco
INPUTS: @price(CLOSE), @periods(21), @deviations(2), @matype(SIMPLE), @TS(100), @TP(50) set TRAILING_STOP= @TS set TRAILING_PERCENT= @TP # Buy if a previous value was below the low band and is now above SET Bottom = BBB(@price, @periods, @deviations, @matype) SET Top = BBT(@price, @periods, @deviations, @matype) ((REF(@price, 1) < REF(Bottom, 1)) AND @price > Bottom) OR # Also buy if the close is above the top band plus 2% @price > Top * 1.02

Leave a comment: