0% found this document useful (0 votes)
356 views3 pages

Mql5 Practise Questions

The document outlines a comprehensive list of programming tasks for MQL5, categorized into four levels: Beginner, Intermediate, Advanced, and Master. Each level contains specific tasks ranging from simple scripts that print messages or retrieve market data to complex Expert Advisors (EAs) that utilize advanced trading strategies and indicators. The tasks are designed to enhance skills in algorithmic trading and programming within the MQL5 environment.

Uploaded by

ngugijoenyaga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
356 views3 pages

Mql5 Practise Questions

The document outlines a comprehensive list of programming tasks for MQL5, categorized into four levels: Beginner, Intermediate, Advanced, and Master. Each level contains specific tasks ranging from simple scripts that print messages or retrieve market data to complex Expert Advisors (EAs) that utilize advanced trading strategies and indicators. The tasks are designed to enhance skills in algorithmic trading and programming within the MQL5 environment.

Uploaded by

ngugijoenyaga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Beginner (1–25)

1. Write a simple script that prints "Hello, MQL5!" in the Experts log.
2. Create a script to get and print the current Bid and Ask prices of EUR/USD.
3. Write a function to calculate the sum of two integers and display the result in the log.
4. Create a script to open a buy position with a fixed lot size.
5. Write a function to calculate the Simple Moving Average (SMA) of the last 10 candles.
6. Develop a script that closes all open positions in the terminal.
7. Write a script to print the current account balance and equity.
8. Create a custom function to calculate the difference between two prices in pips.
9. Write a script to check if the market is open.
10. Write a script to display the current server time in the Experts log.
11. Develop a script that places a sell stop pending order with predefined SL and TP.
12. Write a script to iterate through all open orders and print their ticket numbers.
13. Create a function to calculate the Exponential Moving Average (EMA).
14. Develop a script to draw a horizontal line at the current Bid price.
15. Write a script to retrieve the symbol name of the current chart.
16. Create a script to display the High, Low, and Close prices of the last candle.
17. Write a function to count the number of bars in the current chart.
18. Create a script to display the average price of the last 5 candles.
19. Write a function to determine if the current candle is bullish or bearish.
20. Develop a script to open both a buy and sell order simultaneously (hedging).
21. Write a script to modify the stop loss of all open positions.
22. Create a function to calculate the standard deviation of the last 20 candles.
23. Write a script to place a market order only if no other trades are open.
24. Create a script to display the daily range of a symbol.
25. Write a function to calculate the Relative Strength Index (RSI) for the last 14 periods.

Intermediate (26–50)

26. Develop an EA that opens a trade when the 50 SMA crosses above the 200 SMA.
27. Write a script to calculate and print the ATR value for the last 14 candles.
28. Create an EA that automatically adjusts its lot size based on account equity.
29. Write an indicator to plot a 14-period RSI on a separate chart window.
30. Develop a script to backtest a simple moving average crossover strategy.
31. Write an EA to place trades based on the MACD signal line crossing.
32. Create a custom function to calculate the Bollinger Bands for the last 20 candles.
33. Write a script to place a pending order with a user-defined expiration time.
34. Develop an indicator to display the Fibonacci retracement levels on the chart.
35. Write a script to calculate the Sharpe Ratio for a given set of trades.
36. Create an EA that closes all trades if the account equity falls below a threshold.
37. Write a function to identify and print key support and resistance levels.
38. Develop a script to log the spread for the current symbol every minute.
39. Write an indicator to draw pivot points for the day.
40. Create a script to calculate the profit or loss for each symbol traded today.
41. Write an EA that uses the Parabolic SAR indicator for entry and exit signals.
42. Develop a script to log all account trades to a CSV file.
43. Write a function to determine the trend direction based on a given moving average.
44. Create an EA that places grid orders around the current price.
45. Write a script to display the RSI and MACD values on the chart.
46. Develop an EA that uses trailing stops to manage open trades.
47. Write a script to identify inside bar patterns and mark them on the chart.
48. Create an EA that scales into trades after a defined profit target is hit.
49. Write an indicator to highlight candlestick patterns like Doji or Engulfing.
50. Develop an EA that places trades during high-impact news events.

Advanced (51–75)

51. Write an EA that trades based on divergences in RSI and price action.
52. Create an EA to trade breakouts of the previous day’s high/low levels.
53. Develop a multi-currency EA that manages trades across multiple pairs.
54. Write a script to calculate the maximum drawdown of the account history.
55. Create an indicator to visualize order flow or tick data in real time.
56. Write an EA that uses fractals for entry and exit points.
57. Develop an EA to detect and trade chart patterns like Head and Shoulders.
58. Create a function to calculate the Profit Factor of a trading strategy.
59. Write an EA that implements a Martingale or Anti-Martingale strategy.
60. Develop an EA that dynamically adjusts its stop loss based on volatility.
61. Write a custom indicator to show historical trades on the chart.
62. Create a script to simulate slippage and its effects during backtesting.
63. Write an EA to trade using Keltner Channels and ATR values.
64. Develop a money management system that limits daily losses.
65. Write an EA to hedge open trades automatically when a drawdown threshold is reached.
66. Create a function to calculate the Correlation Coefficient between two symbols.
67. Write a custom indicator to show tick volume in a histogram.
68. Develop an EA to trade using the Ichimoku Kinko Hyo indicator.
69. Write an EA to detect price gaps and place trades accordingly.
70. Create an EA that rebalances a portfolio of symbols periodically.
71. Write a script to identify overbought or oversold conditions using Stochastic Oscillators.
72. Develop an EA to trade based on harmonic patterns like Gartley or Butterfly.
73. Write an EA to scale out of positions gradually as profit levels are reached.
74. Create a function to calculate the risk-reward ratio of a given trade.
75. Develop an EA that uses neural networks or machine learning for decision-making.

Master (76–100)
76. Write an EA that trades based on advanced statistical arbitrage strategies.
77. Create an EA to implement a fully automated news trading system.
78. Develop a multi-timeframe EA to analyze trends across different periods.
79. Write an EA to trade based on advanced volume profile analysis.
80. Create a function to calculate Monte Carlo simulations for a strategy.
81. Write an EA to implement a custom adaptive moving average.
82. Develop an EA to use dynamic portfolio optimization techniques.
83. Write an EA to combine multiple indicators and optimize entry conditions.
84. Create an EA that uses sentiment analysis data for trading decisions.
85. Develop an EA to place trades based on seasonality patterns.
86. Write a script to calculate the efficiency ratio of price movements.
87. Create an EA to trade based on Elliott Wave analysis.
88. Write a custom function to implement advanced position sizing techniques.
89. Develop an EA that tracks institutional order blocks for trading.
90. Write an EA that integrates with external APIs for additional data sources.
91. Create a real-time dashboard to display key trading metrics on the chart.
92. Write an EA to trade based on proprietary candlestick analysis.
93. Develop an EA to implement contrarian trading strategies.
94. Write an EA to trade during market open/close sessions dynamically.
95. Create an EA to manage high-frequency trading algorithms.
96. Write a function to backtest and optimize an EA on multiple symbols simultaneously.
97. Develop an EA to implement options-based hedging strategies in Forex.
98. Write an EA to visualize and trade based on liquidity zones.
99. Create an EA to execute trades using blockchain-based signals.
100. Develop an EA that learns and adapts its strategy through reinforcement learning.

You might also like