@@ -247,8 +247,7 @@ string JoinInts(int &values[], string separator=", ");;
247247bool ManageDoubleIndicatorBuffer (int id , double buffer []);;
248248bool ObjectCreateRegister (string name , int type , int window =0 , datetime time1 =NULL , double price1 =NULL , datetime time2 =NULL , double price2 =NULL , datetime time3 =NULL , double price3 =NULL );;
249249bool ParseDateTime (string value , int flags , int &result []);;
250- bool UpdateTrend (double &values [], int offset , double &trend [], double &uptrend [], double &downtrend [], double &uptrend2 [], bool enableColoring =false , bool enableUptrend2 =false , int lineStyle =EMPTY , int normalizeDigits =EMPTY_VALUE );;
251-
250+ bool UpdateTrend (double values [], int offset , double &trend [], double &uptrend [], double &downtrend [], double &uptrend2 [], bool enableColoring =false , bool enableUptrend2 =false , int lineStyle =EMPTY , int digits =EMPTY_VALUE );;
252251
253252// include/rsf/functions/chartlegend.mqh
254253string CreateChartLegend ();;
@@ -257,7 +256,6 @@ bool RemoveChartLegend();;
257256void UpdateBandLegend (string legendName , string indicatorName , string status , color bandsColor , double upperValue , double lowerValue );;
258257void UpdateTrendLegend (string legendName , string indicatorName , string status , color uptrendColor , color downtrendColor , double value , int trend =0 );;
259258
260-
261259// include/rsf/functions/configuration.mqh
262260string GetAccountConfigPath (string company =" " , int account =NULL );;
263261
@@ -301,7 +299,6 @@ double GetIniDouble(string fileName, string section, string key, double defaul
301299
302300bool WriteIniString (string fileName , string section , string key , string value );;
303301
304-
305302// include/rsf/functions/log.mqh
306303int catch (string caller , int error =NO_ERROR , bool popOrder =false );;
307304int debug (string message , int error =NO_ERROR , int loglevel =NULL );;
@@ -327,17 +324,16 @@ int log2Debug (string message, int error, int level);;
327324int log2File (string message , int error , int level );;
328325int log2Mail (string message , int error , int level );;
329326int log2SMS (string message , int error , int level );;
327+ int log2Telegram (string message , int error , int level );;
330328int log2Terminal (string message , int error , int level );;
331329
332330bool SetLogfile (string filename );;
333331
334-
335332// include/rsf/functions/scriptrunner.mqh
336333bool RunScript (string name , string parameters = " " );;
337334bool ScriptRunner .GetParameters (string ¶meters []);;
338335bool ScriptRunner .SetParameters (string parameters );;
339336
340-
341337// include/rsf/functions/iCustom/
342338double icALMA (int timeframe , int maPeriods , string maAppliedPrice , double distributionOffset , double distributionSigma , double maReversalFilter , int iBuffer , int iBar );;
343339double icHalfTrend (int timeframe , int periods , int iBuffer , int iBar );;
@@ -347,7 +343,6 @@ double icMaChannel(int timeframe, string channelDefinition, int iBuffer, int i
347343double icMovingAverage (int timeframe , string maMethod , int maPeriods , string maAppliedPrice , int iBuffer , int iBar );;
348344double icZigZag (int timeframe , int periods , int iBuffer , int iBar );;
349345
350-
351346// include/rsf/functions/shared/
352347int Abs (int value );;
353348string LoglevelDescription (int level );; // also implemented in MT4Expander
@@ -360,15 +355,13 @@ string StrPadRight(string str, int padLength, string padString=" ");;
360355string StrSubstr (string str , int start , int length =INT_MAX );;
361356string StrTrim (string str );;
362357
363-
364358// include/rsf/functions/ta/
365359bool ALMA .CalculateWeights (int periods , double offset , double sigma , double &weights []);;
366360double ATR (string symbol , int timeframe , int periods , int offset );;
367361double iADR (int flags =NULL );;
368362double JMASeries (int h , int iMaxBar , int iStartbar , int length , int phase , double series , int bar );;
369363bool NLMA .CalculateWeights (int cycles , int cyclePeriods , double &weights []);;
370364
371-
372365// include/rsf/structs/Bar.mqh
373366datetime bar .Time (double bar []);;
374367double bar .Open (double bar []);;
@@ -400,7 +393,6 @@ int bars.setVolume(double &bar[][], int i, int volume);;
400393
401394string BAR .toStr (double bar []);;
402395
403-
404396// include/rsf/structs/OrderExecution.mqh
405397int oe .Error (/*ORDER_EXECUTION*/ int oe []);;
406398bool oe .IsError (/*ORDER_EXECUTION*/ int oe []);;
@@ -516,11 +508,9 @@ double oes.setRemainingLots (/*ORDER_EXECUTION*/int &oe[][], int i, double
516508
517509string ORDER_EXECUTION .toStr (/*ORDER_EXECUTION*/ int oe []);;
518510
519-
520511// include/rsf/structs/mt4/
521512// include/rsf/structs/win32/
522513
523-
524514// libraries/rsfHistory1.ex4
525515int HistoryFile1 .Open (string symbol , int timeframe , string description , int digits , int format , int mode , string directory =" " );;
526516bool HistoryFile1 .Close (int hFile );;
@@ -537,7 +527,6 @@ int HistorySet1.Get (string symbol, string directory="");;
537527bool HistorySet1 .Close (int hSet );;
538528bool HistorySet1 .AddTick (int hSet , datetime time , double value , int flags =NULL );;
539529
540-
541530// libraries/rsfHistory2.ex4
542531int HistoryFile2 .Open (string symbol , int timeframe , string description , int digits , int format , int mode , string directory =" " );;
543532bool HistoryFile2 .Close (int hFile );;
@@ -554,7 +543,6 @@ int HistorySet2.Get (string symbol, string directory="");;
554543bool HistorySet2 .Close (int hSet );;
555544bool HistorySet2 .AddTick (int hSet , datetime time , double value , int flags =NULL );;
556545
557-
558546// libraries/rsfHistory3.ex4
559547int HistoryFile3 .Open (string symbol , int timeframe , string description , int digits , int format , int mode , string directory =" " );;
560548bool HistoryFile3 .Close (int hFile );;
@@ -571,7 +559,6 @@ int HistorySet3.Get (string symbol, string directory="");;
571559bool HistorySet3 .Close (int hSet );;
572560bool HistorySet3 .AddTick (int hSet , datetime time , double value , int flags =NULL );;
573561
574-
575562// libraries/rsfStdlib.ex4
576563int AddSymbolGroup (int sgs [], string name , string description , color bgColor );;
577564bool AquireLock (string mutex );;
@@ -706,6 +693,7 @@ int SearchDoubleArray(double &haystack[], double needle);;
706693int SearchIntArray (int &haystack [], int needle );;
707694int SearchStringArray (string &haystack [], string needle );;
708695int SearchStringArrayI (string &haystack [], string needle );;
696+ bool SendTelegramMessage (string channel , string message );;
709697bool SetRawSymbolTemplate (int symbol [], int type );;
710698bool SortOpenTickets (int &keys [][]);;
711699bool SortStrings (string &values []);;
@@ -724,8 +712,8 @@ string WaitForSingleObjectValueToStr(int value);;
724712int WinExecWait (string cmdLine , int cmdShow );;
725713string WordToHexStr (int word );;
726714
727-
728715// libraries/rsfMT4Expander.dll
716+ string AnsiToUtf8 (string str );;
729717bool AppendLogMessageA (int ec [], datetime time , string message , int error , int level );;
730718string BarModelDescription (int id );;
731719string BarModelToStr (int id );;
@@ -747,6 +735,7 @@ int ec_SetLoglevelDebug (int &ec[], int level);;
747735int ec_SetLoglevelFile (int &ec [], int level );;
748736int ec_SetLoglevelMail (int &ec [], int level );;
749737int ec_SetLoglevelSMS (int &ec [], int level );;
738+ int ec_SetLoglevelTelegram (int &ec [], int level );;
750739int ec_SetLoglevelTerminal (int &ec [], int level );;
751740int ec_SetMqlError (int &ec [], int error );;
752741int ec_SetProgramCoreFunction (int &ec [], int id );;
@@ -757,6 +746,7 @@ int ec_SuperLoglevelDebug (int pid);;
757746int ec_SuperLoglevelFile (int pid );;
758747int ec_SuperLoglevelMail (int pid );;
759748int ec_SuperLoglevelSMS (int pid );;
749+ int ec_SuperLoglevelTelegram (int pid );;
760750int ec_SuperLoglevelTerminal (int pid );;
761751string ec_SuperProgramName (int pid );;
762752bool EmptyIniSectionA (string fileName , string section );;
@@ -911,8 +901,8 @@ string TimeframeToStr(int timeframe);;
911901string TradeDirectionDescription (int direction );;
912902string TradeDirectionToStr (int direction );;
913903string UninitReasonToStr (int reason );;
904+ string Utf8ToAnsi (string str );;
914905int WM_MT4 ();;
915906
916-
917907// libraries/rsfMT4Expander.dll: program-specific api
918908int Grid_GetChartHeight (int hChart , int lastHeight );;
0 commit comments