Indonesian Member - page 165

1225113
1158
1225113  

mbak Yohana gimana caranya menambahkan simple Alert di indicator ini ?.....

int start()

  {

    int limit;

    int counted_bars;

    //double prev, current, old;

    double Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0;

    double price;

    double MinL=0;

    double MaxH=0;

   

    counted_bars = IndicatorCounted();

    if ( counted_bars > 0 ) counted_bars--;

    limit = Bars - counted_bars;


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

      {

        MaxH = High[iHighest(NULL,0,MODE_CLOSE,period,i)];                       

        MinL = Low[iLowest(NULL,0,MODE_CLOSE,period,i)];                          

        price = (Open[i]+ Close[i])/2;                                             


        if(MaxH-MinL == 0) Value = 0.33*2*(0-0.5) + 0.67*Value1;

        else Value = 1.369999*2*((price-MaxH)/(MinL-MaxH)-0.5) + 1.3899999*Value1;


        Value=MathMin(MathMax(Value,-0.999),0.999);

 

        if(1-Value == 0) ExtBuffer0[i]=0.5+0.5*Fish1;

        else ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;


        Value1=Value;

        Fish1=ExtBuffer0[i];

      }

    int counted_bars2 = IndicatorCounted();

    if ( counted_bars2 > 0 ) counted_bars2--;

    int limit2 = Bars - counted_bars2;

    for ( int j = limit2; j >= 0; j-- )

      {

        if ( Arrow )

          {

            if ( ExtBuffer0[j+SIGNAL_BAR+1] > 0.0  && ExtBuffer0[j+SIGNAL_BAR] < 0.0 ) manageArr(j+1, clArrowBuy,  233, false);

            if ( ExtBuffer0[j+SIGNAL_BAR+1] < 0.0  && ExtBuffer0[j+SIGNAL_BAR] > 0.0 ) manageArr(j+1, clArrowSell, 234, true );

          }

      }

    return(0);

  }

// -------------------------------------------------------------------------------------------------------------

void manageArr(int j, color clr, int theCode, bool up)   

  {

    string objName = PREFIX + Time[j];

    double gap  = 3.0*iATR(NULL,0,20,j)/4.0;

    

    ObjectCreate(objName, OBJ_ARROW,0,Time[j],0);

    ObjectSet   (objName, OBJPROP_COLOR, clr);  

    ObjectSet   (objName, OBJPROP_ARROWCODE,theCode);

    ObjectSet   (objName, OBJPROP_WIDTH,ArrowSize);  

    if ( up )

      ObjectSet(objName,OBJPROP_PRICE1,Open[j]+gap);

    else  

      ObjectSet(objName,OBJPROP_PRICE1,Close[j] -gap);

  }

// -------------------------------------------------------------------------------------------------------------

 Trim s sebelumnya

Umar Ismail
12901
Umar Ismail  
Yohana Parmi:

pak Umar apa kabar,
wah sy seneng master coder nya hadir \ (•◡•) / 

ini sy mau curhat .. ^̮^)
sudah lama sy ingin indicator menampilkan isi data dari News terminal

tapi sampai hari ini function nya belum ketemu .. ಥ_ಥ
bila sudah menemukan itu, please help info ya pak ..
sy penasaran bener soalnya sudah lama banget deh.

Trims

ada di artikel (klo gak salah) tapi versi mq5

njenengan yang ahli...
boleh lah entar di convert ke mq4
:D

Yohana Parmi
4260
Yohana Parmi  
Umar Ismail:

ada di artikel (klo gak salah) tapi versi mq5

njenengan yang ahli...
boleh lah entar di convert ke mq4
:D


oh sdh ada di mq5 ya pak
coba nti sy cari lagi :))

krn yg bisa selama ini klo indi baca news dr website (xml)

Umar Ismail
12901
Umar Ismail  
Umar Ismail:

ada di artikel (klo gak salah) tapi versi mq5

njenengan yang ahli...
boleh lah entar di convert ke mq4
:D

https://www.mql5.com/en/articles/1589
Building an Interactive Application to Display RSS Feeds in MetaTrader 5
Building an Interactive Application to Display RSS Feeds in MetaTrader 5
  • 2015.02.10
  • Francis Dube
  • www.mql5.com
In this article we look at the possibility of creating an application for the display of RSS feeds. The article will show how aspects of the Standard Library can be used to create interactive programs for MetaTrader 5.
Umar Ismail
12901
Umar Ismail  
1225113:

mbak Yohana gimana caranya menambahkan simple Alert di indicator ini ?.....

