Forum

Define Margin per open Position

Hello everyone. I really hope to get some hints where to dig further. Till now i could not mange to find a way to calculate the Margin of open Positions while looping through them. The only thing i found was Lot-Size regarding Risk-Management. But was not able to build a connection from that to the

Comparing open Positions one Selected by Index other by Ticket

for ( int i=( int ) MathRound ( PositionsTotal ()) ; i>= 0 ; i--) { if (posyInfo.SelectByIndex(i)) { if (posyInfo.Magic()==maggi && posyInfo. Symbol ()==paar) { How can i compare inside this loop the actual selected PositionInfo(select by Index) with another