[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 600
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
The tester does not report any errors, just no orders are placed.
Please, point out the error, the logic: if the value of MA [0] of the bar is higher than MA [1] you have to buy, on the contrary - sell (this code was written as an example to try to understand a simple condition and create a more complicated one).
This code does not use MA[0] and MA[1] but MA[j] and MA[j+1];
After a small revision of the code (very small), error 4107 appeared
I can make it work, but it will be a totally different EA. I am simplifying it to the maximum. And here the code can be more than halved.
If Stops and Takeovers are set equal to zero, the Expert Advisor starts to open trades
reply
The thing is, advisors work and indicators do not work at all!
Vinin, if you can make it work with closing at stop or take profit, the main thing is to feel the philosophy of mql in addressing different bars in an array.
I have checked it. It works. The signal is a change of direction
Nice, but how does it work in code (logic): If MA150+20 > MA5 > MA150-20 and MA150+20 > MA21 > MA150-20 Then flat else Trend.
The challenge goes something like this:I want to use Ramus volumes in MT4, they seem to have more realistic volumes.
my system is set up to always want to open an order and I limit it by forbidding signals, only signals give me permission to trade = order
I have a small problem now - there are no late trades, but there are problems with random orders in the night flat - so far I dream of teaching the EA to distinguish the flat, and not limiting it to the time of day to work. For the estimation of the trend I am using higher TF in the EA logic, so I am able to put it at night on an hourly TF and it seems to be less stubborn than on M15
Good evening, I do not work with MQL4 indicators, and nothing at all! Please help!
reply
The fact that advisors work, and indicators do not work at all!
F1 help - technical indicators section
How do I use object crate and object set to draw a horizontal line in a stochastic window, for example?