PDA

View Full Version : I can't get lot value from Open Position



younes4sami
06-18-2015, 02:08 PM
I can't get lot value from Open Position


i have open Position with Lot =5

for i = 1 to PositionTotal


positionSelect(PositionGetTicket(CINT(i)))


if PositionGetSymbol(CINT(i)) = chartSymbol(0) then

PositionGetDouble POSITION_VOLUME , vLot

MsgBox " Lot = " & CDBL(vLot )


end if

next

But in MsgBox Lot = 0

Rawan-HS
06-21-2015, 08:03 AM
Dear Younes

Try this one ,




for i = 1 to PositionTotal


positionSelect(PositionGetTicket(CINT(i)))


if PositionGetSymbol(CINT(i)) = chartSymbol(0) then

PositionGetDouble POSITION_AMOUNT , vLot

MsgBox " Lot = " & CDBL(vLot )

end if

next