無料でロボットをダウンロードする方法を見る
Facebook上で私たちを見つけてください。
私たちのファンページに参加してください
興味深いスクリプト?
それではリンクにそれを投稿してください。-
他の人にそれを評価してもらいます
記事を気に入りましたか?MetaTrader 5ターミナルの中でそれを試してみてください。
スクリプト

Get Comma Separated Things From String - MetaTrader 4のためのスクリプト

Kailash Bai Mina
発行者:
Kailash Bai Mina
ビュー:
3353
評価:
(8)
パブリッシュ済み:
2021.08.18 00:39
アップデート済み:
2021.08.18 02:07
Code.mq4 (2.07 KB) ビュー
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動

Custom Function To Get Comma Separated Things From String.

This Custom Function Will Require a Integer Input

1.) if You give -1 then it will give you number of things in String.

2.) if You Give 0 Then 1st Thing String(Separated by Comma) Will Be The Output.
     Similarly,  if You Give 1 Then 2nd Thing String(Separated by Comma)  Will Be The Output.

Code : 

input string String = "1Aa@!,2Bb@!,3Cc@!,4Dd@!,5Ee@!,6Ff@!,7Gg@!,8Hh@!,9Ii@!";

//+------------------------------------------------------------------+
//|Get Comma Separated Things From String                            |
//+------------------------------------------------------------------+
string Get_Comma_Separated_Things_From_String(int Position_Number_Or_Negative_1_For_Num_Of_Things)
{
 string _Distances_ = String,To_Be_Added_To_Array = "",distances[9999];_Distances_ += ",";;ArrayResize(distances,StringLen(_Distances_)+11);
 int Count = 0;for(int i=0; i<=StringLen(_Distances_); i++){if(StringGetChar(_Distances_,i)==44) Count++;} if(Position_Number_Or_Negative_1_For_Num_Of_Things==-1) return((string)Count);
 for(int i=0; i<StringLen(_Distances_); i++)
  {
   if(StringGetChar(_Distances_,i)==44)
    {
     for(int j=0; j<ArraySize(distances); j++){string no_need[1];if(distances[j]==no_need[0]) {distances[j]=To_Be_Added_To_Array;i++;break;}}
     To_Be_Added_To_Array="";
    }
   int To_Be_Added_To_To_Be_Added_To_Array = StringGetChar(_Distances_,i);
   To_Be_Added_To_Array += CharToString(To_Be_Added_To_To_Be_Added_To_Array);
  }
 return(distances[Position_Number_Or_Negative_1_For_Num_Of_Things]);
}
    Get Last Round Time And Date Acc To TF Get Last Round Time And Date Acc To TF

    This Custom Function Will Help To Get Round Time For Any Given Timeframe And Time.

    Directional volatility & volume oscillator Directional volatility & volume oscillator

    Displays direction of volatility and volume

    SCT - RiskPerTrade- MT4 SCT - RiskPerTrade- MT4

    Building good trading habits by seeing things in terms of percentage not in terms of money.

    Motion Smoothness Index Motion Smoothness Index

    Determines when market price is smooth or rough