Calculate commission per lot New comment Scalper8 2023.05.30 15:01 Hi I want to Calculate commission per lot/lot size. The broker I use charges $3.5 per lot, now the problem I'm having is I'm not sure if the calculation below is correct for commission. I use the following before calculating commission: double LotSize() { double LotStep=MarketInfo(Symbol(),MODE_LOTSTEP); double LotSize1=NormalizeDouble(AccountEquity()*Risk*LotStep,5); if(LotSize1<MarketInfo(Symbol(),MODE_MINLOT)) { LotSize1=MarketInfo(Symbol(),MODE_MINLOT); } else if(LotSize1>MarketInfo(Symbol(),MODE_MAXLOT)) { LotSize1=MarketInfo(Symbol(),MODE_MAXLOT); } return(LotSize1); } To adding commission: double LotSizeCommission() { double LotSize2=0; double TickValue=MarketInfo(Symbol(),MODE_TICKVALUE); double StopLoss=1.5; double Risk=0.25; double Commission=3.5; double LotStep=MarketInfo(Symbol(),MODE_LOTSTEP); LotSize2=NormalizeDouble(AccountEquity()*Risk*LotStep,5)/(StopLoss+Commission)*TickValue;//1000; if(LotSize2<MarketInfo(Symbol(),MODE_MINLOT)) { LotSize2=MarketInfo(Symbol(),MODE_MINLOT); } else if(LotSize2>MarketInfo(Symbol(),MODE_MAXLOT)) { LotSize2=MarketInfo(Symbol(),MODE_MAXLOT); } return(LotSize2); } Is this correct? Please assist if its incorrect How to calculate Commissions? Trailing with commission/spread [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. New comment
Hi
I want to Calculate commission per lot/lot size. The broker I use charges $3.5 per lot, now the problem I'm having is I'm not sure if the calculation below is correct for commission.
I use the following before calculating commission:
To adding commission:
Is this correct? Please assist if its incorrect