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

Trading signals function. Based on the values of the CCI indicator. - MetaTrader 4용 라이브러리

조회수:
11238
평가:
(13)
게시됨:
2016.07.01 11:21
Signal.mq4 (1.6 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Trading signals function. Based on the values of the CCI indicator.

Add the function to the EA: #include <Signal.mqh>
Condition if(GetSignal()==1) is for buys.
Condition if(GetSignal()==-1) is for sells.

External variables of the function:

periodCCI - the period of averaging for calculation of the indicator.


applied_price - Used price. It can be any of the price constants, may range from 0 to 6.


shift - index of obtained value from the indicator buffer (shifting back by specified periods relative to the current bar).


CCI_High - The upper level of the indicator.


CCI_Low - The lower level of the indicator.

Test Example:


SymbolEURUSD (Euro vs US Dollar)
Period15 Minutes (M15) 2009.01.26 00:00 - 2009.02.02 23:45 (2009.01.26 - 2009.02.03)
ModelEvery tick (the most accurate mode based on the shortest available time frames)
ParametersperiodCCI=9; applied_price=2; shift=0; CCI_High=110; CCI_Low=120; TakeProfit=60; SL=30; Lots=1;

Bars in test1573Ticks modelled146419Modelling qualityn/a
Mismatched chart errors517




Initial deposit10000.00



Net profit11625.70Gross profit18583.50Gross loss-6957.80
Profit factor2.67Expected payoff219.35

Absolute drawdown190.00Maximum drawdown2267.80 (10.25%)Relative drawdown10.25% (2267.80)

Total trades53Short positions (won %)17 (70.59%)Long positions (won %)36 (52.78%)

Profit trades (% of total)31 (58.49%)Loss Trades (% of total)22 (41.51%)
Largestprofit trade601.10loss trade-320.00
Averageprofit trade599.47loss trade-316.26
Maximumconsecutive wins (profit in money)5 (3001.10)consecutive losses (loss in money)6 (-1918.90)
Maximalconsecutive profit (count of wins)3001.10 (5)consecutive loss (count)-1918.90 (6)
Averageconsecutive wins3consecutive losses2

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/8695

Volatility, aggressiveness and their normalization Volatility, aggressiveness and their normalization

Aggressiveness - the rate of price change. Volatility - the size of the channel

Calculation of the number of lots by Anton Trefolev. Calculation of the number of lots by Anton Trefolev.

Calculation of the number of lots by Anton Trefolev.

Pipso Pipso

Rebound pipsing within a daily channel

Live limit Live limit

When assigned to a hotkey, the script allows to almost instantly open limit orders with the specified risk level (in the deposit currency) and take profit (so-called braces).