#
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Home
Forex Forum
+ Add Script
Metastock
Expert Advisors
Explorations
Indicators
Trading Systems
Metatrader
MQL Experts
MQL Indicators
MQ4 Experts
MQ4 Indicators
MQ4 Scripts
Tradestation
Functions
Indicators
PaintBars
ShowMe
Trading Systems
Amibroker
Commentaries
Explorations
Functions
Indicators
Trading Systems
Contact us
Newsletter
Group: Metatrader MQL Experts
Title: 2EMA System-v03
Description:
2EMA System-v03 EUR 5 minute auto trader
/*[[ Name := 2EMA system-v03 Author := Copyright © 2003, Smoky Link := http://www.company.com/ Notes := 2 ema I use 5 minute on EUR Update on every tick := Yes Positions := Long & Short Enable Alerts := Yes Disable alert once hit := No Lots := 1 Stop Loss := 50 Take Profit := 360 Trailing Stop := 15 ]]*/ Defines: Slip(5), lp(300), risk(40), sp(30), mm(-1), munth(9); vars: direction(0), orders(0), first(0), mode(0), cnt(0), Ilo(0), sym(0), b(0); Comment("Account: ",AccNum," - ",AccName, "\n"," StopLoss ", b, "\n"," Lots ",Ilo); //if month < munth then exit; If Bars
100 then { Ilo = 100; } } else { Ilo = lots; }; if mm > 0 then { Ilo = ceil(Balance*Risk/10000)/10; If Ilo > 1 then { Ilo = ceil(Ilo); } if Ilo < 1 then { Ilo = 1; } If Ilo > 100 then { Ilo = 100; } }; //------------------------------------------------------------------------------------------------ If TotalTrades<1 then { if (iMA(lp,MODE_SMA,3)
iMA(sp,MODE_EMA,0)*0.998) & iSAR(0.02,0.2,6)
O then { SetOrder( OP_SELL, ILO, Bid, Slip, Bid+Stoploss*Point, Bid-TakeProfit*Point, Red); Exit; }; if (iMA(lp,MODE_SMA,3)>iMA(sp,MODE_EMA,3)*1.002 & iMA(lp,MODE_SMA,0)
O[6] & iSAR(0.02,0.2,0)
Ord(sym,VAL_STOPLOSS) & Bid-Ord(sym,Val_OPENPRICE)>(Ord(sym,Val_OPENPRICE)*0.004) & iMA(lp,MODE_SMA,3)
iMA(sp,MODE_EMA,0)*0.9978 then { CloseOrder( Ord(sym,VAL_TICKET), Ord(sym,VAL_LOTS), Bid, Slip, Red); Exit; }; If (Bid-Ord(sym,VAL_OPENPRICE))>(b)then { If Ord(sym,VAL_STOPLOSS)<(Bid-b) then { ModifyOrder( Ord(sym,VAL_TICKET), Ord(sym,VAL_OPENPRICE), Bid-b, Ord(sym,VAL_TAKEPROFIT), LimeGreen); Exit; }; }; }; If mode=OP_SELL & OrderValue(sym,VAL_SYMBOL)=Symbol then { If Ord(sym,Val_OPENPRICE)
(Ord(sym,Val_OPENPRICE)*0.004) & iMA(lp,MODE_SMA,3)>iMA(sp,MODE_EMA,3)*1.002 & iMA(lp,MODE_SMA,0)
(b) then { If Ord(sym,VAL_STOPLOSS)>(Ask+b) then { ModifyOrder( Ord(sym,VAL_TICKET), Ord(sym,VAL_OPENPRICE), Ask+b, Ord(sym,VAL_TAKEPROFIT), HotPink); Exit; }; }; }; End;
Author/Source:
Smoky
Forex Directory
|
Forex Trading Systems
|
Privacy
|
Disclaimer
|
Contact