SlideShare a Scribd company logo
1 of 4
Download to read offline
MT4 EA Programming
If you have a profitable manual trading strategy, you can completely automate it. This will give you several advantages:
1. You will be able to test your strategy on historical data in fully automated mode, using MT4 tester.
Backtest will help you to find all weaknesses and improve strategy. For example if your strategy has loses on
certain days or hours, you can add day filters or time filters. Or if your strategy has not often repeat losing
trades (losses series), you can increase the size of the lot after each losing trades. Etc.
Possibility to define work days of the week
โ€ข MondayOn = true;
โ€ข TuesdayOn = true;
โ€ข WednesdayOn = true;
โ€ข ThursdayOn = true;
โ€ข FridayOn = false;
โ€ข SaturdayOn = false;
โ€ข SundayOn = false;
Trade time to open order from hh:mm to hh:mm
example: from 6:30 to 22:45 by ServerTime
Close open orders at CloseTime (CloseTime is external param)
a) only profitable
b) only losing
c) all
2. You can try other different features, which can improve your trading strategy
Dynamic lot calculation
a) as percent of Account Balance
b) as percent of Accout Equity
c) as percent of Account FreeMargin. So on increase of Account Balance/Equity/FreeMargin the lot size will growth too
Dynamic lot calculation with RiskPcnt option
You will enter an initial risk % of equity you can lose if StopLoss is triggered.
So if StopLoss = 50 pips, AccoutnEquity = 5000 and RiskPcnt = 10.0
then you will pay only 500$ on StopLoss.
Dynamic lot calculation by Martingale theory.
New lot will be multiplied by 2.0 (LotFactor = 2.0 is external parameter)
if previous lot was closed in loss.MaxLot of series will be second external parameter.
Make StopLoss, TakeProfit, TrailingStop hidden to brokers
In this case EA will manage Hidden (or invisible) stops
Standard (or visible) stops will be available too
Breakeven function
Moves StopLoss to breakeven level when trade is in profit by X pips
Standard Trailing: simple trailing, stoploss follows by the market
High/Low Trailing: trailing by bars High/Low
ATR Trailing: trailing by ATR indicator
Fractals Trailing: trailing by Fractals
PSAR Trailing: trailing by Parabolic Stop And Reverse indicator
ProfitPcnt Trailing: trailing with lock of some pcnt of max. profit reached
TLine Trailing: trailing by some TrendLine added manual on the chart
MA Trailing: trailing by MovingAverage indicator
3. You will be able to optimize your strategy (parameters of indicators, stop loss, take profit) on historical data
in fully automated mode, using MT4 optimizer. You also can re-optimize your strategy time to time.
4. You also will be able to use all the benefits of automated trading, which are very difficult to implement
trading manually. For example you can improved Order Entry /Exit Speed. Since computers respond
immediately to changing market conditions, automated systems are able to generate orders as soon as
trade criteria are met. Getting in or out of a trade a few seconds earlier can make a big difference in the
trade's outcome. As soon as a position is entered, all other orders are automatically generated, including
protective stop losses and profit targets.
5. Automated trading systems minimize emotions throughout the trading process. By keeping emotions in
check, traders typically have an easier time sticking to the plan. Since trade orders are executed
automatically once the trade rules have been met, traders will not be able to hesitate or question the trade.
6. Automated trading systems permit the user to trade multiple accounts or various strategies at one time.
This has the potential to spread risk over various instruments while creating a hedge against losing positions.
Almost any manual trading system can be the automated, but you need to formalize trade rules, ie write an algorithm.
The following description will help you formalize your strategy
1.Entry point(s)
You should first consider when (rules for open position), what (symbol(s)), and how much (lot size) to buy and sell.
2. Exit point(s)
Next, consider when (rules for close position) do I want to close/hedge/lock the trade?
Wait for Stop Loss and Take Profit? Use trailing stop?
3. Number of open trades
Think about how many trades you want open at the same time.
4. Time frame
If the time frame is not specified, the time frame of the chart to which the Expert Advisor is attached will be used.
5. Repeating
As soon as a trade is open, consider whether or not the action should be repeated. Generally the answer is "no".
However, it is very important to keep in mind that the majority of traders only show the entering conditions, which
the Expert Advisor fulfils at every tick.
6. Next trade
If at least one trade is placed, please point out when a new trade can be opened: (e.g. when this one is closed; when
the floating profit of this one is at least X pips; when the conditions on signs are fulfilled once again; even on the next
bar, etc.).
7. Indicators.
Unless otherwise pointed out, all the values of signs will be handled the present bar. All the crosses will be compared
with the previous bar or the one before it.
8. Conditions.
All trading conditions must be quantitatively clear and sensible. If the conditions are impractical, they may be difficult
to program or the outcomes your program creates will be arbitrary.
9. Variety of currency pairs.
Consider how many symbols (currencies, CFDs, etc.) you wish to make use of at the same time. It is typically advised
to trade on a couple of symbols. Note - unless specified, an Expert Advisor will trade only on the currency pair of the
plan to which it is connected. If you prefer trading on several currency pairs or MT4 symbols, the following solutions
are available:.
a) Attach the Expert Advisor to several plans of different currency pairs;.
b) Program the Expert Advisor so that it deals with several currency pairs. In this case, you will not be able to optimize
and backtest your strategy.
10. Back testing and optimization. We can help you to test and optimize your expert advisor.
BJF Trading Group inc. offer MQL4, MQL5, JForex, FIX API programming
service for individual traders and brokerage companies.
Our company has developed:
โ€ข about 3000 expert advisors for MT4/MT5,
โ€ข most professional trade copiers: CopyTool and PowerTradeCopier
โ€ข most popular expert advisors: Stomper, TFOT
โ€ข arbitrage software
โ€ข DDE Tool
โ€ข Unique Elliott Indicator for MT4
โ€ข Unique Wolfe wave Indicator for MT4
โ€ข Divergence indicators Generation 3
โ€ข Social networks, PAMM, MAM, portals for brokerage companies
Will provide you with โ€œcleanโ€ mql4, MQL5 or JForex code and the basic logic of the robot will be divided into
functions. Our professional robots never lose control and easily restore its last state after MT4 restarts. We are not
afraid of developing complex and integrated forex robots and find it interesting. We can suggest new ideas or see the
obvious errors in your description.
Please, send coding requests via e-mail: coding@iticsoftware.com

