Errors, bugs, questions - page 1974
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
Compilation error
And if you swap lines (1) and (2), it's fine. What's the difference?Execution error
As a result, method const (1) is called instead of const (2). If you swap lines (1) and (2) (but not indices), it is not const - as expectedHello! Can you tell me why a simple condition is not fulfilled?
The error log doesn't show up. I've written Comment(Bid); and noticed that when Bid becomes higher than High[...], its commenting stops.
And condition of this kind is fulfilled:
Hi, Can you tell me why the simplest condition is not fulfilled:
The error log doesn't show up. Prescribed Comment(Bid); and noticed that when Bid becomes more than High[...], its commenting stops.
And the condition of this kind is fulfilled:
Please attach the whole code, there are no errors in what you have shown...
Attach the whole code, there are no errors in what you've shown...
I simplified the code as much as possible to find the error, the error is exactly in the line of comparison condition Bid > High[...].
Here is the whole code, and even it is not executed, you can copy and check it:
I simplified the code as much as possible to find the error, the error is exactly in the line of comparison condition Bid > High[...].
Here is all code, and even it is not executed, you can copy and check it:
And what result do you expect ?
I have simplified the code to find the error. The error is in the line of comparison condition Bid > High[...].
Here is the whole code, and even it is not executed, you can copy and check it:
Your condition sounds like this
If the bid price will be higher than the biggest high of the last 20 candles excluding the zero bar. And then open orders without stopping.
If your current bid price is lower than the biggest high, no action...
What result are you waiting for?
Specifically in this case I'm waiting for a buy order to be opened.
Generally I am waiting for the operator {...} to be executed.
Specifically in this case I am waiting for a buy order to be opened.
In general case I am waiting for - execution of operator {...}.
Read your condition carefully
Specifically in this case I am waiting - for a buy order to open.
In general case I am waiting for operator {...}.
I have your condition working clearly, orders are opening...