코딩 도움말 - 페이지 709

 
tfi_markets :
안녕하세요 프로코더 여러분,

NonLagMA_v7.7 Indicator를 신호 트리거 또는 거래 신호 필터로 사용하고 싶습니다.
표시기는 0 또는 1084 신호를 제공합니다.

예를 들어:
// 업 시그널
// 비지연 = 1084
// 비지연 Dn = 0

// Dn 신호
// 비지연 = 0
// 비지연 Dn = 1084

누군가 제 "의사" 코드를 좀 봐주시겠습니까? 효과가 있을 것 같은데,
그러나 아마도 더 나은 것을 위해 최적화 될 수 있습니다. 미리 감사합니다!

extern string   NLMA_inputs      = "+--- NonLagMA Settings ---+" ;
extern int      Price            = 0 ;   //Apply to Price(0-Close;1-Open;2-High;3-Low;4-Median price;5-Typical price;6-Weighted Close)
extern int      MALength         = 9 ;   // Period of NonLagMA
extern int      Displace         = 0 ;   //DispLace or Shift
extern double   PctFilter        = 0 ;   //Dynamic filter in decimal
extern int      Color            = 1 ;   //Switch of Color mode (1-color)  
extern int      ColorBarBack     = 1 ;   //Bar back for color mode
extern double   Deviation        = 0 ;   //Up/down deviation        
extern int      AlertMode        = 1 ;   //Sound Alert switch (0-off,1-on)
extern int      WarningMode      = 0 ;   //Sound Warning switch(0-off,1-on)
extern int      WarningTicks     = 0 ;
extern bool     SendAlertEmail   = false ;

extern double   BarShift                 = 1 ;

double nLagMA;
nLagMA= iCustom ( Symbol (), 0 , "NonLagMA_v7.7" , Price, Length, Displace, PctFilter, Color, ColorBarBack, Deviation, AlertMode, WarningMode, WarningTicks, SendAlertEmail);
  
double nLagMA1;
nLagMA1= iCustom ( Symbol (), 0 , "NonLagMA_v7.7" , Price, Length, Displace, PctFilter, Color, ColorBarBack, Deviation, AlertMode, WarningMode, WarningTicks, SendAlertEmail, BarShift);


// Signal Cross
   if (nLagMA == 0 && nLagMA1 > 1000 ) Order=SIGNAL_BUY;
   if (nLagMA1 == 0 && nLagMA > 1000 ) Order=SIGNAL_SELL;    

// Signal Filter
   if (nLagMA1 > 1000 ) Filter_BUY = True ;     // Maybe used as SellExit Signal
   if (nLagMA == 0 )    Filter_SELL = True ;   // Maybe used as BuyExit Signal


표시기 자체를 게시하여 확인할 수 있습니까?
 

안녕 믈라덴

이 게시물에 첨부된 표시기를 찾으십시오.

미리 감사합니다!

파일:
 
tfi_markets :

안녕 믈라덴

이 게시물에 첨부된 표시기를 찾으십시오.

미리 감사합니다!

이를 위해 "추세"버퍼를 사용하는 것이 가장 좋습니다.

이 같은 :

double trendNow   = iCustom ( NULL , 0 , "NonLagMA_v7.7" , Price, Length, Displace, PctFilter, Color, ColorBarBack, Deviation, AlertMode, WarningMode, WarningTicks, SendAlertEmail, 3 , BarShift);
double trendPrev  = iCustom ( NULL , 0 , "NonLagMA_v7.7" , Price, Length, Displace, PctFilter, Color, ColorBarBack, Deviation, AlertMode, WarningMode, WarningTicks, SendAlertEmail, 3 , BarShift+ 1 );  
if (trendNow!=trendPrev)
{
   if (trendNow> 0 )
         Order=SIGNAL_BUY;
   else   Order=SIGNAL_SELL;
}
 
mladen :

이를 위해 "추세"버퍼를 사용하는 것이 가장 좋습니다.

이 같은 :

