if (tp1Open) strategy.exit (“long1”، when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp1), qty_percent=tp1Amount,comment=’ زیادہ سے زیادہ سطح1’,alert_message=” زیادہ سے زیادہ سطح 30٪”) strategy.exit (“short1”، when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp1), qty_percent=tp1Amount, comment=’ خالی فلیٹ1’, alert_message=” خالی فلیٹ 30٪”)
if (tp2Open) strategy.exit (“long2”، when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp2), qty_percent=tp2Amount,comment=’ زیادہ برابر2’,alert_message=” زیادہ برابر 50%“) strategy.exit (“short2”، when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp2), qty_percent=tp2Amount, comment=’ خالی فلیٹ 2’, alert_message=” خالی فلیٹ 50%“)
if (tp3Open)
strategy.exit (“long3”، when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp3), qty_percent=tp3Amount,comment=’ زیادہ سے زیادہ 3’,alert_message=” زیادہ سے زیادہ 100٪ “)
strategy.exit (“short3”، when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp3), qty_percent=tp3Amount,comment=’ خالی فلیٹ3’,alert_message=” خالی فلیٹ100٪”)
这是我TV的分批止盈策略,请问该怎么搭建机器人对接?社区的那个直连教程 好像并没有针对这个警报的设置和分批止盈