Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 435
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
Please advise why this is happening.
Tester.TF 5min All ticks.
In variables pY and pY1 the program should write the number of bars on EVERY tick.
That is, Print in the journal should print the sequence number of EVERY tick.
In fact, judging by the Print function in the journal, the interval between successive five-minute ticks is about one month.
QUESTION: Why don't the pY and pY1 variables get the value of EACH five-minute interval?
Thank you.
I've been trying for three or four days now.
The goal is to open a trade when the opening price of the current bar is for example above the price set ... we take it as a condition for entering...... and it will not reopen until a similar condition is formed for entering....
Please advise why this is happening.
Tester.TF 5min All ticks.
In variables pY and pY1 the program should write the number of bars on EVERY tick.
That is, Print in the journal should print the sequence number of EVERY tick.
In fact, judging by the Print function in the journal, the interval between successive five-minute ticks is about one month.
QUESTION why variables pY and pY1 don't get the value of the sequence number of EVERY five-minute tick?
Thank you.
Bars+239, why do you need a bar number that isn't even in the history?
And in general "number of bars on each tick" What is this??????
Try explaining the problem in more detail, it's just laughter alone.....
There is no such term as "pentameter number" .......
Can I have a line of code, please, on how to put the order tickets into an array?
Here's a start on the typing, right?
Can I have a line of code, please, on how to put the order tickets into an array?
Here's a start on the typing, right?
But a two-dimensional array is better, where other order parameters can also be entered. You can read about it here.
Right away, Bars+239, why do you need a bar number that isn't even in the history?
And in general "number of bars on each tick" What is this??????
Try to explain the problem in more detail, it's just laughter alone.....
There is no such term as "ordinal number of five ticks".......
And I don't need a bar numberthat isn't in the history.
I need the serial number of the last current bar, for example 100, the program would add 239 and the number 339 would be written
into the pY1 variable and the number 100 into the pY variable.
And the program really does it.
BUT FOR SOME REASON IT DOESN'T DO IT ON EVERY CANDLESTICK
What I need is for pY and pY1 to update once every 5 minutes and for EVERY five minutes candlestick.
I understand that every five-minute candlestick has several ticks and on every tick of the same candlestick the
pY and pY1 will be the same.
But I don't understand why the values of pY and pY1 are not updated at EVERY candle.
They are updated by n - the number of candles.
Why not for EVERY candle?
Maybe I've used a wrong term.
But doesn't the Bars variable predefined at the moment of a new five-minute bar occurrence take
the value of the sequence number of this new five-minute bar?
I don't need a bar numberthat isn't in the history.
I need to add 239 to the number of the last current bar, for example 100, and the number 339 will be written
into the pY1 variable and the number 100 into the pY variable.
And the program really does it.
BUT FOR SOME REASON IT DOESN'T DO IT ON EVERY CANDLESTICK
What I need is for pY and pY1 to update once every 5 minutes and for EVERY five minutes candlestick.
I understand that every five-minute candlestick has several ticks and on every tick of the same candlestick the
pY and pY1 will be the same.
But I don't understand why the values of pY and pY1 are not updated at EVERY candle.
They are updated by n - the number of candles.
Why not for EVERY candle?
Maybe I've used a wrong term.
But doesn't the Bars variable predefined at the moment of a new five-minute bar appearing?
the value of the sequence number of this new five-minute bar?
You are completely confused... The current bar always has number 0. And if the time has come, in your case five more minutes, the bar you examined a few seconds ago will already be number 1, and a new bar newly formed will get number 0.
But according to your code, with each new bar should be shifted by one......??
So maybe it's not about the reel? How do you look at the log? In Metatrader? Try <Journal><Open> and then use standard Notepad to open the last file. I have faced with this sometimes, if there are a lot of messages in the log, MetaTrader does not show everything... Try