
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i use the tradeallowed function : And trade is allowed between 9am to 20pm so yes actually it is true.
OK, it seems your position size calculations are not working properly, try 1% risk instead of 5% . . .
This is a bad idea . . .
Read this thread: Can price != price ?
Ok! thank you very much, the problem lied in the size positions... not enought money...
but when you wrote :
does the ordermodify is realized when included in an "if" loop?
indeed do the 2 blocks are tantamount ?
does the ordermodify is realized when included in an "if" loop?
Yes, of course . . . OrderModify() returns a bool . . . my code says . . .
indeed do the 2 blocks are tantamount ?
In this code . . . .
. . . you are calling OrderModify() twice .. .
ok! thank you :)
and last question, in the EA i wrote :
Do i have to call the function fTradeAllowed before if (TradeAllowed)... or is it useless ?The way you are using functions doesn't make a lot of sense . . . if a function is designed to returns a value then you should use that return value . . .
. . . you can also use local variables in the function instead of globally declared variables.
ok! thank you :)
and last question, in the EA i wrote :
Do i have to call the function fTradeAllowed before if (TradeAllowed)... or is it useless ?You have to call the function, it sets the value of TradeAllowed . . . the way the function is currently written is not very logical and it makes no use of returning it's type.
ok thank you :)