Expert Advisor Universal EA Full Function

Buy Universal EA Full Function Expert Advisor in the store selling algo trading systems

Universal Multicurrency Trading System

Mul­ti­c­ur­ren­cy trad­ing sys­tem based on stan­dard indi­ca­tors. Up to 3 sig­nals of 12 stan­dard indi­ca­tors can be applied in this Expert Advi­sor. All indi­ca­tors have con­fig­urable exter­nal parameters.

Dear users, you can oder the source code of this Expert Advi­sor by writ­ing a pri­vate mes­sage to the author.

Main Advantages

  • Autolot (cal­cu­la­tion of vol­ume based on the cur­rent bal­ance), mon­ey management;
  • Work by time (lim­i­ta­tion of trade time for the Expert Advisor);
  • Trail­ing Stop (stan­dard one with the “Only prof­itable” algorithm);
  • Mar­ket­Watch ECN (work on the ECN NDD groups’ accounts);
  • Func­tions of error pro­cess­ing for real accounts;
  • Block of clos­ing by total prof­it and loss with the abil­i­ty to dis­able all the Expert Advi­sors on the account;
  • Break even (mov­ing Stop Loss­es to the zero level);
  • Mar­tin­gale (increas­ing the fol­low­ing lot after an unprof­itable position);
  • Work by the indi­ca­tor sig­nals only (Sig­nal for open­ing, Sig­nal for clos­ing an oppo­site order and opening);
  • Clos­ing oppo­site orders when sig­nal changes;
  • The “REVERSE” func­tion that revers­es the sig­nals of your strategies.

Indicators and Signals

Mov­ing Aver­age (MA) (Sig­nal 1)

The sig­nal is cal­cu­lat­ed using rel­a­tive posi­tion of two Mov­ing Aver­ages, one of them should have a small­er peri­od (fast МА), while the oth­er — a greater one (slow МА). Their para­me­ters can be spec­i­fied in the fol­low­ing variables:

BUY sig­nal appears when the fast МА is locat­ed high­er than the slow one, while SELL sig­nal appears, when the slow MA is high­er than the fast MA. “No sig­nal” state is not used.

Mov­ing Aver­age Convergence/Divergence (MACD) (Sig­nal 2)

Four vari­ables are used:

The sig­nals are also sim­ple: BUY — the main line is high­er than the sig­nal one, SELL — the main line is below the sig­nal one. “No sig­nal” is not used.

Sto­chas­tic Oscil­la­tor (Sig­nal 3)

Oscil­la­tor con­sists of two lines — main and sig­nal ones allow­ing to trade accord­ing to the lines cross­ing sig­nals. BUY sig­nal — the main line is above the sig­nal one, SELL — the main line is below the sig­nal one.

The RSI indi­ca­tor (Sig­nal 4)

The indi­ca­tor is sim­i­lar to CCI and DeMark­er. Exit from the over­bought (RSI­High­Lev­el) and the over­sold (RSILowLev­el) zones are used as an appro­pri­ate sig­nal. There­fore, rare BUY sig­nals cor­re­spond to cross­ing the upper lev­el down­wards, while SELL sig­nals cor­re­spond to cross­ing the low­er lev­el upwards. Main state is “no sig­nal”. The indi­ca­tor peri­od can be set in the RSIPeri­od para­me­ter, while cal­cu­la­tion price — in the RSIPrice parameter.

Com­mod­i­ty Chan­nel Index (CCI) (Sig­nal 5)

All three sig­nals are also used, but the main state is still “no sig­nal”. Rare trad­ing sig­nals cor­re­spond to cross­ing the upper lev­el down­wards (BUY) and cross­ing the low­er lev­el upwards (SELL). Upper and low­er lev­els are deter­mined by the val­ue of the CCI­High­Lev­el and the CCILowLev­el exter­nal para­me­ters. Indi­ca­tor cal­cu­la­tion peri­od and price are deter­mined by the CCIPeri­od and the CCIPrice values.

Williams Per­cent Range (WPR) (Sig­nal 6)

