- 6월 24, 2013
- 게시자: 외환 위키 팀
- 범주: FX산업
댓글 없음
1606
1478
이름: |
|
||
작가: | forexavatar (2010.02.24 11:22) | ||
다운로드됨: | 10828 | ||
다운로드: |
|
||
설명:The big problem of all MA indicators is giving false signals in consolidation moments. This indicator uses simple trick to eliminate false signals in consolidation. 영상:
How to identify consolidation? Get max and min values from a few last candles - if current price contains in max and min area ( 분 > PRICE < 최대 ) we can say that it's a consolidation moment. int candles = 6; double min = Low[iLowest(없는,0,MODE_LOW,양초,i+2)]; double max = High[iHighest(없는,0,MODE_HIGH,양초,i+2)]; bool horizontal = false; 만약에(엄마[0] < 최대 && 엄마[0] > 분) { horizontal = true; } Signal function where i - number of bar int MovingAverage(int i) { double ma[3]; int period = _Period; 엄마[0] = iMA(없는,0,period,0,MODE_EMA,PRICE_MEDIAN,나); 엄마[1] = iMA(없는,0,period,0,MODE_EMA,PRICE_MEDIAN,i+1); 엄마[2] = iMA(없는,0,period,0,MODE_EMA,PRICE_MEDIAN,i+2); int candles = 6; double min = Low[iLowest(없는,0,MODE_LOW,양초,i+2)]; double max = High[iHighest(없는,0,MODE_HIGH,양초,i+2)]; bool horizontal = false; 만약에(엄마[0] < 최대 && 엄마[0] > 분) { horizontal = true; } 만약에(엄마[1] < 엄마[0] && horizontal == false) { 반품(1); Print(" "); } else if(엄마[1] > 엄마[0] && horizontal == false) { 반품(-1); } 또 다른 { 반품(0); } } |