I know... has too much here but i can't find something that I looking for... if someone could help me....
I have a EA that will send Order to the market calculating SL size getting price base on HLINE using a Risk % extern bouble....
but i'm have problem....
sometimes SL its too big exceding risk % profile.... the this error "Zero Divide by" appears and EA shuts down, i don't like open lots more than my Risk % how do will can fix it? Some tips?
// original code with division
// what to do if divisor = 0