The indi­ca­tor is sim­i­lar to RSI, CCI and DeMark­er. BUY sig­nal — cross­ing the over­bought lev­el (WPRHigh­Lev­el) down­wards and SELL — cross­ing the over­sold lev­el (WPR­LowLev­el) upwards. All oth­er cas­es refer to “no sig­nal” state. Only the indi­ca­tor peri­od para­me­ter (WPRPe­ri­od) can be changed outside.

Bollinger Bands (Sig­nal 7)

All three types of sig­nals are present: BUY — pre­vi­ous can­dle close price is below the low­er line, SELL — pre­vi­ous can­dle close price is above the upper line, “no sig­nal” — can­dle close price between the lines.

The Envelopes indi­ca­tor (Sig­nal 8)

Since the indi­ca­tor rep­re­sents a chan­nel, the sig­nals are sim­i­lar to the ones when work­ing in the chan­nel: BUY — can­dle close price is below the low­er line, SELL — can­dle close price is above the upper line while “no sig­nal” — close price between the lines.

Alli­ga­tor (Sig­nal 9)

Also, the same aver­ag­ing method (Alli­ga­torMethod) and cal­cu­la­tion price (Alli­ga­tor­Price) are used for all lines. A dis­tinc­tive fea­ture of the indi­ca­tor is that all lines have a pos­i­tive shift to the right. This allows read­ing the indi­ca­tor val­ues on the cur­rent bar, as they are com­plete already and not sub­ject to change. BUY sig­nal — the lips line is high­er than the teeth line, while the lat­ter is high­er than the jaw line, SELL sig­nal — the lips line is below the teeth line, while the lat­ter is below the jaw line. There is no sig­nal in all oth­er cases.

Mov­ing Aver­age of Oscil­la­tor (OsMA) (Sig­nal 10)

The sig­nals are cal­cu­lat­ed a bit dif­fer­ent­ly: BUY — the his­togram val­ue is above zero, SELL — the his­togram val­ue is below zero. “No sig­nal” state is observed in those rare cas­es when OsMA val­ue is equal to zero.

Awe­some Oscil­la­tor (AO) (Sig­nal 11)

The oscil­la­tor has no para­me­ters avail­able to users. One of the prin­ci­ples of work­ing with the indi­ca­tor is look­ing for “saucers”. Bill Williams’ “saucer” con­sists of two increas­ing bar val­ues in pos­i­tive area hav­ing a bar with less­er val­ue between them. There­fore, “invert­ed saucer” con­sists of two decreas­ing bar val­ues in neg­a­tive area hav­ing a bar with larg­er val­ue between them. There­fore, three last com­plet­ed can­dles (four can­dles in the code) are need­ed to detect a “saucer”. BUY sig­nal — “saucer”, SELL sig­nal — “invert­ed saucer”, “no sig­nal” — all oth­er cases.

Parameters

  • Signal=“Signal options”;
  • shift=0;
  • IndSigToTrade=2;
  • IndSigToTrade2=0;
  • IndSigToTrade3=0;
  • ReverseSignal=false;
  • ONlyOnePosbySignal=true;
  • ClosePosifChange=true;
  • lotsset=“options”;
  • lot=0.1;
  • DynamicLot=false;
  • LotBalancePcnt=20;
  • MaxLot=999;
  • Martin=1;
  • StopLoss=90;
  • TakeProfit=60;
  • timetrade_=“Times options”;
  • OpenHour=0;
  • OpenMinute=0;
  • CloseHour=23;
  • CloseMinute=59;
  • Trailing_=“Trailing options”;
  • TrailingStopUSE=false;
  • IfProfTrail=false;
  • TrailingStop=0;
  • TrailingStep=1;
  • MovingInWLUSE_=WithoutLOSS options”;
  • MovingInWLUSE=false;
  • LevelWLoss=0;
  • LevelProfit=0;
  • CloseProfitLoss=“CloseALL when Prof­it or LOSS options”;
  • TypeofClose=1;
  • CloseProfit=false;
  • prifitessss=10;
  • CloseLoss=false;
  • lossss=-10;
  • OFFAllEaAfterClosePROF=false;
  • OFFAllEaAfterCloseLOSS=false;
  • pair=“Symbols options “;
  • PAIR1=“USDCHF”;
  • PAIR2=“EURJPY”;
  • PAIR3=“EURUSD”;
  • PAIR4=“USDJPY”;
  • PAIR5=“USDCAD”;
  • PAIR6=“GBPJPY”;
  • PAIR7=“EURGBP”;
  • PAIR8=””;
  • PAIR9=””;
  • PAIR10=””;
  • PAIR11=””;
  • PAIR12=””.

