#
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 MQ4 Experts
Title: Daily Scalp
Description:
Daily Scalp
//+------------------------------------------------------------------+ //| DailyScalp.mq4 | //| | //| //+------------------------------------------------------------------+ #property copyright "borrowed some code from mpfx" #property link "http://www.stideas.com" extern double TakeProfit = 30; extern double Lots = 1; extern double TrailingStop = 99; extern double Stoploss = 17; extern double Pips = 16; extern double Perc = 5; double Points; int init () { Points = MarketInfo (Symbol(), MODE_POINT); //---- return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int deinit() { return(0); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { double Levv=0; int cnt=0, total; if(Bars<10) { Print("bars less than 100"); return(0); } if(OrdersTotal()<1) { if(AccountFreeMargin()<(1*Lots)) { Print("BrokeAsAJoke"); return(0); } Levv= AccountEquity()*(Perc/100/100)/10; // (BUY) if (Close[1]>Close[2]) { OrderSend(OP_BUY,Levv,Ask,3,Bid-Stoploss*Points,Ask+TakeProfit,0,0,Red); return(0); } if (Close[1]>Close[2]) { OrderSend(OP_BUY,Levv,Ask,3,Bid-Stoploss*Points,Ask+TakeProfit,0,0,Red); return(0); } // (SELL) if (Close[1]
= 86400)) //1 Day// { OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet); return(0); } } } } total=OrdersTotal(); for(cnt=0;cnt
= 86400)) //1 Day// { OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); return(0); } } } } }
Author/Source:
http://www.stideas.com
Forex Directory
|
Free Forex Strategies
|
Forex Trading Systems
|
Privacy
|
Disclaimer
|
Contact