Class MetaTrader4ImportUtil

java.lang.Object
com.bluebell.greenhouse.sol.util.MetaTrader4ImportUtil

public final class MetaTrader4ImportUtil extends Object
Utility helpers for parsing MetaTrader 4 import files.
Version:
2.0.3
Author:
Stephen Prizio
  • Method Details

    • parseMetaTrader4TradeList

      public static List<String> parseMetaTrader4TradeList(String string)
      Parses a list of MT4 trade rows into raw row strings.
      Parameters:
      string - html string
      Returns:
      row strings
    • parseMetaTrader4RowEntry

      public static List<String> parseMetaTrader4RowEntry(String string)
      Parses an MT4 html row into a list of cell values.
      Parameters:
      string - html row string
      Returns:
      cell values
    • parseMetaTrader4TitleAttribute

      public static String parseMetaTrader4TitleAttribute(String string)
      Extracts a title attribute from an MT4 html row.
      Parameters:
      string - html row
      Returns:
      title attribute if present
    • safeParseInt

      public static int safeParseInt(String string)
      Safely parses an integer.
      Parameters:
      string - raw string
      Returns:
      parsed integer or -1
    • safeParseDouble

      public static double safeParseDouble(String string)
      Safely parses a decimal number.
      Parameters:
      string - raw string
      Returns:
      parsed value or zero