Sumber daya yang dimuat... Pemuatan...

Teman-teman, bagaimana cara tradingview mengubah alert_message untuk menghubungkan FMZ?

Penulis:q631207207, Dibuat: 2022-05-16 21:10:12, Diperbarui: 2022-05-16 21:11:40

jika (tp1Buka)strategy.exit(long1, when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp1), qty_percent=tp1Amount, comment= lebih rata 1, alert_message= lebih rata 30%)strategy.exit(short1, when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp1), qty_percent=tp1Amount, comment=berkas kosong 1, alert_message=berkas kosong 30%)

jika (tp2Open)strategy.exit(long2, when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp2), qty_percent=tp2Amount, comment= lebih rata2, alert_message= lebih rata50%)strategy.exit(short2, when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp2), qty_percent=tp2Amount, comment=berkas kosong 2, alert_message=berkas kosong 50%)

jika (tp3Open)
strategy.exit(long3, when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp3), qty_percent=tp3Amount, comment= lebih rata 3, alert_message= lebih rata 100%)strategy.exit(short3, when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp3), qty_percent=tp3Amount, comment=berkas kosong 3, alert_message=berkas kosong 100%)

这是我TV的分批止盈策略,请问该怎么搭建机器人对接?社区的那个直连教程 好像并没有针对这个警报的设置和分批止盈

Lebih banyak

Penemu KuantitasSelain itu, pencipta dapat langsung membuat pin untuk membuat dan mengambil kebijakan langsung untuk melihat apakah itu bisa berjalan.

q631207207Sekarang masalah saya adalah, bagaimana strategi saya harus mengambil robot FMZ, kode robot komunitas tampaknya tidak terbagi.

Penemu Kuantitas`` tp1Open = input.bool ((true, "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 ((true, "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 ((true, "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 ((true)) J: Ya. Ya. Ya. Ya. Ya. Logika investasi. longCondition = alertfg and close>close[1] if (longCondition) strategy.entry (("long", strategy.long, comment='lakukan lebih', alert_message="lakukan lebih") longsl=alertfg and closeclose[1] strategi.close ("short", when=high > strategy.position_avg_price * (1 + st5) or shortsl,comment='air loss', alert_message="air head stop") // Logika perbandingan if tp1Open strategi.exit ("long1", when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp1), qty_percent=tp1Amount, comment='berimbang1', alert_message="berimbang 30%") strategi.exit ("short1", when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp1), qty_percent=tp1Amount, comment='berskala kosong1', alert_message="berskala kosong 30%") if tp2Open strategy.exit ("long2", when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp2), qty_percent=tp2Amount, comment='berimbang2', alert_message="berimbang50%") strategy.exit ("short2", when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp2), qty_percent=tp2Amount, comment='berataan2', alert_message="berataan50%") if tp3Open strategy.exit ("long3", when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp3), qty_percent=tp3Amount, comment='berimbang 3', alert_message="berimbang 100%") strategi.exit ("short3", when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp3), qty_percent=tp3Amount, comment='berataan 3', alert_message="berataan 100%") `` Jika Anda mengkliknya, Anda akan melihat bahwa Anda telah mengkliknya, Anda akan melihat bahwa Anda telah mengkliknya.

Penemu Kuantitasalertfg tidak didefinisikan.

q631207207tp1Open = input.bool ((true, "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 ((true, "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 ((true, "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 (Tawa) (Tawa) (Tawa) (Tawa) (Tawa) (Tawa) (Tawa) (Tawa) (Tawa) (Tawa) longCondition = alertfg and close>close[1] if (longCondition) strategy.entry (("long", strategy.long, comment='lakukan lebih', alert_message="lakukan lebih") Apa yang terjadi? longsl=alertfg and closeclose[1] strategi.close ("short", when=high > strategy.position_avg_price * (1 + st5) or shortsl,comment='air loss', alert_message="head stop") Apa yang terjadi? // Logika perbandingan if (tp1Open) strategi.exit ("long1", when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp1), qty_percent=tp1Amount, comment='lebih dari rata1', alert_message="lebih dari rata 30%") strategi.exit ("short1", when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp1), qty_percent=tp1Amount, comment='berkas kosong1', alert_message="berkas kosong 30%") if (tp2Open) strategi.exit ("long2", when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp2), qty_percent=tp2Amount, comment='lebih dari rata2', alert_message="lebih dari rata 50%") strategi.exit ("short2", when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp2), qty_percent=tp2Amount, comment='berataan2', alert_message="berataan50%") Apa yang terjadi? Jika (tp3Open) strategy.exit ("long3", when=strategy.position_size > 0, limit=strategy.position_avg_price * (1 + tp3), qty_percent=tp3Amount, comment='berjumlah 3', alert_message="berjumlah 100%") strategi.exit ("short3", when=strategy.position_size < 0, limit=strategy.position_avg_price * (1 - tp3), qty_percent=tp3Amount, comment='berataan 3', alert_message="berataan 100%") "Saya tidak tahu apa yang terjadi, tapi saya tahu bahwa saya tidak akan pernah bisa melakukannya", katanya.