double trendNow   = iCustom ( NULL , 0 , "NonLagMA_v7.7" , Price, Length, Displace, PctFilter, Color, ColorBarBack, Deviation, AlertMode, WarningMode, WarningTicks, SendAlertEmail, 3 , BarShift);
double trendPrev  = iCustom ( NULL , 0 , "NonLagMA_v7.7" , Price, Length, Displace, PctFilter, Color, ColorBarBack, Deviation, AlertMode, WarningMode, WarningTicks, SendAlertEmail, 3 , BarShift+ 1 );  
if (trendNow!=trendPrev)
{
   if (trendNow> 0 )
         Order=SIGNAL_BUY;
   else   Order=SIGNAL_SELL;
}

안녕 믈라덴

당신의 조언을 주셔서 대단히 감사합니다!

이와 같은 다른 지표에서 더 많은 매개변수를 입력해도 작동합니까?

if (trendNow!=trendPrev)
{
   if (totalOrdersLong<MaxLongTrades  && trendNow> 0 && (NLD1>NLD2) && RSIfilter> 55 ) Order=SIGNAL_BUY;
   if (totalOrdersShort<MaxShortTrades && trendPrev> 0 && (NLD1<NLD2) && RSIfilter< 45 ) Order=SIGNAL_SELL;
}

\도마

 
tfi_markets :

안녕 믈라덴

당신의 조언을 주셔서 대단히 감사합니다!

이와 같은 다른 지표에서 더 많은 매개변수를 입력해도 작동합니까?

if (trendNow!=trendPrev)
{
   if (totalOrdersLong<MaxLongTrades  && trendNow> 0 && (NLD1>NLD2) && RSIfilter> 55 ) Order=SIGNAL_BUY;
   if (totalOrdersShort<MaxShortTrades && trendPrev> 0 && (NLD1<NLD2) && RSIfilter< 45 ) Order=SIGNAL_SELL;
}

\도마

예, 원하는 만큼 조건을 추가할 수 있습니다.

그러나 그런 식으로 작성된 코드의 경우 "기본" 조건은 nonlag ma가 추세를 변경한 다음 나머지 모든 조건이 확인 되는 경우입니다. 그것이 원하는 것이라면 해당 코드 블록에 원하는 만큼 많은 조건을 넣을 수 있습니다.

 
mladen :

예, 원하는 만큼 조건을 추가할 수 있습니다.

그러나 그렇게 작성된 코드의 경우 "기본" 조건은 nonlag ma가 추세를 변경한 다음 나머지 모든 조건이 확인되는 경우입니다. 그것이 원하는 것이라면 해당 코드 블록에 원하는 만큼 많은 조건을 넣을 수 있습니다.

멋진 감사합니다. 좋은 저녁 되세요.
 

안녕하세요 mladen 씨:

히스토그램에 MTF 수직선을 그리는 지표를 도입하거나 만들 수 있습니까?

안부 인사드립니다

 
bilbao :

안녕하세요 mladen 씨:

히스토그램에 MTF 수직선을 그리는 지표를 도입하거나 만들 수 있습니까?

안부 인사드립니다

특정 시간에 그려진 단순한 수직선 을 의미합니까?
 
mladen :
특정 시간에 그려진 단순한 수직선을 의미합니까?

예, 히스토그램에서 양초를 결정하기 위해 히스토그램에 그릴 간단한 수직선이 필요합니다.

이 그림과 비슷하지만 별도의 차트 또는 하위 차트에서 {히스토그램으로 드래그할 수 있음} 세로선을 표시합니다.

 
bilbao :

예, 히스토그램에서 양초를 결정하기 위해 히스토그램에 그릴 간단한 수직선이 필요합니다.

이 그림과 비슷하지만 별도의 차트 또는 하위 차트에서 {히스토그램으로 드래그할 수 있음} 세로선을 표시합니다.

여기 있습니다. 표시하려는 하위 창으로 드래그하고 시간 프레임을 선택하기만 하면 됩니다.


파일: