JS-MA-Day
This professional-grade solution for MetaTrader 5 helps traders achieve greater efficiency in their daily workflow. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use JS-MA-Day
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
Idea by
: .
MQL5 code by
: .
The EA is based on indicator iMA (Moving Average, MA) with timeframe D1.
You can increase your positions (set parameter "
Increase positions
" to "true"), but you should be careful when setting parameters "
Close hour
" and "
Increase timeframe
". An example of erroneously set parameters: You set "
Close hour
" to "23" and "
Increase timeframe
" to "PERIOD_H4". In this case, positions will not close at 23-00, since candlesticks open at the period of H4 at the following times: 16-00, 20-00, and 00-00, i.e., we cannot be within the range of 23-00 at all. This is why, if you enable "
Close hour
" (the value exceeds "-1") for parameter "
Increase timeframe
", it is better to select H1 or a lower timeframe. When increasing your positions, you can limit the number of open positions ("
Max positions
") on the current symbol and with the current "
magic number
".
Stop loss, take profit, and trailing can be disabled. For this, it is sufficient to set the relevant input to zero.
Position size can be managed in two manners: Trading with a constant lot size (parameter "
Lots
" is above zero, and parameter "
Risk
" is zero), or dynamically calculating the lot size in risk percents per trade (parameter "
Risk
" is above zero, and parameter "
Lots
" is zero).
Inputs
Increase positions
Increase timeframe
Max positions
Reverse signals
Close hour ("-1" --> off)
//--- Indicator input
MA PERIOD_D1: averaging period
MA PERIOD_D1: horizontal shift
MA PERIOD_D1: smoothing type
MA PERIOD_D1: type of price or handle
//--- Trade managing
Stop Loss (in pips)
Take Profit (in pips)
Trailing Stop (in pips)
Trailing Step (in pips)
Lots (or "Lots">0 and "Risk"==0 or "Lots"==0 and "Risk">0)
Risk (or "Lots">0 and "Risk"==0 or "Lots"==0 and "Risk">0)
magic number