
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
Gentlemen, please comment:
...
enum varOfInt
{
Duple= 2,
Triple = 3,
};
input varOfInt Var = Duple;
...
int OnInit()
{
...
double tmp;
tmp = 0.531 * Var // tmp == 0!!!
tmp = 1.531 * Var // tmp == 2!!!
...
numbers (0.531; 1.531) are arbitrarily specified.
Thank you.
Try it like this
Try it like this
ENUM - integer (integer 4-byte data type).
Checked, the given expressions are calculated correctly.
What version of compiler and terminal do you have and how did you measure the results of the expressions?
Checked, the given expressions are calculated correctly.
What version of compiler and terminal do you have and how did you measure the results of the expressions?
...
double tmp = 0.531 * Var; // 1.062
double tmp = Var * 0.531; // 0!!!
The constant 0.531 is taken arbitrarily. It can be replaced by double variable.
Thank you for your attention.
...
double tmp = 0.531 * Var; // 1.062
double tmp = Var * 0.531; // 0!!!
The constant 0.531 is taken arbitrarily. It can be replaced by double variable.
Thank you for your attention.
Is it possible to set a trailing stop programmatically?
Or is it necessary to tighten SL with every tick through order modification?
Can you advise a beginner how to catch an event in the EA whentp or sl is triggered.
Thank you in advance.
OnTrade function
Thanks....But...I'm a very beginner:)))