Changes for MGSHBacktest model.

Code cleanup.
This commit is contained in:
2025-02-10 07:57:00 -05:00
parent 36b10b4824
commit 0db4473632
16 changed files with 378 additions and 78 deletions

View File

@@ -231,6 +231,7 @@ namespace MarketData.Utils
}
return sb.ToString();
}
public static String GetPath(String strPathFileName)
{
int index=strPathFileName.LastIndexOf('\\');
@@ -238,6 +239,15 @@ namespace MarketData.Utils
String strPath = strPathFileName.Substring(0, index);
return strPath;
}
public static String GetFileNameNoExtension(String pathFileName)
{
if(null==pathFileName)return null;
pathFileName = Path.GetFileName(pathFileName);
pathFileName=Utility.BetweenString(pathFileName,null,".");
return pathFileName;
}
public static String KeepBefore(String strItem,String strKeepBefore)
{
int startPos=strItem.IndexOf(strKeepBefore);