unmetered.co.id
New Member
- Credits
- 0
Salam profit untuk semua...
Saya mempunyai EA dengan menu multiplier, namun format pengambilan lot memang secara berurutan :
0.01, 0.02, 0.04, 0.08, 0.16, dst....
Pertanyaan saya :
Bagaimana kita modifikasi agar pengambilan lot bisa secara bertahap, misalnya :
Sesi Pertama :
0.01, 0.01, 0.01, 0.01,
Sesi Kedua :
0.02, 0.02, 0.02, 0.02,
Sesi Ketiga :
0.04, 0.04, 0.04, 0.04,
Sesi Ke empat :
0.04, 0.08, 0.016, dst......
Adapun kode robot EA sebelumnya :
General Parameter :
double Lot_Awal,MinLots,MaxLots;
double OpenOrders,OpenOrdersbuy,OpenOrderssell,hrgOP_BUY,hrgOP_SELL,LotOP_Last,LOT_OPsell,LOT_OPbuy;
Lot_Awal = NormalizeDouble (Lots,DigitLot);
TAKE PROFIT
if(TakeProfitDollar!=0 && ProfitTotal() >= TakeProfitDollar )
{
CloseMultyple();
quikclose();
quik_close();
lot_marti_Buy=Lot_Awal;
lot_marti_Sell=Lot_Awal;
}
stopMoney=-LossProfitDollar;
if(LossProfitDollar !=0 && ProfitInMoneyBuy() <= stopMoney ){
quikclose();
quik_close();
lot_marti_Buy=Lot_Awal;
lot_marti_Sell=Lot_Awal;
}
Open Order :
openord();
if(OpenOrdersbuy == 0 && timeOPBuy != iTime(Symbol(),0,0) && op_buy == 1 )
{
if(ProfitInMoneySell() > 0 && OpenOrdersbuy == 0){
quikclose_SELL();
quikcloseSELL();
}
lot_marti_Buy=NormalizeDouble((Lot_Awal),DigitLot);
OpenBuy(MagicNumber);
timeOPBuy = iTime(Symbol(),0,0);
timeOPBuy_Marting = iTime(Symbol(),0,0);
}
openord();
if(OpenOrderssell == 0 && timeOPSell != iTime(Symbol(),0,0) && op_sell == 1)
{
if(ProfitInMoneyBuy() > 0 && OpenOrderssell == 0){
quikclose_BUY();
quikcloseBUY();
}
lot_marti_Sell=NormalizeDouble((Lot_Awal),DigitLot);
OpenSell(MagicNumber);
timeOPSell = iTime(Symbol(),0,0);
timeOPSell_Marting = iTime(Symbol(),0,0);
}
openord();
if(OpenOrdersbuy > 0 && timeOPBuy != iTime(Symbol(),0,0) && op_buy == 1 )
{
if(ProfitInMoneySell() > 0 && OpenOrdersbuy == 0){
quikclose_SELL();
quikcloseSELL();
}
lot_marti_Buy=NormalizeDouble((Lot_Awal*MultiLot),DigitLot);
OpenBuy(MagicNumber);
timeOPBuy = iTime(Symbol(),0,0);
timeOPBuy_Marting = iTime(Symbol(),0,0);
}
openord();
if(OpenOrderssell > 0 && timeOPSell != iTime(Symbol(),0,0) && op_sell == 1)
{
if(ProfitInMoneyBuy() > 0 && OpenOrderssell == 0){
quikclose_BUY();
quikcloseBUY();
}
lot_marti_Sell=NormalizeDouble((LotOP_Last*MultiLot),DigitLot);
OpenSell(MagicNumber);
timeOPSell = iTime(Symbol(),0,0);
timeOPSell_Marting = iTime(Symbol(),0,0);
}
Bagaimana saya harus menambah kode nya dan di letakkan dimana ??
Terima kasih....
Saya mempunyai EA dengan menu multiplier, namun format pengambilan lot memang secara berurutan :
0.01, 0.02, 0.04, 0.08, 0.16, dst....
Pertanyaan saya :
Bagaimana kita modifikasi agar pengambilan lot bisa secara bertahap, misalnya :
Sesi Pertama :
0.01, 0.01, 0.01, 0.01,
Sesi Kedua :
0.02, 0.02, 0.02, 0.02,
Sesi Ketiga :
0.04, 0.04, 0.04, 0.04,
Sesi Ke empat :
0.04, 0.08, 0.016, dst......
Adapun kode robot EA sebelumnya :
General Parameter :
double Lot_Awal,MinLots,MaxLots;
double OpenOrders,OpenOrdersbuy,OpenOrderssell,hrgOP_BUY,hrgOP_SELL,LotOP_Last,LOT_OPsell,LOT_OPbuy;
Lot_Awal = NormalizeDouble (Lots,DigitLot);
TAKE PROFIT
if(TakeProfitDollar!=0 && ProfitTotal() >= TakeProfitDollar )
{
CloseMultyple();
quikclose();
quik_close();
lot_marti_Buy=Lot_Awal;
lot_marti_Sell=Lot_Awal;
}
stopMoney=-LossProfitDollar;
if(LossProfitDollar !=0 && ProfitInMoneyBuy() <= stopMoney ){
quikclose();
quik_close();
lot_marti_Buy=Lot_Awal;
lot_marti_Sell=Lot_Awal;
}
Open Order :
openord();
if(OpenOrdersbuy == 0 && timeOPBuy != iTime(Symbol(),0,0) && op_buy == 1 )
{
if(ProfitInMoneySell() > 0 && OpenOrdersbuy == 0){
quikclose_SELL();
quikcloseSELL();
}
lot_marti_Buy=NormalizeDouble((Lot_Awal),DigitLot);
OpenBuy(MagicNumber);
timeOPBuy = iTime(Symbol(),0,0);
timeOPBuy_Marting = iTime(Symbol(),0,0);
}
openord();
if(OpenOrderssell == 0 && timeOPSell != iTime(Symbol(),0,0) && op_sell == 1)
{
if(ProfitInMoneyBuy() > 0 && OpenOrderssell == 0){
quikclose_BUY();
quikcloseBUY();
}
lot_marti_Sell=NormalizeDouble((Lot_Awal),DigitLot);
OpenSell(MagicNumber);
timeOPSell = iTime(Symbol(),0,0);
timeOPSell_Marting = iTime(Symbol(),0,0);
}
openord();
if(OpenOrdersbuy > 0 && timeOPBuy != iTime(Symbol(),0,0) && op_buy == 1 )
{
if(ProfitInMoneySell() > 0 && OpenOrdersbuy == 0){
quikclose_SELL();
quikcloseSELL();
}
lot_marti_Buy=NormalizeDouble((Lot_Awal*MultiLot),DigitLot);
OpenBuy(MagicNumber);
timeOPBuy = iTime(Symbol(),0,0);
timeOPBuy_Marting = iTime(Symbol(),0,0);
}
openord();
if(OpenOrderssell > 0 && timeOPSell != iTime(Symbol(),0,0) && op_sell == 1)
{
if(ProfitInMoneyBuy() > 0 && OpenOrderssell == 0){
quikclose_BUY();
quikcloseBUY();
}
lot_marti_Sell=NormalizeDouble((LotOP_Last*MultiLot),DigitLot);
OpenSell(MagicNumber);
timeOPSell = iTime(Symbol(),0,0);
timeOPSell_Marting = iTime(Symbol(),0,0);
}
Bagaimana saya harus menambah kode nya dan di letakkan dimana ??
Terima kasih....