Константы, перечисления и структуры / Состояние окружения / Информация о запущенной MQL5-программе - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
Hello. Not sure who to ask, where to write. Is it possible to trade via MT5 with Interactive Brokers? I asked them a question, but they threw a link in the reply to contact https://www.metaquotes.net/ru/company/contacts, so it's a form for a legal entity. There seems to be some kind of software bridge between MT5 and TWS, can you tell me anything about that? If there is a possibility to buy quotes from American stock exchanges with MT5 broadcasting in order to see the chart of a certain instrument and use MT5 indicators, but make transactions through TWS. If this is not the right question, please tell me where to write and ask.
Tired of understanding the reason for the constant difference in the optimisation of a good EA in MT5... On the same currency pair, with the same EA, with the same optimization parameters, there is a difference in optimization results... I.e., I always use the same EA and expected the same results, but in fact they are different...
Enlighten pliz, to whom is familiar with this kind of confusion ?
THANK YOU.
Mostly uninitialized forced variables or reference to global variables (those in the terminal)
Question, is there any way to determine programmatically that a tester is running in MT5 ?
Tired of understanding the reason for the constant difference in the optimisation of a good EA in MT5... On the same currency pair, with the same EA, with the same optimization parameters, there is a difference in optimization results... I.e., I always use the same EA and expected the same results, but in fact they are different...
Enlighten pliz, to whom is familiar with this kind of confusion ?
THANK YOU.
Mostly uninitialized forced variables or reference to global variables (those in the terminal)
Help, candlestick indicator
OnCalculate performs the calculation and fills the buffers INDICATOR_DATA when the conditions are fulfilled
I thought that when these buffers are filled the candlestick should be drawn. But it is not. Why?
Help, candlestick indicator
OnCalculate performs the calculation and fills the buffers INDICATOR_DATA when the conditions are fulfilled
I thought that when these buffers are filled the candlestick should be drawn. But it is not. Why?
Where is the full code? It is not clear, what exactly you do in OnCalculate. As an example, use theDRAW_CANDLES help.
And what is this candle with negative prices?Where is the full code? It's not clear what exactly you are doing in OnCalculate. As an example, use theDRAW_CANDLES help.
And what is this candle with negative prices?Forum on trading, automated trading systems & strategy testing
MQ5::Question on candlestick indicator.
Sergey Tabolin, 2020.08.05 18:17
Edgar, thank you, but it is clear to me. What is not clear is why there are no ticks before 2019?
Now the main question is.
Why are the candles not drawn in the indicator? Where am I wrong?
Public domain source ))))
This is simply an initialisation to start the countdown. The prices are counted correctly.
In debugging, go through and check in which cases will your condition be met?
In debugging, go through and check in which cases your condition will be met?
I realise that this may not be correct. But!
It works. The condition is fulfilled when the indicator starts. Once. The prices are printed. Then the ticks are calculated. They are also printed.
But I want to know why no candlesticks are printed.
I realise that this may not be the right thing to do. But!
It works. The condition is met when the indicator starts. Once. The prices are printed. Then the ticks are calculated. They are also printed.
But I want to know why no candlestick is drawn.
First, learn to build the indicator based on DRAW_CANDLES. At the same time you have to think what a '0' candlestick is.
That is, until you get even close to the ticks.
To draw a candlestick, you have to fill ALL four buffers. You don't do that - you skip both newCandles_Close and ....