increase lot size when account balance is rising?
Created at 23 May 2018, 23:47
increase lot size when account balance is rising?
23 May 2018, 23:47
how do i code this?
for example: bot strarts with 10k and 0.1 lot size.
when account banalce reached 11k, lot size must be 0,11 and so on.
Replies
jelle2500
24 May 2018, 09:47
RE:
Panagiotis Charalampous said:
Hi,
You can try something like this
_volume = (long)Math.Ceiling(Account.Equity / 1000) * 1000Best Regards,
Panagiotis
Thanks Panagiotis!
@jelle2500
PanagiotisCharalampous
24 May 2018, 09:44
Hi,
You can try something like this
Best Regards,
Panagiotis
@PanagiotisCharalampous