코딩 도움말 - 페이지 784

 

이 표시기가 정말 마음에 들지만 약간 다시 칠해졌습니다. 수정하는 데 도움이 필요합니다.

이 지표를 사용하여 이 결과(https://www.forexfactory.com/siglot/199244)를 수동으로 거래 하여(매우 스트레스가 많지만) 내 시스템과 이를 자동화할 수 있게 되면 기꺼이 공유할 수 있었습니다. 다시 칠하지 않고 시스템에 표시기


 //+------------------------------------------------------------------+
//|                                                  Entry Point.mq4 |
//|                                                                  |
//|                                                                  |
//| Volatility quality index originaly developed by                  |
//| Thomas Stridsman (August 2002 Active Trader Magazine)            |
//|                                                                  |
//| Price pre-smoothing and filter added by raff1410                 |
//+------------------------------------------------------------------+
#property copyright "mladen"
#property link        "mladenfx@gmail.com"

#property indicator_separate_window
#property indicator_minimum 0.0
#property indicator_maximum 100.0
#property indicator_buffers 5
#property indicator_color1 CLR_NONE
#property indicator_color2 CLR_NONE
#property indicator_color3 Lime
#property indicator_color4 Red
#property indicator_color5 CLR_NONE

extern int KPeriod = 21 ;
extern int DPeriod = 12 ;
extern int Slowing = 3 ;
extern int method = 0 ;
extern int price = 0 ;
extern string WPR = "" ;
extern int ExtWPRPeriod = 14 ;
extern double ZoneHighPer = 70.0 ;
extern double ZoneLowPer = 30.0 ;
extern bool Modeone = TRUE;
extern bool PlaySoundBuy = FALSE;
extern bool PlaySoundSell = FALSE;
int Grima = 0 ;
extern string FileSoundBuy = "analyze buy" ;
extern string FileSoundSell = "analyze sell" ;
double stasi[];
double Regio[];
double Ray[];
double Dalio[];
double Mekno[];
int Tekno = 0 ;
int Dupon = 0 ;
int Travel = 0 ;
int DTra = 0 ;
int AsTra = 0 ;
int xTra = 0 ;

int init() {

   IndicatorBuffers( 5 );
   SetIndexStyle( 0 , DRAW_LINE , EMPTY, 0 );
   SetIndexBuffer ( 0 , stasi);
   SetIndexStyle( 1 , DRAW_LINE , EMPTY, 0 );
   SetIndexBuffer ( 1 , Regio);
   SetIndexStyle( 2 , DRAW_HISTOGRAM , STYLE_SOLID , 5 );
   SetIndexArrow( 2 , 244 );
   SetIndexBuffer ( 2 , Ray);
   SetIndexStyle( 3 , DRAW_HISTOGRAM , STYLE_SOLID , 5 );
   SetIndexBuffer ( 3 , Dalio);
   SetIndexArrow( 3 , 244 );
   SetIndexStyle( 4 , DRAW_LINE , EMPTY, 0 );
   SetIndexBuffer ( 4 , Mekno);
   Tekno = KPeriod + Slowing;
   Dupon = Tekno + DPeriod;
   SetIndexDrawBegin( 0 , Tekno);
   SetIndexDrawBegin( 1 , Dupon);
   SetIndexDrawBegin( 4 , ExtWPRPeriod);
   SetIndexEmptyValue( 2 , 0 );
   SetIndexEmptyValue( 3 , 0 );
   return ( 0 );
}

int start() {
   double priceField;
   double highCal;
   double lowCal;
   double moov;
   double morz;
   double ore;
   double larzo;
   int shaft;
   int indiCount = IndicatorCounted();
   if ( Bars <= Dupon) return ( 0 );
   if (indiCount < 1 ) {
       for ( int iterat0 = 1 ; iterat0 <= Tekno; iterat0++) stasi[ Bars - iterat0] = 0 ;
       for (iterat0 = 1 ; iterat0 <= Dupon; iterat0++) Regio[ Bars - iterat0] = 0 ;
   }
   if (indiCount > 0 ) indiCount--;
   int iterat1 = Bars - indiCount;
   for (iterat0 = 0 ; iterat0 < iterat1; iterat0++) {
      stasi[iterat0] = iStochastic ( NULL , 0 , KPeriod, DPeriod, Slowing, method, priceField, MODE_MAIN, iterat0);
      Regio[iterat0] = iStochastic ( NULL , 0 , 21 , DPeriod, Slowing, method, priceField, MODE_SIGNAL, iterat0);
   }
   iterat0 = Bars - ExtWPRPeriod - 1 ;
   if (indiCount > ExtWPRPeriod) iterat0 = Bars - indiCount - 1 ;
   while (iterat0 >= 0 ) {
      highCal = High[ iHighest ( NULL , 0 , MODE_HIGH , ExtWPRPeriod, iterat0)];
      lowCal = Low[ iLowest ( NULL , 0 , MODE_LOW , ExtWPRPeriod, iterat0)];
       if (!Bhat(highCal - lowCal, 0.0 )) Mekno[iterat0] = (highCal - Close[iterat0]) / (- 0.01 ) / (highCal - lowCal) + 100.0 ;
      iterat0--;
   }
   if (indiCount > 0 ) indiCount--;
   iterat1 = Bars - indiCount;
   for (iterat0 = iterat1 - 1 ; iterat0 >= 0 ; iterat0--) {
      moov = Regio[iterat0];
      morz = Regio[iterat0 + 1 ];
      ore = stasi[iterat0];
      larzo = stasi[iterat0 + 1 ];
       if (ore > moov && larzo < morz && larzo < ZoneLowPer && morz < ZoneLowPer) {
         Ray[iterat0] = 100 ;
         shaft = iBarShift ( NULL , 0 , DTra);
         if (Modeone && shaft != iterat0 && xTra == 1 ) Ray[shaft] = 0 ;
         DTra = Time[iterat0];
         xTra = 1 ;
      } else Ray[iterat0] = 0 ;
       if (ore < moov && larzo > morz && larzo > ZoneHighPer && morz > ZoneHighPer) {
         Dalio[iterat0] = 100 ;
         shaft = iBarShift ( NULL , 0 , AsTra);
         if (Modeone && shaft != iterat0 && xTra == - 1 ) Dalio[shaft] = 0 ;
         AsTra = Time[iterat0];
         xTra = - 1 ;
      } else Dalio[iterat0] = 0 ;
   }
   if (PlaySoundBuy && Ray[Grima] > 0.0 ) {
       if (Travel != Time[Grima]) PlaySound (FileSoundBuy);
      Travel = Time[Grima];
   }
   if (PlaySoundSell && Dalio[Grima] > 0.0 ) {
       if (Travel != Time[Grima]) PlaySound (FileSoundSell);
      Travel = Time[Grima];
   }
   return ( 0 );
}

bool Bhat( double Atat0, double Atat1) {
   bool Modenine = NormalizeDouble (Atat0 - Atat1, 8 ) == 0.0 ;
   return (Modenine);
}
 
Mayowa Daniel Sonaike :


2/3/4포스팅 하지마세요!

귀하의 중복 게시물을 삭제했습니다.

 

안녕하세요. 차트에 화살표가 나타날 때 매수 및 매도 주문 을 할 수 있도록 도와줄 사람이 있습니까? 나는 WADDAH atr 폭발 표시기의 화살표를 사용하고 있습니다. 어떤 도움도 좋을 것입니다. 감사해요

<ex4 파일 삭제됨>

 
안녕하세요, 당신이 나를 도울 수 있습니다. 내 차트 템플릿에 디자인을 추가하고 첨부된 이미지처럼 표시하는 방법과 특정 금액에 도달하거나 계정 잔액 이 x 금액에 도달할 때 거래를 중지하는 것과 같은 임계값을 어떻게 추가할 수 있습니까? 첨부된 것은 내 코드입니다. 자유롭게 추가하고 수정하세요..
파일:
Capture.JPG  128 kb
 
Eustorgio Trentino :
안녕하세요, 당신이 나를 도울 수 있습니다. 내 차트 템플릿에 디자인을 추가하고 첨부된 이미지처럼 표시하는 방법과 특정 금액에 도달하거나 계정 잔액 이 x 금액에 도달할 때 거래를 중지하는 것과 같은 임계값을 어떻게 추가할 수 있습니까? 첨부된 것은 내 코드입니다. 자유롭게 추가하고 수정하세요..

더블/트리플 포스팅 하지마세요!!

나는 당신의 중복을 삭제했습니다.

 
도움이 필요합니다. 백 테스트 가 가능합니까?   2020년 1월 - 2020년 12월과 같은 전년도? MT4를 사용 중이고 이전에 백 테스트 하면 작동하지 않기 때문에
 
Eustorgio Trentino :
도움이 필요합니다. 백 테스트 가 가능합니까?   2020년 1월 - 2020년 12월과 같은 전년도? MT4를 사용 중이고 이전에 백 테스트 하면 작동하지 않기 때문에

기호에 대한 충분한 기록 데이터가 있는 한 물론 가능합니다.

 
안녕하세요 여러분 안녕하십니까... 힘든시기에 건강하시길 바랍니다

JMA Jurik 이동 평균 옵션 추가 가능성이 있습니까 ??

대가를 바라지 않고 도와줄 수 있는 착한 마음을 가진 좋은 프로그래머 감사합니다 ... 미리 감사드립니다 , ... 모두에게 인사를... 감사합니다

.. 인사
파일:
 
이 예제에 대해 모두 감사합니다.
 
좋아요