Skip to main content

Function: parseStringToDrawdown()

parseStringToDrawdown(drawdownString): Drawdown

Defined in: utils/utils.ts:752

Parses a string representation of a drawdown into a Drawdown object. The string should contain rows separated by newlines, where each row contains:

  • '|' for heddle up (true)
  • '-' for heddle down (false)
  • ' ' (space) for unset (null)

Parameters

drawdownString

string

the string representation of the drawdown

Returns

Drawdown

a Drawdown object