MCPcopy Create free account
hub / github.com/TreborNamor/TradingView-Machine-Learning-GUI / from_mode

Method from_mode

hyperview/models.py:46–54  ·  view source on GitHub ↗

Construct RiskParameters based on trade mode and SL/TP percentages.

(cls, mode: Mode, sl_value: float, tp_value: float)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

_evaluateMethod · 0.80
_evaluateMethod · 0.80
_run_single_backtestFunction · 0.80

Calls

no outgoing calls

Tested by 1

_run_single_backtestFunction · 0.64