कृपया दोस्तों, ट्रेडिंगव्यू के अलर्ट_मेसेज को FMZ से कैसे जोड़ा जाए।

लेखक:q631207207, बनाया गयाः 2022-05-16 21:10:12, अद्यतन किया गयाः 2022-05-16 21:11:40

यदि (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%)

यदि (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%)

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

अधिक

आविष्कारक मात्राकेवल exit बिना entry के कैसे खुलता है। इसके अलावा, आविष्कारक सीधे पाइन बना सकते हैं और पाइन बनाने की नीति को सीधे देख सकते हैं कि क्या यह चल सकता है।

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, "स्टॉप लॉस", step = 0.1, group = "Take Profits") / 100 alertfg = input ((true)) जी हां. जी हाँ. जी हाँ. जी हाँ. longCondition = alertfg और close>close[1] if (longCondition) strategy.entry (("long", strategy.long, comment='अधिक करें', alert_message="अधिक करें") longsl=alertfg और 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, "स्टॉप लॉस", step = 0.1, group = "Take Profits") / 100 जी हां. जी हाँ. जी हाँ. जी हाँ. longCondition = alertfg and close>close[1] if (longCondition) strategy.entry (("long", strategy.long, comment='अधिक करें', alert_message="अधिक करें") .. longsl=alertfg और 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%") यदि (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%") .. यदि (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%") यह मेरी रोकथाम रोकथाम है, सीधे जाने के लिए नहीं चल रहा है।