여러분, 트레이딩뷰의 알레트_메시지가 FMZ를 연결하는 방법을 변경해 주시기 바랍니다.

저자:q631207207, 창작: 2022-05-16 21:10:12, 업데이트: 2022-05-16 21:11:40

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

더 많은

발명가 양자화또한, 개발자는 직접 핀을 만들 수 있습니다. 핀을 만들면 정책을 직접 가져와서 실행할 수 있는지 확인할 수 있습니다.

q631207207이리 옮겨서 쓸 수 없었어요. 왜냐하면 어떤 것들이 돌아가지 않았기 때문이죠. 이제 제 문제는 어떻게 해야 하는지에 관한 것입니다. FMZ의 로봇을 어떻게 받아들여야 하는지에 대한 제 전략이 있습니다.

발명가 양자화`` tp1Open = input.bool ((진짜, "TP1", group = "Take Profits") tp1 = input.float ((2.0, "TP Level (%) ", step = 0.1, group = "Take Profits") / 100 tp1Amount = input.int ((30, "Amount (%) ", step = 1, group = "Take Profits") tp2Open = input.bool ((진짜, "TP2", group = "Take Profits") tp2 = input.float ((2.5, "TP Level (%) ", step = 0.1, group = "Take Profits") / 100 tp2Amount = input.int ((71, "Amount (%) ", step = 1, group = "Take Profits") tp3Open = input.bool ((진짜, "TP3", group = "Take Profits") tp3 = input.float ((3.0, "TP Level (%) ", step = 0.1, group = "Take Profits") / 100 tp3Amount = input.int ((100, "Amount (%) ", step = 1, group = "Take Profits") st5=input.float ((1.3, "Stop Loss", step = 0.1, group = "Take Profits") / 100 alertfg = input (진짜) C: 자, 자, 자. longCondition = alertfg and close>close [1] if (longCondition) 는 strategy.entry (("long", strategy.long, comment='더 많은 일을 하고', alert_message="더 많은 일을 하고") longsl=alertfg and closeclose [1] strategy.close ("short", when=high > strategy.position_avg_price * (1 + st5) or shortsl,comment='空损', alert_message="空头停止损") // 평형 논리 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%") `` 바로 복사하면 괜찮을 겁니다. 마지막 몇 줄은 작아지고,

발명가 양자화alertfg는 정의되지 않았습니다.

q631207207tp1Open = input.bool ((진짜, "TP1", group = "Take Profits") tp1 = input.float ((2.0, "TP Level (%) ", step = 0.1, group = "Take Profits") / 100 tp1Amount = input.int ((30, "Amount (%) ", step = 1, group = "Take Profits") tp2Open = input.bool ((진짜, "TP2", group = "Take Profits") tp2 = input.float ((2.5, "TP Level (%) ", step = 0.1, group = "Take Profits") / 100 tp2Amount = input.int ((71, "Amount (%) ", step = 1, group = "Take Profits") tp3Open = input.bool ((진짜, "TP3", group = "Take Profits") tp3 = input.float ((3.0, "TP Level (%) ", step = 0.1, group = "Take Profits") / 100 tp3Amount = input.int ((100, "Amount (%) ", step = 1, group = "Take Profits") st5=input.float ((1.3, "Stop Loss", step = 0.1, group = "Take Profits") / 100 C: 자, 자, 자. longCondition = alertfg and close>close[1] if (longCondition) 는 strategy.entry (("long", strategy.long, comment='더 많은 일을 하고', alert_message="더 많은 일을 하고") 이 모든 것은 longsl=alertfg and closeclose [1] strategy.close ("short", when=high > strategy.position_avg_price * (1 + st5) or shortsl,comment='空损', alert_message="空头停止损") 이 모든 것은 // 평형 논리 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%") 이 모든 것은 제 제약입니다. 바로 여기로 이동하고,