avatar of q631207207 q631207207
집중하다 사신
0
집중하다
2
수행원

트레이딩뷰의 alert_message를 FMZ에 연결하는 방법을 모두에게 묻고 싶습니다.

만든 날짜: 2022-05-16 21:10:12, 업데이트 날짜: 2022-05-16 21:11:40
comments   5
hits   1080

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的分批止盈策略,请问该怎么搭建机器人对接?社区的那个直连教程 好像并没有针对这个警报的设置和分批止盈