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
I'm trying to figure out how to save data to a file. I have written the following code:
Only the last price value is saved to a file. I want the value of prices in a column. Where did I go wrong?
I'm really dumb)) I listened to advice earlier and rewrote the code, although I don't understand why it was like this... nothing has changed anyway. In idea it's the most elementary program for writing something to a file, and I'm so dumb...))
Just a reminder, I'm trying to write a program for saving ticks to a file. Saves only the last tick for some reason.
I'm really dumb)) I listened to advice earlier and rewrote the code, although I don't understand why it was like this... anyway, nothing has changed. In idea it's the most elementary program for writing something to a file, and I'm so dumb...))
Just a reminder, I'm trying to write a program for saving ticks to a file. For some reason, it only saves the last tick.
FileIsEnding(FILE);
Doesn't set the file cursor to the end of the file at all, as you probably intended.
Work it out and you'll be happy. :)
I'm really dumb)) I listened to advice earlier and rewrote the code, although I don't understand why it was like this... nothing has changed anyway. In idea it's the most elementary program for writing something to a file, and I'm so dumb...))
Just a reminder, I'm trying to write a program for saving ticks to a file. Saves only the last tick for some reason.
This is about the right way to do it.
about this is how it should be
I've noticed that in MT4 before opening a deal you can set stop-loss and take-profit level, but not in MT5, or is it possible, but in a different way?
I have noticed that in MT4 before opening a deal, you could set the stoploss and takeprofit level, but MT5 doesn't have it or is it possible, but in a different way?
Hello.Code.Working TF M15.Transition to Open-Close block occurs on a new bar.
If due to a requote (for example), the position will not open, then it will reopen on the next bar.
And if the entry criterion (looking at the OHLC of the previous bar) is gone, the position will not open.
Do I understand it correctly?
ZS.Probably it makes sense to enter at least on a new minute.
Colleagues, can you tell at a glance, without benchmarking, what is faster: to execute CopyTime() of the whole history once or to call it every time only for some bars (which may be less than Bars() of the whole history) and to copy the time of just one - current bar - into Arr?
If you don't look back to the benchmark, but reason logically, based on knowledge, how can you justify your answer? ...Although I understand that this is already in the direction of C/C++...