BTC USD 81,302.9 Gold USD 4,378.12
Time now: Jun 1, 12:00 AM

FPI technic

GJ 143.09 Long
UJ 93.98 Short

Jadi GJ/UJ= price GU 1.5225 (Cuurent price 1.5234)

Jadi GJ 1 lot Long UJ 1 lot.Short GU 0.9 lot short
.

ini optimized hedge. lg susah nk rugi, lg lmbt nk popit... secara teori la.. mari kita sama2 ngetest
 
testFDI2.gif



EA tgh test .... tepat atau x seperti rules ...

Sebarang idea sila berikan cepat ketika saya masih free ini...
 
aku try demo skang jugak....
1lot BUY GU
llot BUY UJ
1lot SELL GY
 
Ini Codingnya ... korang test dan develop sama2

//+------------------------------------------------------------------+
//| CrazypipsPFI.mq4 |
//| Copyright © 2010, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"

//---- input parameters
extern double UseMargin=50;
extern string Pair1="GBPUSD";
extern string Pair2="USDJPY";
extern double ClosePercent=10;
string Simbol;
int OPBuy,OPSell,ClosePost;
int MagicNo = 332211;
double Points,Lots;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start(){
Simbol=Symbol();
RefreshRates();
if(Digits==5) Points = 0.0001;
else if(Digits==3) Points = 0.01;
else Points=Point;
double bidPair1 = MarketInfo(Pair1,MODE_BID);
double bidPair2 = MarketInfo(Pair2,MODE_BID);
double bidSimbol = MarketInfo(Simbol,MODE_BID);
double askPair1 = MarketInfo(Pair1,MODE_ASK);
double askPair2 = MarketInfo(Pair2,MODE_ASK);
double askSimbol = MarketInfo(Simbol,MODE_ASK);
double bidResult =NormalizeDouble(bidPair1*bidPair2,Digits);
int TotalBuyPair1,TotalSellPair1;
for (int ij=OrdersTotal();ij>=0; ij--){
if (OrderSelect(ij, SELECT_BY_POS)==true) {
if (OrderSymbol()==Pair1) {
if( OrderMagicNumber()==MagicNo){
if(OrderType()==OP_BUY){TotalBuyPair1++;}
if(OrderType()==OP_SELL){TotalSellPair1++;}
}
}
}
}
int TotalBuyPair2,TotalSellPair2;
for (int ix=OrdersTotal();ix>=0; ix--){
if (OrderSelect(ix, SELECT_BY_POS)==true) {
if (OrderSymbol()==Pair2) {
if( OrderMagicNumber()==MagicNo){
if(OrderType()==OP_BUY){TotalBuyPair2++;}
if(OrderType()==OP_SELL){TotalSellPair2++;}
}
}
}
}
int TotalBuySimbol,TotalSellSimbol;
for (int ib=OrdersTotal();ib>=0; ib--){
if (OrderSelect(ib, SELECT_BY_POS)==true) {
if (OrderSymbol()==Simbol) {
if( OrderMagicNumber()==MagicNo){
if(OrderType()==OP_BUY){TotalBuySimbol++;}
if(OrderType()==OP_SELL){TotalSellSimbol++;}
}
}
}
}
if(UseMargin<0)Alert("Sila betulkan Use Margin Anda");
else
Lots = NormalizeDouble(((AccountEquity()*(UseMargin/100))/1000)/3,2);
double Profit=AccountEquity()-AccountBalance();
double Percent = NormalizeDouble(ClosePercent/100,2);
double ProfitClose = AccountEquity()*Percent;
if(OrdersTotal()<1) ClosePost=0;
if(Profit>=ProfitClose) ClosePost=1;
if(ClosePost==1){
for (int iz=OrdersTotal();iz>=0; iz--){
if (OrderSelect(iz, SELECT_BY_POS)==true) {
if (OrderType()==OP_SELL)
OrderClose(OrderTicket(),OrderLots(),Ask,5,Red);
if (OrderType()==OP_BUY)
OrderClose(OrderTicket(),OrderLots(),Bid,5,Blue);
if (OrderType()==OP_SELLSTOP || OrderType()==OP_SELLLIMIT ||
OrderType()==OP_BUYSTOP || OrderType()==OP_BUYLIMIT)
OrderDelete(OrderTicket(),CLR_NONE);
}
ClosePost=1;
}
}
if(bidSimbol>bidResult){OPBuy++;OPSell=0;}
else if(bidSimbol<bidResult){OPBuy=0;OPSell++;}
else {OPBuy=0;OPSell=0;}
if(OrdersTotal()<1){
if(OPBuy==1){
OrderSend(Pair1,OP_BUY,Lots,askPair1,5,0,0,"",MagicNo,0,Blue);
}
if(OPSell==1){
OrderSend(Pair1,OP_SELL,Lots,askPair1,5,0,0,"",MagicNo,0,Red);
}
}
if(TotalBuyPair1>0 && TotalBuyPair2<1){
OrderSend(Pair2,OP_BUY,Lots,askPair2,5,0,0,"",MagicNo,0,Blue);
}
if(TotalBuyPair1>0 && TotalSellSimbol<1){
OrderSend(Simbol,OP_SELL,Lots,bidSimbol,5,0,0,"",MagicNo,0,Red);
}
if(TotalSellPair1>0 && TotalSellPair2<1){
OrderSend(Pair2,OP_SELL,Lots,bidPair2,5,0,0,"",MagicNo,0,Blue);
}
if(TotalSellPair1>0 && TotalBuySimbol<1){
OrderSend(Simbol,OP_BUY,Lots,askSimbol,5,0,0,"",MagicNo,0,Red);
}
Comment ("|| Profit : USD ",Profit," || Target Profit : USD ",ProfitClose ," || Lots : USD ",Lots, " ||");
return(0);
}
//+------------------------------------------------------------------+

