Luca Cerquatelli: Why the condition (first_order_price - 10 * Point) don't works? I am going crazy :( Thanks to whoever can help me
Is it not obvious?
If the variable "first_order_price" is assigned the value of "Ask", then the boolean expression becomes :
Which will ALWAYS be false.Ask < (Ask - 10 * Point)
No it isn't, because the first_order_price variable concerns the stored price of a previous order. But I fixed it by moving the variable under Global section.
Thanks anyway for the help
Thanks anyway for the help
Luca Cerquatelli #: No it isn't, because the first_order_price variable concerns the stored price of a previous order.
double first_order_price = Ask; // store the price of previous order
That isn't what you posted.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
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
Why the condition (first_order_price - 10 * Point) don't works?
Thanks to whoever can help me