코딩 도움말 - 페이지 723

 

안녕 Mr.Mladen, 안녕 모두... 내가 올바른 위치에 있었으면 좋겠어 . 도움이 필요해. 이 표시기 수정 하여 색상 선이 하늘색 으로 교차 할 때 색상 마젠타 이 변경되도록 하십시오. : 십자가상승 하면 색상 마젠타 이 녹색 으로, 교차 빨간색 .. 이전 에 감사 합니다 . 내 영어에 대해 죄송합니다 :)
 
bilbao :

안녕하세요 mladen 씨

MTF를 만들어주세요

관심

다음은 다중 시간 프레임 버전입니다.

 
안녕 Mladen, 당신은 과거에 몇 가지 지표를 수정하는 데 도움을 주었고 나는 당신의 노력에 크게 감사합니다. 이 지표에 도움이 되기를 바랍니다. 촛불 시간 표시기이지만 틱과는 별개이며 모니터링할 시간 프레임을 선호하는 선택 항목을 선택할 수 있는 옵션이 있습니다. 이것이 내가 이 지표를 좋아하는 이유입니다. 내가 가진 유일한 문제는 차트에 로드할 때 차트 중간에 나타나서 때때로 가격 양초의 움직임으로 인해 제대로 보기 어렵습니다. 오른쪽 차트의 어느 모서리 에나 표시되도록 옵션을 갖도록 수정할 수 있기를 바랍니다. 나는 내가 의미하는 바의 그림 삽화와 함께 표시기를 첨부합니다.
파일:
 
baraozemo :

안녕하세요 mladen님

여기 sample-ea가 있습니다.

믈라덴,
후행 단계매수 또는 매도 작업에 대해 동일한 방식으로 작동합니다...
후행 단계를 사용하여 "정지 손실"을 이동합니다.

예: (구매 예)


EA Input:
=========
TakeProfit      =22000 (22 points)
Trailing_Distance =4000 (4 points)
Trailing_Step      =2000 (2 points)
StopLoss         =8000 (8 points)

 

====operation entry
buy at price   3440.00  
stoploss      =3432.00  (entrance -8 points)
takeprofit    =3462.00 (entrance +22 points)
-------

price reached       =3444.00    (=4 points)
trailing distance reached    (4000=4 points) 
then move stoploss using 'step'  (2000= 2 points)
new stoploss now is =3434.00    (=+2 points from step)

------- 

price reached       =3448.00    (=+4 points)
trailing distance reached  (4000=4 points) 
then move stoploss using 'step'  (2000= 2 points)
new stoploss now is =3436.00     ( = +2 points from step)

-------

price grown up to   =3452.00    (=+4 points)
trailing distance reached  (4000=4 points) 
then move stoploss using 'step'  (2000= 2 points)
new stoploss now is =3438.00    (= +2 points from step)

-------

 

when is a "buy" operation , step (increase the stoploss price)
when is a "sell" operation, step (decrease the stoploss price)

 

안녕하세요 mladen 씨:

유용한 지표 의 간단한 히스토그램을 만들 수 있습니까?

관심

파일:
 
mladen :

다음은 다중 시간 프레임 버전입니다.

정말 감사합니다 선생님
 

친애하는 믈라덴,

SmStrengthRange 09_v2.4 표시기를 사용하기 위한 코드 EA를 확인 하려면 귀하의 도움이 필요합니다.

페어 크로스 후 EURUSD 외
(EUR 교차에서 USD 상단으로) 첫 번째 분기 녹색 점이 나타남 = BUY
(EUR 교차에서 USD 하락) 첫 번째 분기 빨간색 점이 나타남 = SELL

방금 내 자신을 시도했지만 작동하지 않습니다
이 코드를 확인하고 수정하십시오

// 표시기 호출

더블 USD=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift);
더블 USD1=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift+1);
이중 EUR=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift);
이중 EUR1=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift+1);
더블 GBP=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift);
더블 GBP1=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift+1);
더블 CHF=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift);
더블 CHF1=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift+1);
더블 JPY=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift);
더블 JPY1=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift+1);
더블 AUD=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift);
더블 AUD1=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift+1);
더블 CAD=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift);
더블 CAD1=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift+1);
이중 NZD=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift);
이중 NZD1=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift+1);

이중 녹색=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift);
이중 greena=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift+1);
이중 빨간색=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift);
이중 reda=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift+1);

// 진입 신호

