For years, I thought had this part down cold (trusted a broker's code). Now....., I'm not so sure. Which one below is correct?
Inserted Code
// a) Version based on what I've read so far: Lot=(Risk_Percentage*Free_Margin)/(Dollars_Per_Pip_1_Standard_Lot*(StopLoss_Pips+Spread_Pips)) // b) Version IBFX has been handing out for years Lot=(Risk_Percentage*Free_Margin)/(Lot_Size/Leverage);