int start()

  {

    int limit;

    int counted_bars;

    //double prev, current, old;

    double Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0;

    double price;

    double MinL=0;

    double MaxH=0;

   

    counted_bars = IndicatorCounted();

    if ( counted_bars > 0 ) counted_bars--;

    limit = Bars - counted_bars;


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

      {

        MaxH = High[iHighest(NULL,0,MODE_CLOSE,period,i)];                       

        MinL = Low[iLowest(NULL,0,MODE_CLOSE,period,i)];                          

        price = (Open[i]+ Close[i])/2;                                             


        if(MaxH-MinL == 0) Value = 0.33*2*(0-0.5) + 0.67*Value1;

        else Value = 1.369999*2*((price-MaxH)/(MinL-MaxH)-0.5) + 1.3899999*Value1;


        Value=MathMin(MathMax(Value,-0.999),0.999);

 

        if(1-Value == 0) ExtBuffer0[i]=0.5+0.5*Fish1;

        else ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;


        Value1=Value;

        Fish1=ExtBuffer0[i];

      }

    int counted_bars2 = IndicatorCounted();

    if ( counted_bars2 > 0 ) counted_bars2--;

    int limit2 = Bars - counted_bars2;

    for ( int j = limit2; j >= 0; j-- )

      {

        if ( Arrow )

          {

            if ( ExtBuffer0[j+SIGNAL_BAR+1] > 0.0  && ExtBuffer0[j+SIGNAL_BAR] < 0.0 ) manageArr(j+1, clArrowBuy,  233, false);

            if ( ExtBuffer0[j+SIGNAL_BAR+1] < 0.0  && ExtBuffer0[j+SIGNAL_BAR] > 0.0 ) manageArr(j+1, clArrowSell, 234, true );

          }

      }

    return(0);

  }

// -------------------------------------------------------------------------------------------------------------

void manageArr(int j, color clr, int theCode, bool up)   

  {

    string objName = PREFIX + Time[j];

    double gap  = 3.0*iATR(NULL,0,20,j)/4.0;

    

    ObjectCreate(objName, OBJ_ARROW,0,Time[j],0);

    ObjectSet   (objName, OBJPROP_COLOR, clr);  

    ObjectSet   (objName, OBJPROP_ARROWCODE,theCode);

    ObjectSet   (objName, OBJPROP_WIDTH,ArrowSize);  

    if ( up )

      ObjectSet(objName,OBJPROP_PRICE1,Open[j]+gap);

    else  

      ObjectSet(objName,OBJPROP_PRICE1,Close[j] -gap);

  }

// -------------------------------------------------------------------------------------------------------------

 Trim s sebelumnya

Umar Ismail
12901
Umar Ismail  
void manageArr(int j, color clr, int theCode, bool up)   

  {
if(j==1)Alert("sekarep ",theCode==233?"Buy":"Sell");

    string objName = PREFIX + Time[j];

    double gap  = 3.0*iATR(NULL,0,20,j)/4.0;

    

    ObjectCreate(objName, OBJ_ARROW,0,Time[j],0);

    ObjectSet   (objName, OBJPROP_COLOR, clr);  

    ObjectSet   (objName, OBJPROP_ARROWCODE,theCode);

    ObjectSet   (objName, OBJPROP_WIDTH,ArrowSize);  

    if ( up )

      ObjectSet(objName,OBJPROP_PRICE1,Open[j]+gap);

    else  

      ObjectSet(objName,OBJPROP_PRICE1,Close[j] -gap);

  }
Yohana Parmi
4260
Yohana Parmi  
1225113:

mbak Yohana gimana caranya menambahkan simple Alert di indicator ini ?.....

 Trim s sebelumnya

oh ya pak
(dan kpd teman2 yang lain)
kemarin melalui pm sy sudah ditegur/diingatkan oleh moderator,
yaitu saat membantu member lain tidak boleh menulis code secara langsung,
(bisa mengganggu pendapatan programmer lain di freelance)
krn sudah disediakan oleh management di menu freelance, termasuk bisa dicari2 di code base.
kalau sekedar logic dan penempatan algorithm mungkin masih boleh.

jadi untuk simple alertnya ambil dan sisipkan dari contoh sy kmrn di page sebelumnya ya pak.
atau di forum2 lainnya sy jg sering membantu mereka, dan ada tentang alert jg.

Trims (^̮^)

Achmad Wijaya
808
Achmad Wijaya  
1225113:
hehe.... rezeki sudah diatur 24 jam  sehari sejak dunia diciptakan ... kitalah yang membuka dan yang menutupnya... kalau Lose katanya bukan rezekinya... lose lagi dan lagi bisa-bisa menyalahkan Tuhan.... wakaka
terlalu sempit ruang lingkupnya bicara masalah rejeki, kalau hanya antara lose dan profit.
1225113
1158
1225113  

Umar Ismail dan  Yohana Parmi....


terima kasih..

0 error(s), 0 warning(s), compile time: 385 msec 1 1

senin saya test,,, mudah mudahan  berbunyi  kikuk kikuk..... hehe

1225113
1158
1225113  
Achmad Wijaya:
terlalu sempit ruang lingkupnya bicara masalah rejeki, kalau hanya antara lose dan profit.

Ente benar Broo... karena bicaranya didunia Trading (sempit)... coba aja ente search pembicaraan yang lalu lalu... bahasanya selalu begitu.. sempit ...antara lose dan profit.