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
Hello! There is an array of closing prices of 30 min bars of the EURUSD pair, from 01.01.2012 to 31.12.2012. I get it with function CopyClose. But CopyClose[0] doesn't equal to close price of last bar on 31.12.2012 in terminal, if I open chart. Please tell me what I'm doing wrong. Why the prices from CopyClose and the actual price on the chart do not coincide
Before you call Close_buf[0] you must use ArraySetAsSeries. Once, during entire operation of EA/Script/indicator code.
ArraySetAsSeries must be used before calling Close_buf[0]. Once, for the entire duration of the EA/script/indicator code.
It still does not match, it shows 1.32308 instead of 1.31964 (last bar close price in 2012)
Still doesn't match, displays 1.32308 instead of 1.31964 (closing price of last bar in 2012)
Yes it worked, thank you! Although it's still not clear why the prices only matched when the exact date was specified down to the seconds
Probably because 2012.12.31 defaults to 2012.12.31 00:00:00, not 2012.12.31 24:00:00
I wrote a trend EA and it seems to be successful. Now I am writing a flat EA and... This is the 5th time this EA is reduced to the previous one, as if I am stuck with only one algorithm. Everything starts out as "new", but after the algorithm is structured, I start writing an EA that starts to adjust to the first (successful) one in every possible way.
If anyone has faced such a thing - tell me how to "get rid" of the imposing algorithm, which only brings down the deposit in the flat.
Faced the problem of psychological direction.
I wrote a trend EA and it seems to be successful. Now I am writing a flat EA and... This is the 5th time this EA is reduced to the previous one, as if I am stuck with only one algorithm. Everything starts out as "new", but after the algorithm is structured, I start writing an EA that starts to adjust to the first (successful) one in every possible way.
If anyone has faced such a thing - tell me how to "get rid" of the algorithm, which only brings down the deposit in the flat.