Reshetov: No one forbids it. There is a tester grail somewhere in the Code Base. There's just one pass in the tester and the next pass on the story will already be fine.
I'll take a look, thanks. The main thing is that this grail does not record dates and times and position directions, but actually tests takes and stops.
Does anybody know a way to place a pending orderin Meta Trader 4 at a certain 1-hour candle price, i.e. not at the time when it will open, but at the opening price of the candle?
kellin: Does anyone know a way to place a pending orderin Meta Trader 4 at a specific 1-hour candle price, i.e. not at the time it opens, but at the opening price of the candle?
There is a way. You buy a time machine and put it on the price at which the candle opens.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
No one forbids it. There is a tester grail somewhere in the Code Base. There's just one pass in the tester and the next pass on the story will already be fine.
If I'm not mistaken - this "grail" is called "self-tuning EA" - look it up in the search engine.
OK, thank you, Leonid.
I want to check one idea.
Remembered! - a self-learning expert. https://www.mql5.com/ru/code/9431
https://www.mql5.com/ru/code/9416
int iHighest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0)
Returns index of the highest value found(offset from the current bar).Isn't that what you need?
Now here's my problem...
extern double TakeProfit=20;
extern double Lots=1;
extern double Profit ;
................
Profit=TakeProfit*Point;
....
Соответственно
if AccountProfit()>=Profit)...
закрываемся.
It's giving out a value of 0.002.
So all the trades are flying.
Where did I go wrong?
Where do I fix the value of Points and Lots?
Now here's my problem...
...
It gives a value of 0.002All the deals are flying.
Where did I go wrong?
Everywhere
Yes I see, trying to prescribe Profit=TakeProfit*Point; after opening a trade... There is practically no change.
Does anyone know a way to place a pending orderin Meta Trader 4 at a specific 1-hour candle price, i.e. not at the time it opens, but at the opening price of the candle?