```\nif (twapCheck || positions[pos].twapOverride) {\n  // check twap\n  checkPriceChange(\n    pos,\n    (positions[pos].twapOverride ? positions[pos].twapInterval : twapInterval),\n    (positions[pos].twapOverride ? positions[pos].priceThreshold : priceThreshold)\n  );\n}\n```\n