Description of Parameters

1. Para­me­ter to get a sig­nal bar

shift (0,1,2.….) bar number.

This para­me­ter rep­re­sents the num­ber of a bar from which your indi­ca­tors will take sig­nals. Spec­i­fy the fol­low­ing para­me­ters of sig­nal detec­tion when order­ing an Expert Advisor:

  • Open a deal imme­di­ate­ly after the sig­nal appears;
  • Wait until a sig­nal on the closed bar is formed and open a deal only at open­ing of the fol­low­ing bar.

Some indi­ca­tors have a clear def­i­n­i­tion on what bar a sig­nal is trig­gered due to their algo­rithms. Con­sid­er­ing the accu­ra­cy and cor­rect­ness of exe­cu­tion of an order, a deal should be processed only on the cur­rent bar, i.e. shift=1 para­me­ter. If it is nec­es­sary to open the deal imme­di­ate­ly on the cur­rent bar as the sig­nal appears and the indi­ca­tor allows it, then you should set shift=0.

2. Reverse of strat­e­gy signals

Revers­eS­ig­nal (true — false) Enabled\Disabled.

This para­me­ter rep­re­sents the reverse of sig­nals of your indicator(s).

If your Expert Advi­sor is drawn on a def­i­nite algo­rithm or on def­i­nite sig­nals of the indi­ca­tor, you have a pos­si­bil­i­ty to change BUY\SELL sig­nals with­out repro­gram­ming them.

For exam­ple: ReverseSignal=true.

Your indi­ca­tor gives a sig­nal to BUY, but the Expert will open a SELL deal.

Your indi­ca­tor gives a sig­nal on SELL, but the Expert Advi­sor will open a BUY deal.

3. Mag­ic number

Mag­ic (0.…99999) number.

This para­me­ter rep­re­sents a spe­cial num­ber of the Expert Advi­sor on the chart. If you use a lot of Expert Advi­sors on dif­fer­ent charts you will need to give them unique num­bers to avoid con­fus­ing of deals.

For exam­ple, if you use one Expert Advi­sor with dif­fer­ent set­tings, you should give a unique mag­ic num­ber to each instance of the Expert Advi­sor. Also this para­me­ter should be changed on dif­fer­ent cur­ren­cy pairs to deal with detailed reports, to under­stand what cur­ren­cy pair is used by each Expert Advisor.

4. Stop Loss of the deal

Sto­pLoss (0…) in points.

This para­me­ter rep­re­sents the Stop Loss of each posi­tion. This is the num­ber of loss points for a deal to be closed.

0 — the para­me­ter is dis­abled, the Stop Loss of the deal will be equal to 0.

This para­me­ter should be set to no less than the min­i­mum allowed stop val­ue on your server.

If the para­me­ter is less than the min­i­mum allowed val­ue on the serv­er, the Expert Advi­sor will show the error 130.

5. Take Prof­it of the deal

Take­Prof­it (0…) in points.

This para­me­ter rep­re­sents the Take Prof­it of each posi­tion. This is the num­ber of prof­it points for a deal to be closed by the server.

0 — the para­me­ter is dis­abled, the Take Prof­it of the deal will be equal to 0.

This para­me­ter should be set to no less than the min­i­mum allowed val­ue on your server.

If the para­me­ter is less than the min­i­mum allowed on the serv­er, the Expert Advi­sor will show the error 130.

6. Slip­page of the deal

Slippage(0.…) in points.

This para­me­ter adjusts price slip­page at open­ing of a deal.

On the real mar­ket price moves very fast, so when send­ing the order to the serv­er, the serv­er can respond: prices changed, requotes, etc. In order not to send a lot of orders to the serv­er, you can set the allowed slip­page for open­ing deals.

For exam­ple: Slippage=10.

When send­ing an order for open­ing, the price was 1.1234. But price changed to 1.1238. In this case the deal is opened at price 1.1238 with­out requotes! But if Slip­page were equal 0, in this exam­ple the deal would not be be opened, the serv­er would send the Requote error (New prices).