//Korang Copy Dan paste Dalam MetaEditor .. pastu save
 
dalam coding tu, utk magic no tu, kalau kita copy paste, mmg akan nampak dia mcm terpisah, so, rajin2 kan diri utk edit. kalau rasa x reti, korang quote je apa bro jejantas kata utk bahagian coding tu, pastu copy la coding tu. kalau amik yg dari quote, coding tu ok.
 
rumusan yang firma da faham setakat ni:-?

melibatkan 3 pair sebagai contoh AB, bC, CA....

where A, B and C can be any currency:-?

for pair example
AB=GU
BC=UJ
CA=GJ

where currency A=Gbp, B=USD dan C=JPY

dalam trading pula ia boleh menjadi 2 combo iaitu

1; buy AB, buy BC, and sell CA

or

2 sell AB, sell BC and buy CA

pemilihan combo plak

kalau FPI > 1, buy gu buy uj sell gj
kalau FPI <1 sell gu sell uj buy GJ



betul ke ni:-?

mohon pandangan
 
Last edited:
waaa aku baru bangun tido dah 4 page dah .
 
tersesat sesat thread + rambang mata nak bace thread
sebab ade member cg yg sama dlm tiap thread, maidin lukpayat mjb :D
teringat skill teknik freedomrocks 4tahun lepas
menarik ni
 
ada kat thread asal...


Jejantas,

kalau FPI > 1, buy gu buy uj sell gj
kalau FPI <1 sell gu sell uj buy GJ..

tapi sebenar nya, xde beza pon... yang penting the product tu kena extreme 1.07 or 0.93 baru cepat popit..

formula kiraan matermatiknye mcm ni ke bro lukpayat?

[GU x UJ] / GJ =
 

Live Forex Chart

Currency
Rates
EUR / USD
1.14790
USD / JPY
156.877
GBP / USD
1.33950
USD / CHF
0.82250
USD / CAD
1.39985
EUR / JPY
180.080
AUD / USD
0.71320
Back
Top
Log in Register