What does the Timeframe have to do with it? The trade is being executed according to the Symbol. And the trade is displayed (or not displayed) by the Symbol.
Handy thing, immediately shows errors in TA if there were deals. But on large timeframes icons, already obscure the candles.
BillionerClub: How to get with the code, to change the properties,"Show trades on the chart in real time".
I have not checked, but maybe this?
CHART_SHOW_TRADE_LEVELS - property to display trade levels (levels of open positions, Stop Loss, Take Profit and pending orders) on the chart.
//+------------------------------------------------------------------+//| Функция определяет, отображаются ли на графике торговые уровни. |//+------------------------------------------------------------------+bool ChartShowTradeLevelsGet(bool &result,constlong chart_ID=0)
{
//--- подготовим переменную для получения значения свойстваlong value;
//--- сбросим значение ошибкиResetLastError();
//--- получим значение свойстваif(!ChartGetInteger(chart_ID,CHART_SHOW_TRADE_LEVELS,0,value))
{
//--- выведем сообщение об ошибке в журнал "Эксперты"Print(__FUNCTION__+", Error Code = ",GetLastError());
return(false);
}
//--- запомним в переменную значение свойства графика
result=value;
//--- успешное выполнениеreturn(true);
}
//+------------------------------------------------------------------+//| Функция включает/выключает режим отображения торговых уровней. |//+------------------------------------------------------------------+bool ChartShowTradeLevelsSet(constbool value,constlong chart_ID=0)
{
//--- сбросим значение ошибкиResetLastError();
//--- установим значение свойстваif(!ChartSetInteger(chart_ID,CHART_SHOW_TRADE_LEVELS,0,value))
{
//--- выведем сообщение об ошибке в журнал "Эксперты"Print(__FUNCTION__+", Error Code = ",GetLastError());
return(false);
}
//--- успешное выполнениеreturn(true);
}
Good morning. Can you tell me how to open a link in a browser in MQL5? When I click on the button, it needs to open browser and click on the link. The code below gives out errors.
Good morning. Can you tell me how to open a link in a browser in MQL5? When I click on the button, it needs to open browser and click on the link. The code below generates errors.
Check theShellExecuteW parameters
in the function prototype, the 2nd parameter has the INT type, and you are passing the string....
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Service - Settings - Trading - "Show trades on the chart in real time".
Basically a great feature, only without the choice of timeframe to show, it's creepy on weeks.
Basically a great feature, only without the choice of timeframe to display, it's creepy in weeks.
What does timeframe have to do with it? The deal is shown (or not shown) on the timeframe. And the trade is displayed (or not displayed) by the SYMM.
What does the Timeframe have to do with it? The trade is being executed according to the Symbol. And the trade is displayed (or not displayed) by the Symbol.
Handy thing, immediately shows errors in TA if there were deals. But on large timeframes icons, already obscure the candles.
How to get with the code, to change the properties,"Show trades on the chart in real time".
I have not checked, but maybe this?
Good morning. Can you tell me how to open a link in a browser in MQL5? When I click on the button, it needs to open browser and click on the link. The code below gives out errors.
Good morning. Can you tell me how to open a link in a browser in MQL5? When I click on the button, it needs to open browser and click on the link. The code below generates errors.
Check theShellExecuteW parameters
in the function prototype, the 2nd parameter has the INT type, and you are passing the string....
Added
It should be like this in the prototype
So your prototype is not described correctlyCheck theShellExecuteW parameters
In the prototype function, the 2nd parameter is of INT type, and you are passing the string....
Added by
It should be so in the prototype.
So your prototype is not described correctlyThanks, it worked.
Good afternoon, the function to switch on programmatically is
and how do you switch it off programmatically?