I would like to see the backtest results (netprofit, number of trades for exemple) of the actual strategy but on a different currency...Is it possible?
//@version=5
strategy("My strategy", overlay=false, initial_capital = 100,default_qty_type=strategy.cash,default_qty_value = 100,commission_type=strategy.commission.percent)
longCondition = ta.crossover(ta.sma(close, 14), ta.sma(close, 28))
if (longCondition)
strategy.entry("My Long Entry Id", strategy.long)
shortCondition = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))
if (shortCondition)
strategy.entry("My Short Entry Id", strategy.short)
truncate(_number, _decimalPlaces) =>
_factor = math.pow(10, _decimalPlaces)
int(_number * _factor) / _factor
current=syminfo.tickerid
sym1 = input.symbol(defval='FTX:BTCUSDT', title='Symbol 1')
var table testTable = table.new(position.top_center, 8, 2, border_width=1,border_color=color.white)
f_fillCell(_table, _column, _row, _title, _value, _bgcolor, _txtcolor) =>
_cellText = _title + "\n" + _value
table.cell(_table, _column, _row, _cellText, bgcolor=_bgcolor, text_color=_txtcolor)
// Draw stats table
var bgcolor = color.new(#ccbca6,0)
if barstate.islastconfirmedhistory
f_fillCell(testTable, 0, 0, "Symbol:", str.tostring(current), color.orange, color.white)
f_fillCell(testTable, 1, 0, "Net Profit:", str.tostring(truncate((strategy.netprofit),2)) + "%", color.orange, color.white)
f_fillCell(testTable, 2, 0, "Tot Trades:", str.tostring(strategy.closedtrades), color.orange, color.white)
f_fillCell(testTable, 0, 1, "", str.tostring(sym1), color.orange, color.white)```