Edit Your Comment
set lot size
Uczestnik z Sep 20, 2014
365 postów
Mar 06, 2015 at 03:53
(edytowane Mar 06, 2015 at 03:56)
Uczestnik z Sep 20, 2014
365 postów
Lotsize = AccountBalance()*0.00001;
And I very strongly suggest using AccountEquity() instead...
And I very strongly suggest using AccountEquity() instead...
Uczestnik z Sep 20, 2014
365 postów
Mar 09, 2015 at 02:15
(edytowane Mar 09, 2015 at 02:37)
Uczestnik z Sep 20, 2014
365 postów
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.
Uczestnik z Sep 20, 2014
365 postów
Mar 09, 2015 at 02:18
(edytowane Mar 09, 2015 at 02:25)
Uczestnik z Sep 20, 2014
365 postów
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
Uczestnik z Oct 14, 2014
11 postów
Uczestnik z Sep 20, 2014
365 postów
Mar 09, 2015 at 23:31
Uczestnik z Sep 20, 2014
365 postów
I couldn't code as well, put myself on a course. Only took me the 8 hours the course was long to learn how to code. Worth it if you're going to do fx.
*Komercyjne wykorzystanie i spam są nieprawidłowe i mogą spowodować zamknięcie konta.
Wskazówka: opublikowanie adresu URL obrazu / YouTube automatycznie wstawi go do twojego postu!
Wskazówka: wpisz znak@, aby automatycznie wypełnić nazwę użytkownika uczestniczącego w tej dyskusji.