Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Permenkaret Permenkaret is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 351
Rep Power: 14
Permenkaret mempunyai hidup yang Normal
Default (Ask) error 130 mql4

perlu bantuan untuk koreksi ea, setiap order selalu error 130. stoploss diset 200 dan takeprofit 400. ini kode untuk open buy



void Open_Buy(double OPB)

{

int ticket;

RefreshRates();

if (StopLoss < batas) StopLoss = batas;

if (TakeProfit < batas) TakeProfit = batas;



Print("batas "+DoubleToStr(batas,0));

Print("stop level "+DoubleToStr(MarketInfo(Symbol(),MODE_STOPLEVEL), 0));

Print("Ask "+DoubleToStr(Ask,Digits));

Print("StopLoss "+DoubleToStr(Ask-StopLoss*Point,Digits));

Print("TakeProfit "+DoubleToStr(Ask+TakeProfit*Point,Digits));



ticket=OrderSend(Symbol(),OP_BUY,1,NormalizeDouble (Ask,Digits),Slippage ,NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakePro fit*Point,Digits),"Open Buy",MagicNumber,DarkViolet);

if(ticket < 0)

Print("Error opening BUY order : ",GetLastError());

else

Print("Open BUY "+DoubleToStr(OPB,3));

}



ini hasil ketika ea dijalankan

http://u.kaskus.us/36/84xekotc.png



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 10:59 AM.


no new posts