More Related Content

More from Boris Fesenko

Roadmap for forex brokers
Roadmap for forex brokersRoadmap for forex brokers
Roadmap for forex brokersBoris Fesenko
ย 
Elliott Waves Strategies
Elliott Waves StrategiesElliott Waves Strategies
Elliott Waves StrategiesBoris Fesenko
ย 
Power tradecopier ebook
Power tradecopier ebookPower tradecopier ebook
Power tradecopier ebookBoris Fesenko
ย 
Forex robottfot 9 multi currencies
Forex robottfot 9 multi currenciesForex robottfot 9 multi currencies
Forex robottfot 9 multi currenciesBoris Fesenko
ย 
FOREX ROBOT TFOT 9.0 MultiCurrencies
FOREX ROBOT TFOT 9.0 MultiCurrenciesFOREX ROBOT TFOT 9.0 MultiCurrencies
FOREX ROBOT TFOT 9.0 MultiCurrenciesBoris Fesenko
ย 
Forex Trading
Forex TradingForex Trading
Forex TradingBoris Fesenko
ย 

More from Boris Fesenko (6)

Roadmap for forex brokers
Roadmap for forex brokersRoadmap for forex brokers
Roadmap for forex brokers
ย 
Elliott Waves Strategies
Elliott Waves StrategiesElliott Waves Strategies
Elliott Waves Strategies
ย 
Power tradecopier ebook
Power tradecopier ebookPower tradecopier ebook
Power tradecopier ebook
ย 
Forex robottfot 9 multi currencies
Forex robottfot 9 multi currenciesForex robottfot 9 multi currencies
Forex robottfot 9 multi currencies
ย 
FOREX ROBOT TFOT 9.0 MultiCurrencies
FOREX ROBOT TFOT 9.0 MultiCurrenciesFOREX ROBOT TFOT 9.0 MultiCurrencies
FOREX ROBOT TFOT 9.0 MultiCurrencies
ย 
Forex Trading
Forex TradingForex Trading
Forex Trading
ย 

