ewanjeli:
Use SRC to Post the code or Ctrl+Alt+M
ca anyone help me making ea..
when order is 0,open buy stop and sell stop 5 pip from current and no SL or TP.. order then have trailing stop lost 10 pip
when there is 1 order.. delete other pending order..
and i can't found way to make ea run in both 4 decimal,5decimal and jpy which is 3 decimal..
help me plis
//+------------------------------------------------------------------+ //| mrNoname2.mq4 | //| Copyright 2015, MrNoName | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2015, MrNoName" #property link "https://www.mql5.com" #property version "1.00" #property strict //--- input parameters input int StopLost=10; input int POentry=50; input int TrailingStop=10; input double lot=0.01; int magic=12345; int digits; double buyP; double sellP; double point; int start() { bool success = false; if (OrdersTotal() == 0) { sellP=Bid-(POentry*point); buyP=Ask+(POentry*point); OrderSend (Symbol(),OP_BUYSTOP, lot,buyP ,2,0,magic); OrderSend (Symbol(),OP_SELLSTOP, lot,sellP ,2,0,magic); } for(int i=0;i<OrdersTotal();i++){ OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if(OrderSymbol()==Symbol() && OrderMagicNumber()== magic && ((OrderType()==OP_BUYSTOP) || (OrderType()==OP_SELLSTOP) )){ OrderDelete(OrderTicket()); } } return(0); }
this is the code.. i cant find way to make trailing.. and this code have error 130
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
ca anyone help me making ea..
when order is 0,open buy stop and sell stop 5 pip from current and no SL or TP.. order then have trailing stop lost 10 pip
when there is 1 order.. delete other pending order..
and i can't found way to make ea run in both 4 decimal,5decimal and jpy which is 3 decimal..
help me plis