@@ -246,7 +246,7 @@ private void ListenMTDataStream()
246
246
/// <param name="cmd_port">MTsocketAPI command port</param>
247
247
/// <param name="data_port">MTsocketAPI data port</param>
248
248
/// <returns>True = connect successful, False = connect fail</returns>
249
- public bool Connect ( string host = "127.0.0.1" , int cmd_port = 77 , int data_port = 78 )
249
+ public bool Connect ( string host = "127.0.0.1" , int cmd_port = 71 , int data_port = 72 )
250
250
{
251
251
try
252
252
{
@@ -485,7 +485,7 @@ public List<double> ATR_Indicator(string Symbol, TimeFrame tf, int Period, int S
485
485
/// <param name="Shift">Shift</param>
486
486
/// <param name="Num">Number of elements</param>
487
487
/// <param name="Params">Parameters</param>
488
- public List < double > Custom_Indicator ( string Symbol , TimeFrame tf , string Indicator_Name , int Mode , int Shift , int Num = 1 , List < string > Params = null )
488
+ public List < double > Custom_Indicator ( string Symbol , TimeFrame tf , string Indicator_Name , int Index , int Num = 1 , List < string > Params = null )
489
489
{
490
490
try
491
491
{
@@ -494,8 +494,8 @@ public List<double> Custom_Indicator(string Symbol, TimeFrame tf, string Indicat
494
494
json_cmd [ "SYMBOL" ] = Symbol ;
495
495
json_cmd [ "TIMEFRAME" ] = tf . ToString ( ) ;
496
496
json_cmd [ "INDICATOR_NAME" ] = Indicator_Name ;
497
- json_cmd [ "MODE " ] = Mode ;
498
- json_cmd [ "SHIFT" ] = Shift ;
497
+ json_cmd [ "INDEX " ] = Index ;
498
+ // json_cmd["SHIFT"] = Shift;
499
499
json_cmd [ "NUM" ] = Num ;
500
500
501
501
int i = 1 ;
0 commit comments