Recently uploaded

Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...
Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...
Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...priyasharma62062
ย 
cost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxcost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxazadalisthp2020i
ย 
VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...
VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...
VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...priyasharma62062
ย 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Availabledollysharma2066
ย 
VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Strategic Resources May 2024 Corporate Presentation
Strategic Resources May 2024 Corporate PresentationStrategic Resources May 2024 Corporate Presentation
Strategic Resources May 2024 Corporate PresentationAdnet Communications
ย 
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaiVasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaipriyasharma62062
ย 
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Pension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfPension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfHenry Tapper
ย 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfMichael Silva
ย 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...priyasharma62062
ย 
Cybersecurity Threats in Financial Services Protection.pptx
Cybersecurity Threats in  Financial Services Protection.pptxCybersecurity Threats in  Financial Services Protection.pptx
Cybersecurity Threats in Financial Services Protection.pptxLumiverse Solutions Pvt Ltd
ย 
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...roshnidevijkn ( Why You Choose Us? ) Escorts
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men ๐Ÿ”Malda๐Ÿ” Escorts Ser...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men  ๐Ÿ”Malda๐Ÿ”   Escorts Ser...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men  ๐Ÿ”Malda๐Ÿ”   Escorts Ser...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men ๐Ÿ”Malda๐Ÿ” Escorts Ser...amitlee9823
ย 
7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator Options7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator OptionsVince Stanzione
ย 
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...roshnidevijkn ( Why You Choose Us? ) Escorts
ย 

Recently uploaded (20)

Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...
Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...
Kharghar Blowjob Housewife Call Girls NUmber-9833754194-CBD Belapur Internati...
ย 
cost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxcost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptx
ย 
VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...
VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...
VIP Call Girl in Mira Road ๐Ÿ’ง 9920725232 ( Call Me ) Get A New Crush Everyday ...
ย 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
ย 
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
ย 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
ย 
VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Taloja ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
ย 
Strategic Resources May 2024 Corporate Presentation
Strategic Resources May 2024 Corporate PresentationStrategic Resources May 2024 Corporate Presentation
Strategic Resources May 2024 Corporate Presentation
ย 
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaiVasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
ย 
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...
ย 
Pension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfPension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdf
ย 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdf
ย 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
ย 
Cybersecurity Threats in Financial Services Protection.pptx
Cybersecurity Threats in  Financial Services Protection.pptxCybersecurity Threats in  Financial Services Protection.pptx
Cybersecurity Threats in Financial Services Protection.pptx
ย 
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
ย 
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
ย 
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men ๐Ÿ”Malda๐Ÿ” Escorts Ser...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men  ๐Ÿ”Malda๐Ÿ”   Escorts Ser...โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men  ๐Ÿ”Malda๐Ÿ”   Escorts Ser...
โžฅ๐Ÿ” 7737669865 ๐Ÿ”โ–ป Malda Call-girls in Women Seeking Men ๐Ÿ”Malda๐Ÿ” Escorts Ser...
ย 
7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator Options7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator Options
ย 
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts...
ย 
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
ย 

