코딩하는 방법? - 페이지 209

 

안녕하세요 여러분...

누군가가 지표와 EA 코딩을 시작하는 방법을 보여줄 수 있습니까?

 
kessing:
안녕 모두... 누군가 나에게 지표와 EA 코딩을 시작하는 방법을 보여줄 수 있습니까?

안녕,

여기를 보십시오: https://www.mql5.com/en/forum/172969/page2

 
kessing:
안녕 모두... 누군가가 표시기 및 EA 코딩을 시작하는 방법을 보여줄 수 있습니까?

이 스레드(첫 번째 게시물) 읽기: https://www.mql5.com/en/forum/178706

그리고 이 스레드: https://www.mql5.com/en/forum/173290

 
kessing:
안녕 모두... 누군가 나에게 지표와 EA 코딩을 시작하는 방법을 보여줄 수 있습니까?

FF에는 여기저기서 많은 정보가 있습니다. 구글에서 검색하셔도 됩니다.

EA 프로그래밍에 대한 쉬운 소개는 내 시그의 링크를 확인하십시오 . 초보 프로그래머가 시작하기에 좋은 곳입니다.

행운을 빕니다!

럭스

 
 

EA 표시기

안녕하세요 여러분,

첨부된 Waddah Attar Explosion에서 EA를 만들 수 있는 사람 의 도움을 요청하고 싶습니다.

응답을 기다리십시오.

고맙습니다.

-에스-

 

ea 유니버셜 마 2 크로스

안녕하세요 여러분!

이 firedave's ea를 수정하기 위해 찾고 있습니다(이 포럼에서)

더 에아는 '유니버설 마크로스 에아'라고 부른다.

내가 만들고 싶은 것은 2개의 교차 확인에 입력하는 ea입니다(예: ema 2 & 4와 ema 5 & 20의 또 다른 커플)

이것은 메인 코드입니다. 어떻게 해야 합니까?

//----------------------- 변수에 대한 값 설정

if(ConfirmedOnEntry==true)

{

if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); 그렇지 않으면 CheckTime = iTime(NULL,TimeFrame,0);

FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMAType,FastMAPrice,1);

SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMAType,SlowMAPrice,1);

}

또 다른

{

FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMAType,FastMAPrice,0);

SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMAType,SlowMAPrice,0);

}

CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent);

나는 모든 것을 시도했지만 해결책을 찾지 못했습니다 ...이 커뮤니티의 건강을 위해 저를 도와주세요 , 나는 이것과 비슷한 것을 원합니다.

//----------------------- 변수에 대한 값 설정

if(ConfirmedOnEntry==true)

{

if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); 그렇지 않으면 CheckTime = iTime(NULL,TimeFrame,0);

FastMACurrent = iMA(NULL,TimeFrame,2,FastMAshift,FastMAType,FastMAPrice,1);

SlowMACurrent = iMA(NULL,TimeFrame,4,SlowMAshift,SlowMAType,SlowMAPrice,1);

FastMACurrent2 = iMA(NULL,TimeFrame,5,FastMAshift,FastMAType,FastMAPrice,1);

SlowMACurrent2 = iMA(NULL,TimeFrame,20,SlowMAshift,SlowMAType,SlowMAPrice,1);

}

또 다른

{

FastMACurrent = iMA(NULL,TimeFrame,2,FastMAshift,FastMAType,FastMAPrice,0);

SlowMACurrent = iMA(NULL,TimeFrame,4,SlowMAshift,SlowMAType,SlowMAPrice,0);

FastMACurrent2 = iMA(NULL,TimeFrame,5,FastMAshift,FastMAType,FastMAPrice,0);

SlowMACurrent2 = iMA(NULL,TimeFrame,20,SlowMAshift,SlowMAType,SlowMAPrice,0);

}

CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent && FastMACurrent2,SlowMACurrent2);

파일:
 

내 표시기에 무슨 문제가 있습니까? 에러 메시지

안녕,

내 표시기의 코드는 다음과 같습니다.

#속성 표시기_분리_창

#속성 표시기_버퍼 2

#property indicator_color1 LightSeaGreen

#property indicator_color2 파란색

외부 문자열 Timeframe_Momentum = "PERIOD_H1";

extern int Periode_Momentum = 500;

