Edit Your Comment
set lot size
Mar 09, 2015 at 02:15
(editado Mar 09, 2015 at 02:37)
Membro Desde Sep 20, 2014
365 posts
That be in the structure of the code, you'll have to move where you do the calculation. And of course without seeing the source I'd have no idea why it's not updating every tick.
Try this line in a few places till you get the desired result, look for the values to print in the experts tab:
Print ('Ordersize: ', AccountBalance()*0.00001);
If you put that just after you initiate the code it should print constant value changes, then move it around to few places where you think it should be. I don't know where your lotsize declaration is, if it's global you can just put your calculation where it prints ok, if it's not global then you'll have to change your logic to update more often.
Try this line in a few places till you get the desired result, look for the values to print in the experts tab:
Print ('Ordersize: ', AccountBalance()*0.00001);
If you put that just after you initiate the code it should print constant value changes, then move it around to few places where you think it should be. I don't know where your lotsize declaration is, if it's global you can just put your calculation where it prints ok, if it's not global then you'll have to change your logic to update more often.
Mar 09, 2015 at 02:18
(editado Mar 09, 2015 at 02:25)
Membro Desde Sep 20, 2014
365 posts
And of course I just used lotsize, what is your parameters name in the OrderSend ?
Look for an OrderSend function in your code, get the name of the third parameter, then go look where you work out that parameter and put that calculation in there.
Look for an OrderSend function in your code, get the name of the third parameter, then go look where you work out that parameter and put that calculation in there.
forex_trader_211931
Membro Desde Oct 14, 2014
11 posts
*Uso comercial e spam não serão tolerados, podendo resultar no encerramento da conta.
Dica: Postar uma imagem/URL do YouTube irá incorporá-la automaticamente no seu post!
Dica: Insira o sinal @ para preencher automaticamente um nome de utilizador que participe nesta discussão.