Expert advisors programming

  • 1. MT4 EA Programming If you have a profitable manual trading strategy, you can completely automate it. This will give you several advantages: 1. You will be able to test your strategy on historical data in fully automated mode, using MT4 tester. Backtest will help you to find all weaknesses and improve strategy. For example if your strategy has loses on certain days or hours, you can add day filters or time filters. Or if your strategy has not often repeat losing trades (losses series), you can increase the size of the lot after each losing trades. Etc. Possibility to define work days of the week โ€ข MondayOn = true; โ€ข TuesdayOn = true; โ€ข WednesdayOn = true; โ€ข ThursdayOn = true; โ€ข FridayOn = false; โ€ข SaturdayOn = false; โ€ข SundayOn = false; Trade time to open order from hh:mm to hh:mm example: from 6:30 to 22:45 by ServerTime Close open orders at CloseTime (CloseTime is external param) a) only profitable b) only losing c) all 2. You can try other different features, which can improve your trading strategy Dynamic lot calculation a) as percent of Account Balance b) as percent of Accout Equity c) as percent of Account FreeMargin. So on increase of Account Balance/Equity/FreeMargin the lot size will growth too Dynamic lot calculation with RiskPcnt option You will enter an initial risk % of equity you can lose if StopLoss is triggered. So if StopLoss = 50 pips, AccoutnEquity = 5000 and RiskPcnt = 10.0 then you will pay only 500$ on StopLoss. Dynamic lot calculation by Martingale theory. New lot will be multiplied by 2.0 (LotFactor = 2.0 is external parameter)
  • 2. if previous lot was closed in loss.MaxLot of series will be second external parameter. Make StopLoss, TakeProfit, TrailingStop hidden to brokers In this case EA will manage Hidden (or invisible) stops Standard (or visible) stops will be available too Breakeven function Moves StopLoss to breakeven level when trade is in profit by X pips Standard Trailing: simple trailing, stoploss follows by the market High/Low Trailing: trailing by bars High/Low ATR Trailing: trailing by ATR indicator Fractals Trailing: trailing by Fractals PSAR Trailing: trailing by Parabolic Stop And Reverse indicator ProfitPcnt Trailing: trailing with lock of some pcnt of max. profit reached TLine Trailing: trailing by some TrendLine added manual on the chart MA Trailing: trailing by MovingAverage indicator 3. You will be able to optimize your strategy (parameters of indicators, stop loss, take profit) on historical data in fully automated mode, using MT4 optimizer. You also can re-optimize your strategy time to time. 4. You also will be able to use all the benefits of automated trading, which are very difficult to implement trading manually. For example you can improved Order Entry /Exit Speed. Since computers respond immediately to changing market conditions, automated systems are able to generate orders as soon as trade criteria are met. Getting in or out of a trade a few seconds earlier can make a big difference in the trade's outcome. As soon as a position is entered, all other orders are automatically generated, including protective stop losses and profit targets. 5. Automated trading systems minimize emotions throughout the trading process. By keeping emotions in check, traders typically have an easier time sticking to the plan. Since trade orders are executed automatically once the trade rules have been met, traders will not be able to hesitate or question the trade. 6. Automated trading systems permit the user to trade multiple accounts or various strategies at one time. This has the potential to spread risk over various instruments while creating a hedge against losing positions. Almost any manual trading system can be the automated, but you need to formalize trade rules, ie write an algorithm. The following description will help you formalize your strategy
  • 3. 1.Entry point(s) You should first consider when (rules for open position), what (symbol(s)), and how much (lot size) to buy and sell. 2. Exit point(s) Next, consider when (rules for close position) do I want to close/hedge/lock the trade? Wait for Stop Loss and Take Profit? Use trailing stop? 3. Number of open trades Think about how many trades you want open at the same time. 4. Time frame If the time frame is not specified, the time frame of the chart to which the Expert Advisor is attached will be used. 5. Repeating As soon as a trade is open, consider whether or not the action should be repeated. Generally the answer is "no". However, it is very important to keep in mind that the majority of traders only show the entering conditions, which the Expert Advisor fulfils at every tick. 6. Next trade If at least one trade is placed, please point out when a new trade can be opened: (e.g. when this one is closed; when the floating profit of this one is at least X pips; when the conditions on signs are fulfilled once again; even on the next bar, etc.). 7. Indicators. Unless otherwise pointed out, all the values of signs will be handled the present bar. All the crosses will be compared with the previous bar or the one before it. 8. Conditions. All trading conditions must be quantitatively clear and sensible. If the conditions are impractical, they may be difficult to program or the outcomes your program creates will be arbitrary. 9. Variety of currency pairs. Consider how many symbols (currencies, CFDs, etc.) you wish to make use of at the same time. It is typically advised to trade on a couple of symbols. Note - unless specified, an Expert Advisor will trade only on the currency pair of the plan to which it is connected. If you prefer trading on several currency pairs or MT4 symbols, the following solutions are available:. a) Attach the Expert Advisor to several plans of different currency pairs;. b) Program the Expert Advisor so that it deals with several currency pairs. In this case, you will not be able to optimize and backtest your strategy. 10. Back testing and optimization. We can help you to test and optimize your expert advisor. BJF Trading Group inc. offer MQL4, MQL5, JForex, FIX API programming service for individual traders and brokerage companies. Our company has developed: โ€ข about 3000 expert advisors for MT4/MT5, โ€ข most professional trade copiers: CopyTool and PowerTradeCopier โ€ข most popular expert advisors: Stomper, TFOT โ€ข arbitrage software โ€ข DDE Tool โ€ข Unique Elliott Indicator for MT4
  • 4. โ€ข Unique Wolfe wave Indicator for MT4 โ€ข Divergence indicators Generation 3 โ€ข Social networks, PAMM, MAM, portals for brokerage companies Will provide you with โ€œcleanโ€ mql4, MQL5 or JForex code and the basic logic of the robot will be divided into functions. Our professional robots never lose control and easily restore its last state after MT4 restarts. We are not afraid of developing complex and integrated forex robots and find it interesting. We can suggest new ideas or see the obvious errors in your description. Please, send coding requests via e-mail: coding@iticsoftware.com