Skip to content

Commit b182ea5

Browse files
authored
Add files via upload
Fixed a bug with the CUSTOM_INDICATOR command
1 parent 56e554a commit b182ea5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

MT5socketAPI/Terminal.cs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -475,17 +475,16 @@ public List<double> ATR_Indicator(string Symbol, TimeFrame tf, int Period, int S
475475
}
476476
}
477477

478-
/// <summary>
479-
/// Get data from a custom indicator using the Metatrader iCustom function. More Info: <see href="https://www.mql5.com/es/docs/indicators/icustom"/>
480-
/// </summary>
481-
/// <param name="Symbol">Symbol name</param>
482-
/// <param name="tf">TimeFrame</param>
483-
/// <param name="Indicator_Name">Indicator Name</param>
484-
/// <param name="Mode">Mode</param>
485-
/// <param name="Shift">Shift</param>
486-
/// <param name="Num">Number of elements</param>
487-
/// <param name="Params">Parameters</param>
488-
public List<double> Custom_Indicator(string Symbol, TimeFrame tf, string Indicator_Name, int Index, int Num = 1, List<string> Params = null)
478+
/// <summary>
479+
/// Get data from a custom indicator using the Metatrader iCustom function. More Info: <see href="https://www.mql5.com/es/docs/indicators/icustom"/>
480+
/// </summary>
481+
/// <param name="Symbol">Symbol name</param>
482+
/// <param name="tf">TimeFrame</param>
483+
/// <param name="Indicator_Name">Indicator Name</param>
484+
/// <param name="Index">Buffer Index</param>
485+
/// <param name="Num">Number of elements</param>
486+
/// <param name="Params">Parameters</param>
487+
public List<double> Custom_Indicator(string Symbol, TimeFrame tf, string Indicator_Name, int Index, int Num = 1, List<string> Params = null)
489488
{
490489
try
491490
{
@@ -495,7 +494,6 @@ public List<double> Custom_Indicator(string Symbol, TimeFrame tf, string Indicat
495494
json_cmd["TIMEFRAME"] = tf.ToString();
496495
json_cmd["INDICATOR_NAME"] = Indicator_Name;
497496
json_cmd["INDEX"] = Index;
498-
//json_cmd["SHIFT"] = Shift;
499497
json_cmd["NUM"] = Num;
500498

501499
int i = 1;

0 commit comments

Comments
 (0)