Thank you for the reply.
I have ended up using custom code as suggested. Here's the code if it benefits anyone
sl_reliable_tickvalue = sl_tickvalue * sl_point / sl_ticksize;
if ((Digits == 3) || (Digits == 5)) {sl_reliable_tickvalue = sl_reliable_tickvalue * 10;}
sl_value = (sl_capital_to_risk * stop_loss_percentage /100) / (loop_size * sl_reliable_tickvalue );




