거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Simple candle filter martingale EA - MetaTrader 4용 expert

조회수:
16672
평가:
(9)
게시됨:
2019.07.30 21:10
업데이트됨:
2019.09.24 10:54
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This EA uses a candle size filter to initiate a trade.


Attribution: Ideas are mine, code is compiled using fxdreema.


Concept

If the Candle size is > x pips, then the EA will enter into a buy trade.

The candle size is an input in the EA settings.


If the buy trade results in a loss, The EA will enter into the next trade at a scaled up lot size.

The scale factor is adjustable in the EA settings.


Main principle of the concept

The main principle behind all EAs that I design is to control the number of consecutive losses (Rather than to predict where the price is moving next).

This control is accomplished by increasing the Candle size required in the settings until a sufficiently low (safe) amount of consecutive losses occur over a long test period.  (The reason for controlling the consecutive losses is so that we can safely use the martingale strategy).


Settings

I use USDJPY and 4hr chart for testing. Other timeframes will work too.

I usually set the settings for candle size to be 20 or more , preferably 30.

10 or less will usually not work.


TP and SL

The TP and SL I use are normally a ratio of 1:1

and the settings are 50 TP and 50 SL

Settings of 75TP 50SL; 100TP 50SL, work if you use a lower scale factor such as 1.5.

This is because when the Ratio of TP to SL changes, the probability of winning to losing on average changes, and so do the number of consecutive losses (important).

I find as a rule of thumb that the max consec losses is usually 6 times the average losses, and that average losses in a similar ratio of TP:SL ratio (the same or a multiple of the TP:SL ratio or a less favourable ratio).

EXample a TP:SL of 50pips:50pips gives average wins to losses of 2:2 or worse 2:3 due to spread

And max consec losses of example 2x6=12. (We aim to lower these to less than 8, perhaps 6 would be good- using the candle filter)


Feedback is welcome. We can develop more advanced ideas to control consecutive losses and unleash the power of martingale in a random market environment.


    dTrends dTrends

    Arrow trends by iBearsPower and iBullsPower indicator for MT4.

    Price Time Correlation Trading Model Price Time Correlation Trading Model

    A Price Time correlation model is used for Trend and Reversal trading

    Automatically enable or disable the automated trading button Automatically enable or disable the automated trading button

    Let say you have an EA and you want it to trade in between an interval of time but you do not have the source codes to modify the EA. This utility allows you to automatically enable or disable the automated trading button. You can use the codes as an EA, Indicator or script but I used as an EA. You can remove Ordersend command because I set it only for the codes to past the test but it is meaningless.

    Evenly weighted DXY and changeable base currency Evenly weighted DXY and changeable base currency

    Currency Index that calculates evenly on all 7 major pairs. Can also change base currency. Based on No Nonsense Forex podcast.