MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
In the subsequent stage of implementing the script for visualizing deals, focus is on selecting data for an individual deal and rendering the necessary chart objects. Utilize the HistorySelectByPosition() method to obtain historical data by a unique POSITION_IDENTIFIER from MetaTrader 5, which is input through a global variable. The procedure mirrors the logic from the previous selection but simplifies historical order requests.

Opening charts entails verifying symbol validity to prevent errors associated with "non-existent symbols," often arising from variations in broker account types or Market Watch window settings. This includes deviations like commission charges and spread variations contingent on account and instrument types. Symbols are validated using the SymbolSelect() function, ensuring availability in Market Watch.

Once symbols are confirme...
#MQL5 #MT5 #script #DealVisual

Read more...
42👍375👌4