7. Clos­ing deals by an oppo­site signal

Close­PosifChange (true — false).

This para­me­ter adjusts the pos­si­bil­i­ty to close an oppo­site deal when open­ing the new one. If your indi­ca­tor uses BUYSELLBUYSELL sig­nals and this para­me­ter is enabled, the Expert Advi­sor will close the oppo­site deal before open­ing the new one.

8. Num­ber of posi­tions for a signal

ONly­OnePos­bySig­nal (true — false) Enabled\Disabled.

This para­me­ter is used to choose whether a sin­gle or mul­ti­ple posi­tions should be opened.

If this para­me­ter is enabled, only one posi­tions is opened at each sig­nal on 1 bar.

For exam­ple, your strat­e­gy gives con­se­quent BUY sig­nals on each new bar, and the func­tion ONly­OnePos­bySig­nal= true, then a BUY deal will be opened on each bar if the sig­nal appears.

If the func­tion ONly­OnePos­bySig­nal = false, then the Expert Advi­sor can open only one BUY deal and one SELL deal and wait until they are closed.

9. Fixed lot

Lots (0.01 .….….) — set­ting fixed lot for all deals.

This para­me­ter spec­i­fies the num­ber of lots for open­ing deals. The lot is fixed and applied to all deals.

You should ask the min­i­mum allowed lot for open­ing a deal from your broker.

10. Dynam­ic lot

Dynam­i­cLot (true — false) Lot­Bal­an­cePc­nt (in per­cent­age from free margin).

These para­me­ters adjust auto­mat­ic cal­cu­la­tion of lot and choos­ing lot depend­ing on free margin.

The detailed descrip­tion of this para­me­ter is giv­en in the Autolot arti­cle (lot cal­cu­la­tion using the cur­rent balance).

11. Mar­tin­gale

Mar­tin (1.…) — Mar­tin­gale ratio.

This para­me­ter allows you to use the Mar­tin­gale prin­ci­ple for your strat­e­gy, which implies that the vol­ume of a deal fol­low­ing an unprof­itable deal will be cal­cu­lat­ed as Lot * Mar­tin ratio.

If the para­me­ter is equal to 1, then Mar­tin­gale is not used.

For exam­ple: Lots = 0.01 Mar­tin =2:

  1. BUY deal (0.01) closed with loss or by Stop Loss
  2. the next deal will be opened with lot 0.01 * 2 = 0.02.
  3. if the pre­vi­ous deal is closed by Stop Loss, then the fol­low­ing deal will be opened with lot 0.04.

If the pre­vi­ous deal is closed with prof­it or by Take Prof­it, then the fol­low­ing deal will be opened with the ini­tial lot 0.0.

12. Work­ing time of the Expert Advisor

Open­Hour (in hours), Open­Minute (in min­utes), Close­Hour (in hours), CloseMinute (in minutes).

These para­me­ters adjust the Expert Advi­sor work­ing time range, and this time applies to open­ing new posi­tions only. Trail­ing stop and break even will work inde­pen­dent­ly from the range.

For exam­ple, you want the Expert Advi­sor to trade only from 2 p.m. to 6.35 p.m. Then the para­me­ters will look like:

Open­Hour= 14, OpenMinute=0, CloseHour=18, CloseMinute =35п.

Deals will be opened only from 2 p.m. to 6.35 p.m. All the rest of time the Expert Advi­sor will ignore your strat­e­gy signals.

13. Clas­sic TrailingStop

Trail­ingSto­pUSE (true — false), IfProfTrail(true — false), Trail­ingStop (in points), Trail­ing­Step (in points).

These para­me­ters enable\disable auto­mat­ic track­ing of posi­tions by mov­ing the Stop Loss in + zone.

Trail­ingSto­pUSE — enables\disables trail­ing stop function.

IfProf­Trail — if true, the Expert Advi­sor starts mod­i­fi­ca­tion only when the posi­tions is in the break even. If false, trail­ing stop starts work­ing right after open­ing a posi­tion and pulls it after the price.

Trail­ingStop — dis­tance in points from the cur­rent price to the esti­mat­ed Stop Loss. This para­me­ter can be less than the min­i­mum allowed para­me­ter on your server.

