StopOutLevel
StopOutLevel
22 May 2019, 15:32
Hi,
can somebody post an example of how to use the StopOutLevel within my cBot positions?
... public double StopOutLevel{ get; }
Thanks in advance!!
Replies
PanagiotisCharalampous
23 May 2019, 09:56
Hi yosifiv,
StopOutLevel is related with the level your margin has to reach in order for the stop out process to start. If you just want to modify your position when your equity reaches 50% of the balance just use a condition like below
if(Account.Equity < Account.Balance * 0.5)
If you want to start stopping out your positions when margin falls below StopOutLevel then you first need to calculate the margin used. In this case, this discussion might be helpful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
Georgefx
27 May 2019, 21:49
I want my position to get stopped out partially (or get modified) when I reach my Accout Equity of 50%.
Its not clear in the help how to use this code. .. there is no example.
PanagiotisCharalampous
22 May 2019, 15:36
Hi yosifov,
Your request is not clear. What do you want to use this for?
Best Regards,
Panagiotis
@PanagiotisCharalampous