TA
Topics
21 Jun 2023, 19:48
431
2
25 Aug 2022, 03:06
742
3
22 Mar 2022, 23:45
909
4
Replies
TaoCTID
23 Mar 2022, 09:05
RE:
PanagiotisCharalampous said:
We cannot know what each strategy provider does. However, if you need to protect your account, you can use your own equity based stop loss.
Thanks for your answer, so can't we make it so that when a SL is provided, cTrader calculates the position size so that when the SL is triggered the loss is a predefined amount?
@TaoCTID
TaoCTID
25 Aug 2022, 15:03 ( Updated at: 25 Aug 2022, 15:07 )
RE:
Of course, excuse this obvious oversight. I have reduced the code as much as possible in order to reduce the number of factors. Strangely the bug does not seem to occur if the SL is equal to
2 pips or less(I just tested more precisely and the maximum value without bug is 2.2).The version of cTrader used is 4.3.9
@TaoCTID