Trail­ing­Step — Stop Loss mod­i­fi­ca­tion step.

For exam­ple, Stop Loss will be mod­i­fied each Trail­ing­Step points on the dis­tance of Trail­ingStop points from the cur­rent price.

14. Func­tion for clos­ing by total profit\loss

These para­me­ters adjust the pos­si­bil­i­ty to close deal(s) by the giv­en instru­ment and mag­ic reach­ing reach­ing one of the parameters:

  • TypeofClose=1 — clos­ing by prof­it: 1 — Dol­lar, 2 — Points, 3 — %Equi­ty, 4 — %Bal­ance;
  • CloseProfit=false — close, if +;
  • prifitessss=10 — num­ber of units (depend­ing on Type­of­Close) for clos­ing profit;
  • CloseLoss=false — close if lossss= ‑10 — num­ber of units (depend­ing on Type­of­Close) for clos­ing loss;
  • OFFAllEaAfterClosePROF=false — dis­able all the Expert Advi­sors and scripts after clos­ing profit;
  • OFFAllEaAfterCloseLOSS=false — dis­able all the Expert Advi­sors and scripts after clos­ing loss.

For exam­ple:

  • If you would like to close sev­er­al deals BUY\SELL at prof­it on the account in 10 $:
    TypeofClose=1, CloseProfit=true, prifitessss=10.
  • If you would like to close sev­er­al deals BUY\SELL at loss on the account in 200 points:
    TypeofClose=2, CloseLoss=true, lossss=200.
  • If you would like to close sev­er­al deals BUY\SELL at loss on the account in 5 % from the deposit and also close sev­er­al deals BUY\SELL at prof­it on the account in 10 % from the deposit:
    TypeofClose=4, CloseLoss=true, lossss=5, CloseProfit=true, prifitessss=10.

In this case you can dis­able Expert Advi­sors after clos­ing using the OFFAl­l­EaAfter­Close­PROF and\or OFFAl­l­EaAfter­CloseLOSS func­tion. Then the Expert Advi­sor will dis­able all the Expert Advi­sors after closing.

15. Mov­ing Stop Loss to break even

Moving­In­WLUSE (true — false) Lev­el­WLoss (in points) Lev­el­Prof­it (in points).

These para­me­ters adjust the pos­si­bil­i­ty to mod­i­fy deals mov­ing the Stop Loss to break even at the ear­li­est opportunity.

For exam­ple:

  • You would like to set Stop Loss in the break even, when the deal will score +10 points of profit:
    Moving­In­WLUSE = true, LevelWLoss=0, LevelProfit=10.
  • You want to set Stop Loss in +5 points, when the deal will score +20 points of profit:
    Moving­In­WLUSE = true, LevelWLoss=5, LevelProfit=20.

There­fore the dif­fer­ence between Lev­el­Prof­it-Lev­el­WLoss must always be greater or equal to the min­i­mum stop on the server.

Indi­ca­tors parameters:

  • Mov­ing Aver­age parameters: 
    • periodma1=8;
    • periodma2=16;
    • MAmethod=MODE_SMA;
    • MAprice=PRICE_CLOSE;
  • MACD para­me­ters:
    • FastMACD=110;
    • SlowMACD=136;
    • MACDSMA=14;
    • MACDprice=PRICE_LOW;
  • Sto­chas­tic Oscil­la­tor parameters: 
    • SOPeriodK=5;
    • SOPeriodD=3;
    • SOslowing=3;
    • SOmethod=MODE_SMA;
    • SOpricefield=STO_LOWHIGH;
  • RSI para­me­ters:
    • RSIPeriod=14;
    • RSIprice=PRICE_CLOSE;
  • CCI para­me­ters:
    • CCIPeriod=14;
    • CCIprice=PRICE_TYPICAL:
  • WPR para­me­ters:
    • WPRPeriod=14;
  • Bollinger Bands parameters: 
    • BBPeriod=20;
    • BBdeviation=2.0;
    • BBprice=PRICE_CLOSE;
  • Envelopes para­me­ters:
    • ENVPeriod=14;
    • ENVdeviation=0.1;
    • ENVprice=PRICE_CLOSE;
    • ENVmethod=MODE_SMA;
  • Alli­ga­tor parameters: 
    • ALjawperiod=13;
    • ALteethperiod=8;
    • ALlipsperiod=5;
    • ALmethod=MODE_SMMA;
    • ALprice=PRICE_MEDIAN;
  • Ichimoku Kinko Hyo parameters: 
    • IKHtenkansen=9;
    • IKHkijunsen=26;
    • IKHsenkouspanb=52.

