- 십월 9, 2018
- 게시자: 외환 위키 팀
- 범주: 외환 거래 시스템
안녕하세요, 거기!
Right here instruction how to ship notification to telegram
1. 토큰 받기 tmsrv_bot
2. Copy perform tms_send() or embrace tmsrv.mqh
3. 토큰 붙여넣기:
bool tms_send(string message, string token="YOUR_TOKEN_HERE")
Utilization instance:
void OnTick(){ //% 만약에(iRSI(없는,0,14,PRICE_CLOSE,1)>30 && iRSI(없는,0,14,PRICE_CLOSE,0)<30) { tms_send(StringFormat("%s RSI is oversold - time to BUY",영상())); } 만약에(iRSI(없는,0,14,PRICE_CLOSE,1)<70 && iRSI(없는,0,14,PRICE_CLOSE,0)>70) { tms_send(StringFormat("%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
/play - Resumes sending messages
/token - Send your token
/final - 보내다 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} {ahead} - set sending time interval type now사례:
/지금 -2 6 sending time interval will probably be set
hour_form = hour_current - 2
hour_to = hour_current + 6Overlook to say you've gotten to add API URL to Choices -> see image: