Alan Juarez / Publications
Forum
zero divide causing errors in EA
This is the code thats returning the zero divide problem . Which occurs when I change the lot size from MODE_LOTSIZE to MODE_MINLOT. double optimalLotSize = NormalizeDouble(maxLossInQuoteCurr /(maxLossInPips * GetPipValue())/lotSize,2); return optimalLotSize; - - - double lotSize =