[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 567

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
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?