Questions from Beginners MQL5 MT5 MetaTrader 5 - page 994
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
Thank you too. That works too)
I want to thank you too :)))
This one
can be replaced with this and it will work the same.
Good day. Question. How may I associate tick data with timeframe bars? Below is a part of the code. It switches the colour of the buffer. Figured it out
with colours, but it's not clear how to link here...? I have some thoughts about MqlRates structure, but it's not clear which value to take...? I've seen how it works (example in documentation), but the value jumps and it's not clear why
I want to thank you too :)))
Thank you too. I haven't tried this design, but I take your word for it that it works.)
You shouldn't have tried it. It was a joke about thank you, but the code is serious. Why convert double to int via string when there is an absolute value function...
Good day. A question has arisen. How to link tick data to timeframe bars. Below is a part of the code. It is switching the colour of the buffer. Figured it out
with colours, but it's not clear how to link here...? I have some thoughts about MqlRates structure, but it's not clear which value to take...? I saw how it works (example in documentation), but value of it jumps and i don't understand why.
You don't check what is received in
Functions return 0 in case of error. Your logic will also work in case of erroneous data from iOpen() in the first case and iClose() in the second.
For receiving tick data in mql5 there's structure MqlTick and function CopyTicks(), in which you can get the data of the necessary number of last ticks in the structure. Then, in order to link it with a bar of the timeframe, you need to get the bar number by tick time. iBarShift() and the tick.time structure field
You do not check what is received in
Functions return 0 in case of error. Your logic will also work in case of error data from iOpen() in first case and iClose() in second case.
To get the tick data in mql5, there is a structure MqlTick and function CopyTicks(), in which you can get the data for the necessary number of last ticks in the structure. Then, in order to link it with a bar of the timeframe, you need to get the bar number by tick time. iBarShift() and the tick.time structure field
Thank you. The difficulty here (in my question) is that candles are painted with ticks. It's easier by the bar of the timeframe. But... And that's why I'm here again))))
Please. There (in your question) I don't understand anything...
Please. I don't understand anything here (in your question)...
Gentlemen, I can't understand where the parameter continuous number of losing trades is in the mt5 tester or does it need to be prescribed in the robot? mt4 has it. I can't find how to implement it.
You can do the math yourself, choose in the custom criteria.