extern int Periode_MA_Momentum = 8;

이중 Buffer_Mom[];

이중 Buffer_Ma[];

정수 초기화()

{

//---- 표시기

SetIndexStyle(0,DRAW_LINE);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(0,Buffer_Mom);

SetIndexBuffer(1,Buffer_Ma);

//----

SetIndexEmptyValue(0,0.0);

SetIndexEmptyValue(1,0.0);

SetIndexDrawBegin(0,100);

SetIndexDrawBegin(1,100);

//----

리턴(0);

}

정수 초기화()

{

//----

리턴(0);

}

무효 시작()

{

int counted_bars=IndicatorCounted();

int limit=막대-counted_bars;

if(counted_bars>0) 제한++;

//----

for(int i=0; i<limit; i++)

{

Buffer_Mom=iMomentum(NULL,Timeframe_Momentum,Periode_Momentum,PRICE_CLOSE,i);

Buffer_Ma=iMAOnArray(Buffer_Mom,0,Periode_MA_Momentum,0,MODE_SMA,i);

}

반환(0);

}

다음은 기본 Programm에서 사용하는 코드입니다.

이중 GMI1 = iCustom(NULL,0,"GMI",Timeframe_Momentum,Periode_Momentum,Periode_MA_Momentum, 0,1);

이중 GMI2 = iCustom(NULL,0,"GMI",Timeframe_Momentum,Periode_Momentum,Periode_MA_Momentum, 1,2);

이제 내 문제:

다음 오류 메시지가 나타납니다. EURUSD,M5: 표시기 호출 기능 에 대한 매개변수 2의 정수가 잘못되었습니다.

그리고 내 차트에는 Buffer_Ma가 없습니다! 내 코드에 무슨 문제가 있습니까?!

 

여보세요

이전 막대의 시가와 고가 사이의 표준 편차 를 어떻게 계산합니까?

어떤 도움이라도 좋습니다.

건배

베노

 

PERIOD_H1은 정수 매크로입니다. 해당 행을 다음으로 변경해 보십시오.

extern int TimeFrame_Momentum = PERIOD_H1;

또는 PERIOD_H1을 60으로 바꾸고 시도해보십시오.

sunshineh:
안녕,

내 표시기의 코드는 다음과 같습니다.

#속성 표시기_분리_창

#속성 표시기_버퍼 2

#property indicator_color1 LightSeaGreen

#property indicator_color2 파란색

외부 문자열 Timeframe_Momentum = "PERIOD_H1";

extern int Periode_Momentum = 500;

extern int Periode_MA_Momentum = 8;

이중 Buffer_Mom[];

이중 Buffer_Ma[];

정수 초기화()

{

//---- 표시기

SetIndexStyle(0,DRAW_LINE);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(0,Buffer_Mom);

SetIndexBuffer(1,Buffer_Ma);

//----

SetIndexEmptyValue(0,0.0);

SetIndexEmptyValue(1,0.0);

SetIndexDrawBegin(0,100);

SetIndexDrawBegin(1,100);

//----

리턴(0);

}

정수 초기화()

{

//----

리턴(0);

}

무효 시작()

{

int counted_bars=IndicatorCounted();

int limit=막대-counted_bars;

if(counted_bars>0) 제한++;

//----

for(int i=0; i<limit; i++)

{

Buffer_Mom=iMomentum(NULL,Timeframe_Momentum,Periode_Momentum,PRICE_CLOSE,i);

Buffer_Ma=iMAOnArray(Buffer_Mom,0,Periode_MA_Momentum,0,MODE_SMA,i);

}

리턴(0);

}

다음은 기본 Programm에서 사용하는 코드입니다.

이중 GMI1 = iCustom(NULL,0,"GMI",Timeframe_Momentum,Periode_Momentum,Periode_MA_Momentum, 0,1);

이중 GMI2 = iCustom(NULL,0,"GMI",Timeframe_Momentum,Periode_Momentum,Periode_MA_Momentum, 1,2);

이제 내 문제:

다음 오류 메시지가 나타납니다. EURUSD,M5: 표시기 호출 기능에 대한 매개변수 2의 정수가 잘못되었습니다.

그리고 내 차트에는 Buffer_Ma가 없습니다! 내 코드에 무슨 문제가 있습니까?!
사유: