auto pending and manage orders by rsi

auto pending and manage orders by rsi
Download ALL MT4 experts (879)
YouTube Video Thumbnail



Similar MetaTrader Tools

auto pending and manage orders by rsi

Info

The auto pending and manage orders by rsi is a Expert Advisor for MetaTrader 4 that auto pending orders by rsi;lower risk at weekend and restore position the next week;mail some useful information. recommendations:1.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use auto pending and manage orders by rsi

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.

What this tool does

auto pending orders by rsi;lower risk at weekend and restore position the next week;mail some useful information.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.

Description & Settings

Related: e-news-lucky$ - automated news trading expert advisor - another powerful expert for MetaTrader 4 traders.



auto pending orders by

Also recommended: e-moving in wl2: automated stop loss adjustment - similar expert with strong performance on MetaTrader 4.

rsi
;

lower risk at weekend and restore position the next week;

mail some useful information.

recommendations:

1. set testmode true for backtest, false for real mode:

extern

bool
testmode =
false
;
//true:for backtest

2. if in testmode,please set only one of the tradesymbol array,for example:

extern

string
tradesymbol1 =
"eurusdm_802_2802_1602_200_860"
;
extern

string
tradesymbol2 =
""
;
extern

string
tradesymbol3 =
""
;
extern

string
tradesymbol4 =
""
;
extern

string
tradesymbol5 =
""
;
extern

string
tradesymbol6 =
""
;

if in real account mode, set
testmode false,and config tradesymbol like
(use "," to separate symbols,use "_" to separate a symbol's parameters):

extern

string
tradesymbol1 =
"eurusdm_802_2802_1602_200_860,usdchfm_506_2606_1506_120_600"
;
extern

string
tradesymbol2 =
"usdjpym_460_2802_1302_100_320"
;
extern

string
tradesymbol3 =
""
;
extern

string
tradesymbol4 =
""
;
extern

string
tradesymbol5 =
""
;
extern

string
tradesymbol6 =
""
;

eurusdm_802_2802_1602_200_860 means:

symbol: 
eurusdm

(m means my exness mini account,possibly you should modify to your own symbol)

pendingpips:
802(pending gap)

weekendpluspips:
2802(widen plus gap at weekend)

cancelpips:
1602(when the gap exceed this pips,close the pending order)

trailingsl:
200(trailing stop loss)

takeprofit:
860(virtual take profit)

3. if you want to delete pending orders at weekend, set weekenddelete=true, else if you want to widen pending gap and restore it the next week, please set weekenddelete=false.

extern

bool
weekenddelete =
false
;
//true:delete false:modify

4. weekend mode begin and end time (5 means friday,7 means sunday (the time is gmt,maybe you should adjust with your local time,the default parameters run well in beijing time):

//trading end time in friday

extern

int
weekendbeginday =
5
;
extern

string
weekendbegintime =
"20:30"
;
//friday 20:30

extern

int
weekendendday =
7
;
extern

string
weekendendtime =
"23:30"
;
//sunday 20:30

5. all symbols
(maybe not trade symbol)
you want to mail the rsi value prompt (>70 or <30) and periodically report to you.obviously,
you should modify the audjpym if your account is not mini one.

string
symbolsstr1 =
"audjpym,audcadm,audchfm,audnzdm,audsgdm,audusdm,cadchfm,cadhkdm,cadjpym,chfjpym,chfplnm,chfsgdm,euraudm,eurbrlm,eurcadm,eurchfm,eurdkkm,eurgbpm,eurhkdm,eurhufm,eurjpym,eurmxnm"
;
string
symbolsstr2 =
"gbpchfm,gbpjpym,gbpnzdm,gbpusdm,hkdjpym,hufjpym,mxnjpym,nzdcadm,nzdchfm,nzdjpym,nzdsgdm,nzdusdm,sgdjpym,usdbrlm,usdcadm,usdchfm,usdczkm,usddkkm,usdhkdm,usdhufm,usdjpym,usdmxnm"
;
string
symbolsstr3 =
"eurnokm,eurnzdm,eurplnm,eurrubm,eursekm,eursgdm,eurtrym,eurusdm,eurzarm,gbpaudm,gbpcadm,usdnokm,usdplnm,usdronm,usdrubm,usdsekm,usdsgdm,usdtrym,usdzarm,xagusdm,xauusdm,zarjpym"
;
long
sendmininterval =
3600
;

 6. rsi configuration:

//rsi

extern

int
rsitimeframe =
period_h4
;
extern

int
rsiperiod  =
14
;
extern

enum_applied_price
rsiappliedprice =
price_close
;
extern

int
rsishift =
0
;
extern

double
rsiupperline =
70
;
extern

double
rsilowerline =
30
;

7. use the magicweekendexpiration to identify the weekend mode,if anyone has better way please kindly tell me

int
magicweekendexpiration =
1577836800
;
//2020-1-1 0:0:0 intvalue:1577836800

8. others:

if modify to weekend mode failed, the ea will send a mail and try max_modify_try_time(100 default) times till success.

no stop loss applied, and if little loss order (min buy or max sell order) of one symbol exceed pendingpips, the ea will pend another order of the same symbol.

in test mode, if the equity less than 95% of balance, ea will write the status to warning files.

if
(((accountequity()/accountbalance()) <
0.95
))         {             writetowarningfile();         }

if you have found any bugs or have suggestions, please kindly let me know.

You may also like: e-trailing: automated trailing stop for all positions - excellent alternative for expert users on MetaTrader 4.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property version   "1.00"
#property strict
#define maxsymbolcnt 100
#define smart_by_ind_magic 20140812
#define invalid_pips -14567894
#define invalid_symbols "invalid"
#define invalid_ticket -1
#define invalid_max_price -123456

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.