i have a problem with AccountSize atribut..
i set:
Initialize() {
AccoutSize=10000;
}
and then
OnBarUpdate() {
sometimes EnterLong();
sometimes EnterShort();
Print("Current size of my account is "+AccountSize);
}
but it is still writing:
Current size of my account is 10000
Current size of my account is 10000
Current size of my account is 10000...
Why is the accountSize still on 10000?
I thought when I am entering to long and entering to short the account size will sometimes lower and sometimes higher (if the contract will win then higher and if the contract will lose then the account size will be lower).
Thank you for your advice
... Zooinek

Comment