if ((green!=EMPTY_VALUE && !(greena!=EMPTY_VALUE && EUR>USD)) signal1=1;

if((빨간색!=EMPTY_VALUE && !(빨간색!=EMPTY_VALUE && EUR<USD)) signal2=2;


이 코드를 보고 수정하는 데 도움을 요청하십시오.


감사합니다

파일:
 
basheer1966 :

친애하는 믈라덴,

SmStrengthRange 09_v2.4 표시기를 사용하기 위한 코드 EA를 확인하려면 귀하의 도움이 필요합니다.

페어 크로스 후 EURUSD 외
(EUR 교차에서 USD 상단으로) 첫 번째 분기 녹색 점이 나타남 = BUY
(EUR 교차에서 USD 하락) 첫 번째 분기 빨간색 점이 나타남 = SELL

방금 내 자신을 시도했지만 작동하지 않습니다
이 코드를 확인하고 수정하십시오

// 표시기 호출

더블 USD=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift);
더블 USD1=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift+1);
이중 EUR=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift);
이중 EUR1=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift+1);
더블 GBP=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift);
더블 GBP1=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift+1);
더블 CHF=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift);
더블 CHF1=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift+1);
더블 JPY=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift);
더블 JPY1=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift+1);
더블 AUD=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift);
더블 AUD1=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift+1);
더블 CAD=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift);
더블 CAD1=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift+1);
이중 NZD=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift);
이중 NZD1=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift+1);

이중 녹색=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift);
이중 greena=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift+1);
이중 빨간색=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift);
이중 reda=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift+1);

// 진입 신호

if ((green!=EMPTY_VALUE && !(greena!=EMPTY_VALUE && EUR>USD)) signal1=1;

if((빨간색!=EMPTY_VALUE && !(빨간색!=EMPTY_VALUE && EUR<USD)) signal2=2;


이 코드를 보고 수정하는 데 도움을 요청하십시오.


감사합니다

당신은 십자가를 확인 하지 않습니다. 일부 값이 다른 값보다 크거나 작은지 확인하는 중입니다.

십자가의 경우 2개의 버퍼 중 2개 이상의 값을 확인해야 합니다(확인할 값 4개).

 

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

켜거나 끌 수 있는 bool RSI 필터를 구현하고 싶습니다.

이 루틴을 최적화할 수 있습니까/최적화해야 합니까?

extern bool RSI_on = true ;

   if (RSI_on= true )

     {
       if (trendNow!=trendPrev)
        {
         if (trendNow> 0 && (NLD1>NLD2) && RSIfilter> 51 )
           {
            OpenBuy_  = true ;
            CloseSell_= true ;
           }
         else
         if (trendPrev> 0 && (NLD1<NLD2) && RSIfilter< 49 )
           {
            OpenSell_= true ;
            CloseBuy_= true ;
           }
        }
     }
else
     if (trendNow!=trendPrev)
     {
       if (trendNow> 0 && (NLD1>NLD2))
        {
         OpenBuy_  = true ;
         CloseSell_= true ;
        }
       else
       if (trendPrev> 0 && (NLD1<NLD2))
        {
         OpenSell_= true ;
         CloseBuy_= true ;
        }
     }
 
tfi_markets :

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

켜거나 끌 수 있는 bool RSI 필터를 구현하고 싶습니다.

이 루틴을 최적화할 수 있습니까/최적화해야 합니까?

extern bool RSI_on = true ;

   if (RSI_on= true )

     {
       if (trendNow!=trendPrev)
        {
         if (trendNow> 0 && (NLD1>NLD2) && RSIfilter> 51 )
           {
            OpenBuy_  = true ;
            CloseSell_= true ;
           }
         else
         if (trendPrev> 0 && (NLD1<NLD2) && RSIfilter< 49 )
           {
            OpenSell_= true ;
            CloseBuy_= true ;
           }
        }
     }
else
     if (trendNow!=trendPrev)
     {
       if (trendNow> 0 && (NLD1>NLD2))
        {
         OpenBuy_  = true ;
         CloseSell_= true ;
        }
       else
       if (trendPrev> 0 && (NLD1<NLD2))
        {
         OpenSell_= true ;
         CloseBuy_= true ;
        }
     }

다음과 같이 시도하십시오(이것은 상위 코드를 대체하는 전체 코드여야 함).

       if (trendNow!=trendPrev)
         if (trendNow> 0 && (NLD1>NLD2) && (!RSI_on || (RSI_on && RSIfilter> 51 )))
           {
            OpenBuy_  = true ;
            CloseSell_= true ;
           }
         else
         if (trendPrev> 0 && (NLD1<NLD2) && (!RSI_on || (RSI_on && RSIfilter< 49 )))
           {
            OpenSell_= true ;
            CloseBuy_= true ;
           }