Skip to content

Symbol.TickValue

property · Symbol · cAlgo.API.Internals

DesktopCLICloud

Gets the monetary value of one tick. This is the monetary value of one tick of the symbol when you started your cBot or initialized your indicator. Its not updated in real time and it remains constant.

Definition

double TickValue {get;}
api.Symbol.TickValue: float

Returns double

Examples

var riskAmount = Account.Balance * 0.01;
var stopLossTicks = 200;
var volume = Symbol.NormalizeVolumeInUnits(riskAmount / (stopLossTicks * Symbol.TickValue), RoundingMode.Down);
Print("Volume risking 1% with a {0} ticks stop loss: {1}", stopLossTicks, volume);
riskAmount = api.Account.Balance * 0.01
stopLossTicks = 200
volume = api.Symbol.NormalizeVolumeInUnits(riskAmount / (stopLossTicks * api.Symbol.TickValue), RoundingMode.Down)
api.Print(f"Volume risking 1% with a {stopLossTicks} ticks stop loss: {volume}")