Hi Steve.SteveHopwood wrote:One for the mathematicians to check for me. bool HaveWeReachedFullBasketTP() has this forumla:
BasketProfitTarget = (AccountBalance() * BasketCashPercentageTarget) / 100;
BasketCashPercentageTarget is an extern double. Is my formula correct?
If BasketCashPercentageTarget is something like 5.0, your formula is correct.
If BasketCashPercentageTarget is something like 0.05, it should IMHO be
BasketProfitTarget = (AccountBalance() * BasketCashPercentageTarget)
EDIT. I could have checked the inputs before writing. The formula is correct.
Cheers, Thomas