Quote:
Originally Posted by matrixebiz
I wouldn't use that one. It's dangerous. All of a sudden it will decide to make huge lot trades. I always trade 0.01 lots then it did this 21, 50 lot size trades. Weird
|
I think this might be the cause of the sudden lot size.... Please see the commented out code below....
// ====== Money Management for Lot Size routine ======
if(UseMM)
{
Lots=AccountEquity()* Risk/100/1000;
if( Lots>=0.1)
{
Lots=NormalizeDouble(Lots,1);
}
else
Lots=NormalizeDouble(Lots,2);
}
// Commented out by Steven
// This maybe the cause of invalid Lot Size....
//if(MyOrdersTotal()>0)
// {
// Lots=Lots * MyOrdersTotal();
// }