Universal EA Full Function 

Relat­ed Posts
Expert Advisor TD EURUSD Slow
This trend-fol­low­ing con­ser­v­a­tive Expert Advi­sor works on EURUSD, M5. It open posi­tion accord­ing to sig­nal of trad­ing sytem in trend direc­tion and clos­es posi­tion accord­ing to sig­nal of trade sys­tem or …
READ MORE
Expert Advisor Zigi
Zigi Expert Advi­sor auto­mat­i­cal­ly opens BUY or SELL posi­tions depend­ing on the sig­nals of three ZigZag indi­ca­tors. The trad­ing vol­ume used for open­ing posi­tions depends on the deposit. It is possible …
READ MORE
Expert Advisor MT5 FF Economic Calendar
The eco­nom­ic cal­en­dar is made in the form of an Expert Advi­sor that down­loads the data from one of the most pop­u­lar Forex sites (forexfactory.com/calendar.php). The data is pre­sent­ed in …
READ MORE
Expert Advisor Brain Boom
The Expert Advi­sor uses a unique sys­tem of mon­ey man­age­ment. It demon­strates excel­lent result start­ing from the year 2000 on Euro, M1. The Expert Advi­sor can work with a small …
READ MORE
Expert Advisor Diesel
This is a semi-scalp­ing Expert Advi­sor designed to trade EURUSD, USDJPY, Esp35Dec14 and NGasJan15 on M1. With these sym­bols, the prod­uct works with the default set­tings. The EA uses tick …
READ MORE
Expert Advisor BotNeyron
Pro­fes­sion­al robot, which imple­ment­ed trad­ing strat­e­gy using neur­al net­works. Used mul­ti-lay­er ful­ly con­nect­ed feed­for­ward net­works MLP (mul­ti­lay­er per­cep­tron). The abil­i­ty to learn is the main fea­ture of the brain. Arti­fi­cial neural …
READ MORE
Expert Advisor MultiMTCopierMT5Source
Fast and high-qual­i­ty trade copi­er for your real/demo account. This Expert Advi­sor is devel­oped for copy­ing trades from the Ðœe­ta­Trad­er 5 ter­mi­nal. Mul­ti-ter­mi­nal Trade Copi­er: The EA will copy all posi­tions without …
READ MORE
Expert Advisor RiskMonitorEA
RiskMon­i­torEA is a trad­ing and ana­lyt­i­cal risk (poten­tial loss size) con­troller. It con­sists of two blocks. The first one is an infor­ma­tion-ana­lyt­i­cal part dis­play­ing data on the poten­tial loss­es of …
READ MORE
Expert Advisor MultiMTCopierMT5Receiver
Fast and high-qual­i­ty trade copi­er for your real/demo account. This Expert Advi­sor is devel­oped for the Ðœe­ta­Trad­er 5 ter­mi­nal to which trades will be copied. Mul­ti-ter­mi­nal Trade Copi­er: The EA will copy …
READ MORE
Expert Advisor ExpertRegresion
ExpertRe­gres­sion is a pro­fes­sion­al trad­ing robot, which imple­ments the clas­sic trad­ing strat­e­gy inside a chan­nel based on regres­sion sig­nal. The sig­nal is formed at a break­through of the upper and …
READ MORE
Expert Advi­sor TD EURUSD Slow 
Expert Advi­sor Zigi 
Expert Advi­sor MT5 FF Eco­nom­ic Calendar 
Expert Advi­sor Brain Boom 
Expert Advi­sor Diesel 
Expert Advi­sor BotNeyron 
Expert Advi­sor MultiMTCopierMT5Source 
Expert Advi­sor RiskMonitorEA 
Expert Advi­sor MultiMTCopierMT5Receiver 
Expert Advi­sor ExpertRegresion 

Leave a Reply

 

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.