Hi,
I inspected the ea position sizer code
and there is a loop in positionsizertrading.mqh:
-----------------------------------------
in line 220, there seems to be a comparison function for it
if ((sets.MaxPositionSizeTotal > 0) || (sets.MaxPositionSizePerSymbol > 0))
{
// some code here
}
I modified the contents of this function to this:
if (PositionSize > sets.MaxPositionSizePerSymbol)
{
PositionSize = sets.MaxPositionSizePerSymbol
}
But it didn't work..
I inspected the ea position sizer code
and there is a loop in positionsizertrading.mqh:
-----------------------------------------
in line 220, there seems to be a comparison function for it
if ((sets.MaxPositionSizeTotal > 0) || (sets.MaxPositionSizePerSymbol > 0))
{
// some code here
}
I modified the contents of this function to this:
if (PositionSize > sets.MaxPositionSizePerSymbol)
{
PositionSize = sets.MaxPositionSizePerSymbol
}
But it didn't work..