[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 797
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
Fellow comrades! This is my attempt #2 to create a miracle tool that reads ROC AUDUSD and GBPUSD to trade on GBPAUD!) It's a bit primitive, but I really wanted to try it!!! When I run it in the tester without optimizing it, it freezes, but keeps loading successfully... and in the end - not a single trade. Well clearly I screwed up, but where, plz, tell me, knowledgeable people!!! :)) This is an EA code. It takes data from a normal custom ROC.
IndicatorCounted() does not work in EAs. It is only intended for indicators. Maybe we should widen the problem a bit. There are different ways of solving it. The easiest one is to optimize the indicator (but not always possible), you can transfer the calculations to the Expert Advisor, but again not always possible. You actually have to look at the indicator
I want to transfer the calculation code to an EA, in an indicator the calculation code starts with a loop...how can I replace it with a more correct one7
Fellow comrades! This is my attempt #2 to create a miracle tool that reads ROC AUDUSD and GBPUSD to trade on GBPAUD!) It's a bit primitive, but I really wanted to try it!!! When I run it in the tester without optimizing it, it freezes, but keeps loading successfully... and in the end - not a single trade. Well clearly I screwed up, but where, plz, tell me, knowledgeable people!!! :)) This is code of so called Expert Advisor, it takes data from usual custom ROC.
Try with primitive history loading control
Try with primitive control of history loading
Maybe it's not correct just to compare x1 and x2, but should be attached to something, say, to the last bar? By indicator logic, EA should open at least one position and not close it, because closing is not implemented in the program :)), and ROC of one currency is always greater than ROC of the other ...
Maybe the indicator call isn't quite right. I'll have to look for it myself. It just seems that the buffer should be zero, not first.
I don't have such an indicator
I want to transfer the calculation code to the Expert Advisor, the calculation code in the indicator starts with a loop...how can I replace it with a more correct one7
1. Why?????????????????????
But, if you really need to, then
2. Why the fuck am I answering to nothing? Told you - there's an article by Kositsyn on this in the articles (it's right here, link above). How many times must I repeat it to you? Maybe you have something else to do?
I don't have such an indicator
Here is the code for the ROC indicator
"Doesn't anyone need to mop the floors? I'll come and wash them! " (с)
Here is the transfer of the indicator code to the Expert code.
Here is the code for the ROC indicator
There is an error in the indicator code.