Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 462
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Thanks, but I've decided to use a virtual stop and take for now.
There is still a problem with the long execution time of the EA. But the indicator alone works without any problems.
How can I optimise it?
Could you please tell me how to implement when writing an indicator, so that the indicator readings on the 0th bar are added to the readings on the 1st bar?
As you like!
As you wish!
Then it's like this:
Then it goes like this:
Boris, you are wrong ( :)) ).
The crux of the question: how can the value of the indicator at bar 1 be taken into account in its current value.
Boris, you're wrong ( :)) ).
The crux of the question: how can the value of an indicator at bar 1 be taken into account in its current value.
Can you tell me why the compiler gives the warning "expression has no effect" in the line for
Tell me, the compiler gives a warning "expression has no effect" in the line for
I think it's because the initial value is assigned outside the block.