[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 144
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
somewhere on this site long time ago I met a link to a site where you can upload your robot, as well as specify the username, password, server and it will trade when my copm is off.... does anyone remember this site?
You may enter VPS in search engine, I don't know what it means literally, but it could be a virtual desktop for traders.
LazarevDenis
The initial count is 59 bars, which is incorrect. There may be gaps in minutes, and the last hour bar may contain fewer minutes.
You should take the hour bar open and close time (Time[i]). Use this time to calculate offsets for iBarShift minutes, and then calculate the maximum within this range of offsets.
By the way, what should the indicator show on a minute period?
Although, it doesn't matter for the Expert Advisor, it only needs to get the last value on one-minute bars, if the number is positive the price goes up, if it is negative it goes down, by returning the number modulo it shows the strength of the movement.
as for the number of bars - their 60 counts from zero and there is no 60 minutes as this is the zero minute of the new hour, or am I mistaken
I have doubts about the last hour bar, but I hope that since there are no min bars at all, their volume is equal to zero and they do not affect the result of calculations
I made a minute bar to check the adequacy of calculations, so I have identified that I have an error, marked the beginning and end of the hour, and the maximum value in the horizontal indicator, then switched to a minute bar and checked, 6 hour bars were fine, and then something went wrong
as for the number of bars - their 60 counts from zero and there is no 60 minutes, as it is the zero minute of the new hour, or am I mistaken
I have doubts about the last hour bar, but I hope that since there are no minute bars at all, their volume is zero and they do not affect the calculation results
i created a minute bar to check the adequacy of the calculations, and i have defined that i have an error. On the hour bar i marked the beginning and the end of the hour, and the maximum value in the horizontal indicator, then switched to the minute bar and checked, 6 hour bars were fine, and then something went wrong
Write or provide your code?
Write or provide your code?
the indicator code is on the previous page, i will add the EA when i make sure the indicator works properly, thanks
}
Please swap buy and sell in this EA from this site, I am having trouble with it. It is interesting to check it, because it seems to be too flat.
as for the number of bars - their 60 counts from zero and there is no 60 minutes as this is the zero minute of the new hour, or am I mistaken
Goodnight... morning... or maybe even afternoon...
I am trying to learn mql language... I am facing a misunderstanding... The essence of the problem is in the code:
PrintDoubleToStr" function prints double numbers to the log...
In general, in my journal (Read from bottom to top).
2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: OrderModify error 1 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: 5=5 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: СеллТейкПрофит= 1.41884000 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: OrderTakeProfit()= 1.41884000 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: ЦенаПокупки= 1.44244000 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: OrderStopLoss()= 1.44244000 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: ЦенаПродажи= 1.43064000 2011.09.04 22:56:36 2011.08.01 00:00 Прямоугольник EURUSD,H1: OrderOpenPrice()= 1.43064000
There is a question: Why does it modify the order if all values are equal and therefore this condition is not met:
Please tell me where I went wrong...Please tell me where I went wrong...
I won't catch a fish, but I'll give you a fishing rod... you can add more lines Print(OrderOpenPrice()!=SellTakeProfit) and the picture will be complete and sufficient for independent conclusions.
As they say, "What's in it for me?" I need a worm... Anyway, here's the code:
In the journal:Why with " SellTakeProfit = 1.42505000" and with "OrderTakeProfit()= 1.42505000" still "OrderTakeProfit()!=SellTakeProfit= 1 "
It's not clear in general...