MetaTrader 5를 위한 Bruno - EA 전략 소개

Mike 2018.11.20 21:52 47 0 0
첨부파일

아이디어 작성자: Scriptor

mq5 코드 작성자: barabashkakvn

이 EA는 총 다섯 가지의 전략을 포함하고 있습니다:

  1. iADX 지표를 활용한 전략 (Average Directional Movement Index, ADX)
    if(axd_plusdi[1] > axd_minusdi[1] && axd_plusdi[1] > 20.0)
        lot_buy *= InpSignalRatio;
    else if(axd_plusdi[1] < axd_minusdi[1] && axd_plusdi[1] < 40.0)
        lot_sell *= InpSignalRatio;
    

  2. iMA (이동 평균, MA)와 iStochastic (스토캐스틱 오실레이터) 지표를 활용한 전략
    if(ma_one[1] > ma_two[1] && sto_main[1] > sto_signal[1] && sto_main[1] < 80.0)
        lot_buy *= InpSignalRatio;
    else if(ma_one[1] < ma_two[1] && sto_main[1] < sto_signal[1] && sto_main[1] > 20.0)
        lot_sell *= InpSignalRatio;
    


  3. iMACD (이동 평균 수렴/발산, MACD) 지표를 활용한 전략
    if(macd_main[1] > 0.0 && macd_main[1] > madc_signal[1])
        lot_buy *= InpSignalRatio;
    else if(macd_main[1] < 0.0 && macd_main[1] < madc_signal[1])
        lot_sell *= InpSignalRatio;
    

  4. iMA (이동 평균, MA)와 iSAR (파라볼릭 SAR) 지표를 활용한 전략
    if(ma_one[1] > ma_two[1] && sar[1] > sar[2])
        lot_buy *= InpSignalRatio;
    else if(ma_one[1] < ma_two[1] && sar[1] < sar[2])
        lot_sell *= InpSignalRatio;
    

각 전략은 신호가 활성화될 때마다 초기 로트를 신호 비율 만큼 증가시킵니다. 만약 BUY와 SELL 신호가 동시에 활성화되면, 두 신호 모두 무시됩니다.

BUY 신호는 SELL 종료 신호와 동일하며, 그 반대도 마찬가지입니다.

목록
댓글 0