2 첨부 파일 ATR에서 발견 된 일부 신호를 필터링하려고하는데 많이 방문했습니다.
비교할 간단한 생각이 들었다.
(높음 낮음)닫기 * 1000
코드를 수정했지만 잘 작동하지 않습니다.
주말에는 버그가 있습니다. 거짓 데이터 가져 오기 ...
pls 도움 ....
(만약 당신이 더 많은 기능을 추가 할 수 있습니다 mA 경고 수준 ..)
감사
***************************
// ----------------------------------------------- -------------------
//| % .mq4의 범위 |
//| |
//| |
// ----------------------------------------------- -------------------
#property 저작권 무료
#property link free
#property indior_separate_window
#property indior_buffers 1
#property indior_color1 DodgerBlue
//---- 입력 매개 변수
extern int AtrPeriod = 1;
//---- 버퍼
double AtrBuffer [];
double TempBuffer [];
// ----------------------------------------------- -------------------
//| 사용자 정의 실내 초기화 기능 |
// ----------------------------------------------- -------------------
int init ()
{
string short_name;
//---- 1 개의 추가 버퍼가 계산에 사용됩니다.
IndiorBuffers (2);
//---- 실내 라인
SetIndexStyle (0, DRAW_HISTOGRAM);
SetIndexBuffer (0, AtrBuffer);
SetIndexBuffer (1, TempBuffer);
//---- DataWindow 및 실내 서브 윈도우 레이블의 이름입니다.
short_name = % AtrPeriod 의 범위);
IndiorShortName (short_name);
SetIndexLabel (0, short_name);
//----
SetIndexDrawBegin (0, AtrPeriod);
//----
return (0);
}
// ----------------------------------------------- -------------------
//| 평균 True 범위 |
// ----------------------------------------------- -------------------
int start ()
{
int i, counted_bars = IndiorCounted ();
//----
if (Barslt; = AtrPeriod) return (0);
//---- 초기 0
if (counted_barslt; 1)
for (i = 1; ilt; = AtrPeriod; i ) AtrBuffer [Bars-i] = 0.0;
//----
i = Bars-counted_bars-1;
반면 (igt; = 0)
{
이중 높이 = 높음 [i];
double low = Low [i];
if (i == Bars-1) TempBuffer [i] = high-low;
그밖에
{
double prevclose = 닫기 [i 1];
TempBuffer [i] = (MathMax (high, prevclose) -MathMin (low, prevclose))닫기 [i 1] * 1000;
}
나는--;
}
//----
if (counted_barsgt; 0) counted_bars--;
int limit = Bars-counted_bars;
for (i = 0; ilt; 제한; i )
AtrBuffer [i] = iMAOnArray (TempBuffer, Bars, AtrPeriod, 0, MODE_SMA, i);
//----
return (0);
}
// ----------------------------------------------- -------------------
https://www.koreaforex.kr/attachment...0571487221.mq4
https://www.koreaforex.kr/trading-sy...-training.html