In the realm of technical trading, the importance of effective chart analysis cannot be overstated. The Candle ZigZag indicator has emerged as a reliable tool in this aspect. Unlike the traditional line chart, which represents price movements in curves, Candle ZigZag helps traders analyze charts in a more distinct and clean-cut 'flat' mode.
A key attribute of the Candle ZigZag is its responsiveness to candlestick color changes, which prompts alterations in its leg. Another critical feature is its support for a period of 1. Notably, the standard ZigZag in the example folder lacks this function.
Users also have the convenience of enabling and disabling the 'close mode' as per their analysis preference. The difference in perspective becomes apparent when comparing Candle ZigZag (with close mode= true) to a standard line chart. The analysis becomes easier and more precise, charting new...
Read more...
A key attribute of the Candle ZigZag is its responsiveness to candlestick color changes, which prompts alterations in its leg. Another critical feature is its support for a period of 1. Notably, the standard ZigZag in the example folder lacks this function.
Users also have the convenience of enabling and disabling the 'close mode' as per their analysis preference. The difference in perspective becomes apparent when comparing Candle ZigZag (with close mode= true) to a standard line chart. The analysis becomes easier and more precise, charting new...
Read more...
❤7👍4
Discover the merge of Heiken-Ashi charting and moving averages as a trend confirmation technique in this enlightening piece. Safely understand bullish, bearish, and Doji situations in market fluctuations using Heiken-Ashi (meaning "average pace"), a Japanese trading indicator that clarifies market trends by smoothing out OHLC data.
An introduction to Moving Averages is also covered, shedding light on the power of this versatile tool. Utilized to detect dynamic support and resistance levels, stops and targets, and the underlying trend, understanding moving averages is an essential part of any developer's toolkit.
Coding enthusiasts will find a comprehensive walk-through on generating trading signals using Heiken-Ashi charting and moving averages in the MetaQuotes Language 5 (MQL5). Lean about the functioning of a piece of code that opens and closes positions based on Heiken-Ashi and ...
Read more...
An introduction to Moving Averages is also covered, shedding light on the power of this versatile tool. Utilized to detect dynamic support and resistance levels, stops and targets, and the underlying trend, understanding moving averages is an essential part of any developer's toolkit.
Coding enthusiasts will find a comprehensive walk-through on generating trading signals using Heiken-Ashi charting and moving averages in the MetaQuotes Language 5 (MQL5). Lean about the functioning of a piece of code that opens and closes positions based on Heiken-Ashi and ...
Read more...
👍4🔥2
Unveiling a practical function for applying linear regression in pine script: the linreg(source, length, offset) function. As the cornerstone of financial analysis, linear regression delineates the best approach to align with price trends over specified periods. It magnifies precision through the least squares method.
The function's mechanics are encapsulated in this formula: linreg = intercept + slope * (length - 1 - offset). Parameters comprise the length as the y argument, offset as the z argument, while both intercept and slope derive from least squares computation on the source series (x argument).
The linreg function shines as an expeditious copy-paste instrument in projects transitioning from the tradingview platform. Bolster your coding arsenal with this function, enhancing accuracy, and efficiency.
Read more...
The function's mechanics are encapsulated in this formula: linreg = intercept + slope * (length - 1 - offset). Parameters comprise the length as the y argument, offset as the z argument, while both intercept and slope derive from least squares computation on the source series (x argument).
The linreg function shines as an expeditious copy-paste instrument in projects transitioning from the tradingview platform. Bolster your coding arsenal with this function, enhancing accuracy, and efficiency.
Read more...
❤5👍4👏2😁1🏆1
Continuing the exploration of the creation of a movable dashboard, the second part of the series brings further clarity through a refined method, suitable for EA/Indicator applications. The task of producing multiple movable dashboards calls for a streamlined process - thanks to .mqh files, this can be made simpler. This discussion will shed light on understanding the concept of classes, spotlighting their utility in developing functions and variables and exploring their fundamentals. Classes equip coders with improved management capabilities, making it easier to maneuver increasing complexity. This piece will also guide on creating and declaring classes, writing them, and effectively using them. Classes in .mq5 and .mqh are explored in depth, illuminating the addition of variables and values, and explaining constructors and destructors. Readers will also learn about access modifiers ...
Read more...
Read more...
👍5👏1
Presenting the all-encompassing 'Collect All Indicators Script' designed with an aim to amass all MQL5 in-built indicators buffers and save them in an easily accessible CSV file for meticulous analysis.
Bollinger Bands are represented through BASE_LINE, UPPER_BAND, and LOWER_BAND. The Average Directional Movement Index (ADX) portrays itself through MAIN_LINE, PLUSDI_LINE, and MINUSDI_LINE.
Diverse general indicators have been incorporated such as, Double Exponential Moving Average (DEMA), Fractal Adaptive Moving Average (FRAMA), Moving Average (MA), Parabolic SAR, Standard Deviation (StdDev), Triple Exponential Moving Average (TEMA), and Variable Index Dynamic Average (ViDyA).
Oscillators include Average True Range (ATR), Bears Power, Bulls Power, Chainkin Oscillator, Commodity Channel Index (CCI), DeMarker, Force Index, and multiple more. Indicators like Accumulator Distributor (...
Read more...
Bollinger Bands are represented through BASE_LINE, UPPER_BAND, and LOWER_BAND. The Average Directional Movement Index (ADX) portrays itself through MAIN_LINE, PLUSDI_LINE, and MINUSDI_LINE.
Diverse general indicators have been incorporated such as, Double Exponential Moving Average (DEMA), Fractal Adaptive Moving Average (FRAMA), Moving Average (MA), Parabolic SAR, Standard Deviation (StdDev), Triple Exponential Moving Average (TEMA), and Variable Index Dynamic Average (ViDyA).
Oscillators include Average True Range (ATR), Bears Power, Bulls Power, Chainkin Oscillator, Commodity Channel Index (CCI), DeMarker, Force Index, and multiple more. Indicators like Accumulator Distributor (...
Read more...
👍3❤1🎉1
MetaTrader users often require real-time data sharing, such as trade transactions and account info, using technology like network sockets or web services. A solution could be the MQTT protocol since it offers high performance, low bandwidth consumption, minimal resource requirements, and affordability. While trade copiers are a frequently observed usage case, uses could extend beyond this, providing real-time data for machine learning pipelines, modifying EA performance due to real-time data, or operating MetaTrader from anywhere. Free and open-source MQTT libraries are available for various languages. While DLL-dependency presents some challenges, a native MQTT library for MetaTrader is an alternative.
In MQTT, the packet type determines the operational behavior. MQTT used in pub/sub and follows a standard for data transmission, called "packets", and each packet could contain up to...
Read more...
In MQTT, the packet type determines the operational behavior. MQTT used in pub/sub and follows a standard for data transmission, called "packets", and each packet could contain up to...
Read more...
👍4
For those involved in Forex trading, there are techniques designed to manage open trades and mitigate risk. One such method consists of trading with uniform symbol and type selections, for instance, exclusively using GBPUSD and employing the 'BUY' option. There's a script designed specifically for this approach, the purpose of which is to secure a trader's position by implementing one significant trade as a hedge. The script then proceeds using the CloseBy() function to progressively counterbalance all open trades against this larger trade, continuing the process until all are resolved. It should be noted, for operational clarity, that this process can handle a maximum of 500 concurrent open trades. This volume should cater for most traders' needs and promote a more streamlined trading process. It's a practical approach to trade management illustrating how scripts can be harnessed as ...
Read more...
Read more...
❤5👍4
The CFileCSV class offers an efficient solution for handling CSV files. CSV (Comma Separated Values), a simplistic and widely-used file format, enables smooth data storage and exchange. However, despite its ease of use and compatibility, the lack of support for complex data types and potential issues during large data handling are amongst its limitations.
Designed to bridge MetaTrader 5 Strategy Tester and Python environments, the CFileCSV class aims to revolutionize the way data storage and loading are conceptualized. It has four central public methods: Open, WriteHeader, WriteLine, and Read, with additional private helper methods to assist in the conversion of formats for smooth file processing.
An essential advantage of CSV files is their universal accessibility, courtesy of their ability to be easily opened and manipulated in applications like Excel, Google Sheets, etc. Theref...
Read more...
Designed to bridge MetaTrader 5 Strategy Tester and Python environments, the CFileCSV class aims to revolutionize the way data storage and loading are conceptualized. It has four central public methods: Open, WriteHeader, WriteLine, and Read, with additional private helper methods to assist in the conversion of formats for smooth file processing.
An essential advantage of CSV files is their universal accessibility, courtesy of their ability to be easily opened and manipulated in applications like Excel, Google Sheets, etc. Theref...
Read more...
❤3👍2
Introducing a strategic approach rooted in highly engaging entry criteria, applicable to the construction of a trading bot. Despite the system's recent notable potential in market performance, refinement remains vital for practical testing, be it through a demo account or real currency. The strategy has been backtested with 30 Leverage and revolves around four primary inputs.
The 'Take Profit' or Tp acts as a multiplier of the entire invested amount, setting the desired profit, for instance, an investment of 1000 dollars and a tp of 0.05, will trigger closure of the ea upon reaching a 50-dollar profit.
'Multiplier', a definitive element of the grid, adjusts the volume. 'MaPeriod', a critical metric in the bollinger bands, indicates the period of the moving average.
Lastly, the 'StopLoss' is fixed at a factor of ten times of the 'Take Profit'. The combination of these elements ca...
Read more...
The 'Take Profit' or Tp acts as a multiplier of the entire invested amount, setting the desired profit, for instance, an investment of 1000 dollars and a tp of 0.05, will trigger closure of the ea upon reaching a 50-dollar profit.
'Multiplier', a definitive element of the grid, adjusts the volume. 'MaPeriod', a critical metric in the bollinger bands, indicates the period of the moving average.
Lastly, the 'StopLoss' is fixed at a factor of ten times of the 'Take Profit'. The combination of these elements ca...
Read more...
👍9⚡1👏1
Dig deeper into the realm of category theory with a new article focused on orders and their potential role in enhancing trading strategies. Through the lens of ranking set elements, the article explores set orders and their potential to enhance trailing stop methods within traditional trading systems.
Discover how an approach rooted in category theory can illuminate a range of possible ordered set patterns, drawn from elements as diverse as price action patterns and common multi-asset index patterns. The study reformulates these various steps into subsets with the goal of extracting more meaningful patterned insights.
Delve into the distinct types of orders in category theory such as Pre-orders, Partial-orders, and Linear-orders, each with unique mechanisms for ranking elements within a set. Learn how each order's properties might be leveraged in a trading strategy, and understand...
Read more...
Discover how an approach rooted in category theory can illuminate a range of possible ordered set patterns, drawn from elements as diverse as price action patterns and common multi-asset index patterns. The study reformulates these various steps into subsets with the goal of extracting more meaningful patterned insights.
Delve into the distinct types of orders in category theory such as Pre-orders, Partial-orders, and Linear-orders, each with unique mechanisms for ranking elements within a set. Learn how each order's properties might be leveraged in a trading strategy, and understand...
Read more...
❤3👍2
Post 1: In the first video, participants are given a comprehensive overview and understanding of IT infrastructure and its complexities. An eye-opener for both seasoned and new developers seeking to understand the nuances at work. Valuable insights are provided into the interplay of hardware, software, networks and data in IT systems.
Post 2: In the second video, a detailed overview of the basics of programming is shared. The content is beneficial to developers seeking to lay a firm foundation for their coding skills. The content covers essential aspects such as syntax, testing, debugging, and coding best practices.
Post 3: The third video is a rich repository of information about cutting-edge technology trends. It offers a peek into the future of IT and programming. This video holds immense value for those in the tech field seeking to stay abreast of technological advancements and ...
Read more...
Post 2: In the second video, a detailed overview of the basics of programming is shared. The content is beneficial to developers seeking to lay a firm foundation for their coding skills. The content covers essential aspects such as syntax, testing, debugging, and coding best practices.
Post 3: The third video is a rich repository of information about cutting-edge technology trends. It offers a peek into the future of IT and programming. This video holds immense value for those in the tech field seeking to stay abreast of technological advancements and ...
Read more...
👍4❤2
Engulfed in the complexities of trading simulation? Break the barriers of finite historical data to establish a robust trading model using the arbitrary discretization method. Consider factors like pricing laws, volatility, and rate of pricing while you model pricing. Understand the essence of "alpha" value and rollback percentage to determine the market flatness. The probability of an upward step can be a useful parameter while simulating a new step. Incorporate the concept of a one-way trading model suitable for spot-trading of cryptocurrencies. The model showcases resilience towards spreads and eliminates dependency on trading leverage. Run through multiple simulations to determine the impact and effectiveness of your assumptions and calculations. Implement these concepts to create a detailed mathematical model for diversified trading using the rebuy algorithm.
Read more...
Read more...
👍8❤1
Art of the Code: Delving into Object-Oriented Programming and its implementation in MQL5. Strategies for creation of secure, streamlined and reusable code are essential for the proficient developer. A key method to achieve this is through the utilization of Object-Oriented Programming (OOP).
Understanding OOP and its efficient application assists developers in adhering to the 'Do Not Repeat Yourself' (DRY) principle, avoiding duplication and promoting code reusability. Such an approach can enhance software security significantly and provide numerous additional benefits.
Of particular importance is the applicability of OOP in MQL5 (MetaQuotes Language). Here developers are invited to utilize OOP principles to enhance their existing MQL5 coding techniques. The three fundamental tenets of OOP are crucial for this strategy; 'Encapsulation', 'Abstraction', and 'Polymorphism'.
The first...
Read more...
Understanding OOP and its efficient application assists developers in adhering to the 'Do Not Repeat Yourself' (DRY) principle, avoiding duplication and promoting code reusability. Such an approach can enhance software security significantly and provide numerous additional benefits.
Of particular importance is the applicability of OOP in MQL5 (MetaQuotes Language). Here developers are invited to utilize OOP principles to enhance their existing MQL5 coding techniques. The three fundamental tenets of OOP are crucial for this strategy; 'Encapsulation', 'Abstraction', and 'Polymorphism'.
The first...
Read more...
❤3👍2👌1
Subject: Use of Volume Profile Tool in Technical Analysis
Understanding trading tools is crucial for accurate market analysis. Among these tools, one of significant importance is the Volume Profile tool, commonly known as horizontal volume. This tool employs a horizontal histogram chart to visually represent transaction volume at different price levels within a specific time frame. Notably, transaction activity is reflected in the length of the bars - longer bars signify more trade volume at a specific price.
The execution of the calculations involved in this indicator is straightforward, favouring swift and lightweight operation. Displaying the volume profile within a designated time interval requires placement of two vertical lines appearing after the indicator's execution delineating the chosen time frame.
Adjustment of these lines allows modifications in the volume profile corr...
Read more...
Understanding trading tools is crucial for accurate market analysis. Among these tools, one of significant importance is the Volume Profile tool, commonly known as horizontal volume. This tool employs a horizontal histogram chart to visually represent transaction volume at different price levels within a specific time frame. Notably, transaction activity is reflected in the length of the bars - longer bars signify more trade volume at a specific price.
The execution of the calculations involved in this indicator is straightforward, favouring swift and lightweight operation. Displaying the volume profile within a designated time interval requires placement of two vertical lines appearing after the indicator's execution delineating the chosen time frame.
Adjustment of these lines allows modifications in the volume profile corr...
Read more...
👍9❤2
From the school of Reinforcement Learning emerges a groundbreaking approach, the Nuclear Norm Maximization (NNM) method, cast into the spotlight by a recent technical paper "Nuclear Norm Maximization Based Curiosity-Driven Learning". This innovation strives to enhance the Agent's exploration of the environment. It intelligently utilizes nuclear norm maximization, which lends high immunity against noise and spikes for potent evaluation of environmental exploration novelty.
In application, the Matrix norms such as Nuclear Norm and others come into play in linear algebra along with computational methodologies. The Nuclear Norm of a matrix serves as a robust numerical determiner of the "size" of the matrix. The proposed NNM method considers the state's novelty by employing the nuclear norm of the matrix while lessening noise impacts.
The method introduces an internal reward equation t...
Read more...
In application, the Matrix norms such as Nuclear Norm and others come into play in linear algebra along with computational methodologies. The Nuclear Norm of a matrix serves as a robust numerical determiner of the "size" of the matrix. The proposed NNM method considers the state's novelty by employing the nuclear norm of the matrix while lessening noise impacts.
The method introduces an internal reward equation t...
Read more...
👍3🔥3⚡2
Understanding the concepts of cosine distance and cosine similarity is of utmost importance in vector mathematics. Both concepts play pivotal roles in functions involving measurements in relation to vectors.
The cosine distance between two vectors A and B can be simply understood as (1 - CosineSimilarity).
Shedding some light on cosine similarity - it's fundamentally the measurement of the angle between the two vectors. Alternatively, one could apprehend it as the dot product of vectors divided by their magnitudes when multiplied.
In pursuit of better insight, there's a cogent explanation available, albeit with a minor discrepancy in the cos(45) calculation. Even with the minor error, the presented example manages to clarify the core idea.
Remember, a firm grasp of these concepts can present a gateway to deeper understanding of complex vector functions. Calculations involving co...
Read more...
The cosine distance between two vectors A and B can be simply understood as (1 - CosineSimilarity).
Shedding some light on cosine similarity - it's fundamentally the measurement of the angle between the two vectors. Alternatively, one could apprehend it as the dot product of vectors divided by their magnitudes when multiplied.
In pursuit of better insight, there's a cogent explanation available, albeit with a minor discrepancy in the cos(45) calculation. Even with the minor error, the presented example manages to clarify the core idea.
Remember, a firm grasp of these concepts can present a gateway to deeper understanding of complex vector functions. Calculations involving co...
Read more...
👍8⚡4✍2👌2
Explore the concept of Mean Reversion, a well-regarded contrarian trading principle, successful in predicting price return to a state of equilibrium. Grasp how to identify these shifts via market movement observations, utilizing central tendency statistics and algorithms aligning with quantitative methods.
Understand the mechanics of Mean Reversion - it's not simply a case of predicting rises and falls. Depending upon whether the current market price lies above or below the historical average, traders can anticipate either a rise or dip.
Reflect on the fact that Mean Reversion is not a short-term solution, it may indeed take years for asset classes or exchange rates to exhibit mean reversion. The key is recognizing signs of symmetry in stock fluctuations, forming a solid base for multiple trading strategies.
Despite its scientific semblance, mean reversion models do not incorpor...
Read more...
Understand the mechanics of Mean Reversion - it's not simply a case of predicting rises and falls. Depending upon whether the current market price lies above or below the historical average, traders can anticipate either a rise or dip.
Reflect on the fact that Mean Reversion is not a short-term solution, it may indeed take years for asset classes or exchange rates to exhibit mean reversion. The key is recognizing signs of symmetry in stock fluctuations, forming a solid base for multiple trading strategies.
Despite its scientific semblance, mean reversion models do not incorpor...
Read more...
👍6
The "Strength Index Signal," a proprietary stock arrow indicator, promises to become a vital tool in traders' arsenals. Leveraging currency strength analysis, the indicator guides traders in making informed decisions, tipping the scales towards successful transactions in the volatile financial markets.
Crafted and honed over many years by a team of professional traders, the 'Strength Index Signal' stands as a testament to the confluence of experience and expertise. It's anticipated that this tool will play a key role in driving profitable trading strategies.
Ready to empower yourself with deeper market insights? Get acquainted with the "Strength Index Signal" today. No more swimming against the tide – make the market work for you.
Read more...
Crafted and honed over many years by a team of professional traders, the 'Strength Index Signal' stands as a testament to the confluence of experience and expertise. It's anticipated that this tool will play a key role in driving profitable trading strategies.
Ready to empower yourself with deeper market insights? Get acquainted with the "Strength Index Signal" today. No more swimming against the tide – make the market work for you.
Read more...
❤6👍6
Presenting an innovative way to create an interactive dashboard, enhancing the debugging and data visualization process for IT professionals and developers. The approach centers around developing a panel that can display specific data set by the developer, improving efficiency and convenience in displaying data on a chart and visual debugging. The core concept revolves around the use of classes for managing tabular data.
The proposed structure is a prototype terminal data window which can handle any amount of required data. Developers gain the freedom to add, sign, display, and update readings as per the needs of their code. The panel movement and its positioning on a chart, along with features like collapse, and expansion are flexible.
Moreover, the proposed panel design relies on the principle of tabular data positioning. It employs a grid system for its visual arrangement, cont...
Read more...
The proposed structure is a prototype terminal data window which can handle any amount of required data. Developers gain the freedom to add, sign, display, and update readings as per the needs of their code. The panel movement and its positioning on a chart, along with features like collapse, and expansion are flexible.
Moreover, the proposed panel design relies on the principle of tabular data positioning. It employs a grid system for its visual arrangement, cont...
Read more...
👍5
A new way to upgrade your experience in technical chart analysis! Just add the designated indicator to your chart and then save the template under the name "default." Going forward, all newly opened charts will automatically open up with this indicator pre-embedded, resulting in an efficient, streamlined process. Seize the opportunity to optimize your data visualization. For MT4 users, find the necessary code at the designated MT4 forum on mql5.com. Detailed instructions are available to ensure a smooth implementation experience. Be at the forefront of effective data representation. Remember, better visualization leads to improved decision making.
Read more...
Read more...
👍9
Following the remarkable start to our journey into the sphere of MQL5 for algorithmic trading, brace yourselves for a deeper foray into its sublime intricacies. Part Two illuminates the significant aspects of this comprehensive programming language, aimed to foster an intuitive understanding even amongst non-programmers. Master the world of predefined variables - primed containers that encapsulate information about the state of the program, trading environment, or market conditions. Grasp the potency of common functions, the building blocks that make the automation of algorithmic trading a feasible reality. Unravel Arithmetic, Relational, and Logical Operations, the linchpin defining the functional interaction of code modules. The voyage continues, promising more insights into Expert Advisors, Strategy Testing, and much more. The goal remains clear - create a vibrant community, a know...
Read more...
Read more...
❤4👍1