jejantas
CG Top Poster Club

- Messages
- 24,708
Paid Membership
- Joined
- Sep 1, 2007
- Messages
- 24,708
- Reaction score
- 926
- Points
- 161
EA nih bukan utk trade tapi untuk memberi Info kepada anda Bilangan post Buy dan Sell, Untung Buy dan Sell etc. Info ini berguna jika anda mempunyai post yang banyak dan x larat nak kira lots 
Copy dan paste dalam metaeditor ... dan save ... masukkan ke dalam chart mana2 pair untuk Info
//+------------------------------------------------------------------+
//| crazypipsInfo.mq4 |
//| Copyright © 2009, Crazypips.com |
//| http://www.crazypips.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, Crazypips.com"
#property link "http://www.crazypips.com"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
int TotalBuy,TotalSell;
double BuyLot,SellLot,ProfitBuy,ProfitSell;
for (int ij=OrdersTotal();ij>=0; ij--){
if (OrderSelect(ij, SELECT_BY_POS)==true) {
if (OrderSymbol()==Symbol()) {
if(OrderType()==OP_BUY){TotalBuy++;BuyLot+=OrderLots();ProfitBuy+=OrderProfit();}
if(OrderType()==OP_SELL){TotalSell++;SellLot+=OrderLots();ProfitSell+=OrderProfit();}
}
}
}
if(BuyLot>SellLot) {string Trend = " Need To UP"; string Komen ="Lots BUY Higher Than Lots SELL";}
else if(SellLot>BuyLot) {Trend = " Need To DOWN"; Komen = "Lots SELL Higher Than Lots BUY";}
else {Trend =" Lots Equally";}
Comment("Total Buy Lots : USD ",BuyLot," || Total Buy Post : USD ",TotalBuy," || Total Buy Profit: USD ",ProfitBuy," ||",
"\n","Total Sell Lots : USD ",SellLot," || Total Sell Post : USD ",TotalSell," || Total Sell Profit: USD ",ProfitSell," ||"
,"\n","Diffrent : USD ",BuyLot-SellLot," || Coment : ",Trend," --> ",Komen);
//----
return(0);
}
//+------------------------------------------------------------------+
Copy dan paste dalam metaeditor ... dan save ... masukkan ke dalam chart mana2 pair untuk Info
//+------------------------------------------------------------------+
//| crazypipsInfo.mq4 |
//| Copyright © 2009, Crazypips.com |
//| http://www.crazypips.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, Crazypips.com"
#property link "http://www.crazypips.com"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
int TotalBuy,TotalSell;
double BuyLot,SellLot,ProfitBuy,ProfitSell;
for (int ij=OrdersTotal();ij>=0; ij--){
if (OrderSelect(ij, SELECT_BY_POS)==true) {
if (OrderSymbol()==Symbol()) {
if(OrderType()==OP_BUY){TotalBuy++;BuyLot+=OrderLots();ProfitBuy+=OrderProfit();}
if(OrderType()==OP_SELL){TotalSell++;SellLot+=OrderLots();ProfitSell+=OrderProfit();}
}
}
}
if(BuyLot>SellLot) {string Trend = " Need To UP"; string Komen ="Lots BUY Higher Than Lots SELL";}
else if(SellLot>BuyLot) {Trend = " Need To DOWN"; Komen = "Lots SELL Higher Than Lots BUY";}
else {Trend =" Lots Equally";}
Comment("Total Buy Lots : USD ",BuyLot," || Total Buy Post : USD ",TotalBuy," || Total Buy Profit: USD ",ProfitBuy," ||",
"\n","Total Sell Lots : USD ",SellLot," || Total Sell Post : USD ",TotalSell," || Total Sell Profit: USD ",ProfitSell," ||"
,"\n","Diffrent : USD ",BuyLot-SellLot," || Coment : ",Trend," --> ",Komen);
//----
return(0);
}
//+------------------------------------------------------------------+