Edit Your Comment
set lot size
Mar 09, 2015 at 02:15
(已编辑 Mar 09, 2015 at 02:37)
会员从Sep 20, 2014开始
342帖子
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
(已编辑 Mar 09, 2015 at 02:25)
会员从Sep 20, 2014开始
342帖子
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
会员从Oct 14, 2014开始
11帖子

*商业用途和垃圾邮件将不被容忍,并可能导致账户终止。
提示:发布图片/YouTube网址会自动嵌入到您的帖子中!
提示:键入@符号,自动完成参与此讨论的用户名。