- Home
- Forum
- cTrader Desktop
- How do I get the minimum equity?
How do I get the minimum equity?
How do I get the minimum equity?
I'm trying to get the minimum equity with a variable, but should I use a negative signal on it like bellow?
var minumumequity = -Account.Equity
Hi ChannelTrader,
See an example below
double _minEquity;
protected override void OnStart()
{
_minEquity = Account.Equity;
}
protected override void OnTick()
{
if (Account.Equity < _minEquity)
_minEquity = Account.Equity;
}
Best Regards,
Panagiotis
RE:
PanagiotisCharalampous said:
Hi ChannelTrader,
See an example below
double _minEquity; protected override void OnStart() { _minEquity = Account.Equity; } protected override void OnTick() { if (Account.Equity < _minEquity) _minEquity = Account.Equity; }
Best Regards,
Panagiotis
Hi Mr. Panagiotis, thank you for your repply.
Worked perfectly
Copyright © 2021 Spotware Systems Ltd. All rights reserved.