Hi,

I'm using this code to calculate position size:
E=Equity();
risk=0.1*E;
PositionSize=(0.1*E)/(Close-trstoplevel);

But I'm not getting the values that I expect.
The (close-trstoplevel) is working fine, I've ploted this to confirm it.
But when I plot E it doesn't match the Equity value , so the problem
comes from here. For example my equity on one day is 54.678 and the E
returns only 319.
Can someone tell me how to obtain the equity value, so that i can
calculate the positionsize correctly.

thanks in advance

Reply via email to