안녕하세요, 트레이더 여러분! 오늘은 크기는 작지만 효율적인 시스템 트레이딩 도구인 네발랴시카 10라인 EA에 대해 이야기해 보려고 해요. 이 EA는 최소한의 최적화를 거친 후에도 뛰어난 성능을 발휘할 수 있답니다.
특히, 마틴게일 기능을 추가할 수 있어 전략의 다양성을 높일 수 있어요. 아래의 코드를 참고해 보세요:
//--------------------------------------------------------------------externint stoploss =50, takeprofit =50;double Lot=1;int tip;//--------------------------------------------------------------------int init(){ OrderSend(Symbol(),OP_SELL,Lot,Bid,3,NormalizeDouble(Ask+ stoploss*Point,Digits), NormalizeDouble(Bid- takeprofit*Point,Digits)," ",777,Blue);}//--------------------------------------------------------------------int start(){ for(int i=0; i<OrdersTotal(); i++){ if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true){ if(OrderSymbol()==Symbol()){ tip =OrderType(); Lot =OrderLots();return;}}} if(Lot==0)return; if(tip==0)OrderSend(Symbol(),OP_SELL,Lot,Bid,3,NormalizeDouble(Ask+ stoploss*Point,Digits), NormalizeDouble(Bid- takeprofit*Point,Digits)," ",777,Blue); if(tip==1)OrderSend(Symbol(),OP_BUY,Lot,Ask,3,NormalizeDouble(Bid- stoploss*Point,Digits), NormalizeDouble(Ask+ takeprofit*Point,Digits)," ",777,Blue); return(0);}//-----------------------------------------------------------------
간단한 최적화 결과를 확인해 보세요:



댓글 0