MT 發送通知 4 & 5 到電報

0
(0)

你好, 那裡!

此處說明如何將通知發送到電報
1. 獲取代幣 tmsrv_bot
2. Copy perform tms_發送() or embrace tmsrv.mqh
3. 貼上您的令牌:

Inserted Code
bool tms_send(字串訊息, 字串標記="您的_TOKEN_HERE")

利用實例:

Inserted Code
void OnTick(){ //%
 
   如果(RSI(無效的,0,14,PRICE_CLOSE,1)>30
      && RSI(無效的,0,14,PRICE_CLOSE,0)<30) {
      
      tms_發送(字串格式("%s RSI 超賣 - 是時候買進了",圖像()));    
   }
  
   如果(RSI(無效的,0,14,PRICE_CLOSE,1)<70
      && RSI(無效的,0,14,PRICE_CLOSE,0)>70) {
      
      tms_發送(字串格式("%s RSI is overbought  - time to SELL",圖像()));
   }
}

For certain you need to use official telegram API, however imagine me, that is a ache within the ass once you use it in several initiatives solely only for sending alerts.

I've made tmsrv.pw for my very own wants, however determined to share - now a challenge in growth.
Please write in case you discover a bug otherwise you want some performance.

Bot instructions:

/pause - Pauses sending messages
/玩 - Resumes sending messages
/token - Send your token
/最終的 - 發送 5 final messages
/現在 - Set bot's working time interval

*
/not potential to use from the command checklist, telegram not supported command with parameters
you've gotten to sort it see format under:
/現在 {again} {先} - set sending time interval type now

實例:
/現在 -2 6 sending time interval will probably be set
hour_form = hour_current - 2
hour_to = hour_current + 6

Overlook to say you've gotten to add API URL to Choices -> see image:
連接圖片
Send notification from MT 4 & 5 to Telegram 1
Right here is demo EA

1. add URL( https://tmsrv.pw/ship ) to Allowed see publish above
2. Paste your token instantly to perform parameter:

連接圖片
Send notification from MT 4 & 5 to Telegram 2

Right here MQL4 script:

連接文件
File Type: mq4 demo_tmsrv.mq4 5 知識庫 | 427 下載
It appears to work fantasticSend notification from MT 4 & 5 to Telegram 3
連接文件
File Type: mq4 demo_tmsrv_positions.mq4 9 知識庫 | 39 下載

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.