Fehrler in der Liene - Seite 2

 

input int              AvgPeriod       = 12;        // Averages period  //
input int              hullPeriod      = 12;        // hullPeriod       // 25
input enumAveragesType AvgMethod       = avgHull;   // Averages method
input enPrices         Price           = pr_median; // Price            // pr_hahigh
input int              atrPeriod       = 15;        // ATR period       // 20
input double           atrMultiplier   = 2.00;      // ATR multiplier
input double           atrMultiplierUp = 0.66;      // ATR multiplier UP  // 15
input double           atrMultiplierDn = 0.66;      // ATR multiplier DN  // 15
input double           midPricePeriod  = 2.00;      // midPricePeriod     // 1
input int              avgafpd         = 2.00;
sinput bool alert_on_display=false;//Screen alert
sinput bool alert_on_phone=false;//Mobile push
sinput bool alert_on_pmail=false;//Email

double st[];
double colorBuffer[];
int    totalBars;
datetime alert_time;
//------------------------------------------------------------------
//
//------------------------------------------------------------------
//
//
//
//
//

int OnInit()
{
   SetIndexBuffer(0,st,INDICATOR_DATA);
   SetIndexBuffer(1,colorBuffer);
  for(int id=ObjectsTotal(0,-1,-1); id>=0; id--)
     {
      string names=ObjectName(0,id);
      if(StringSubstr(names,0,4)=="data")
        {
         ObjectDelete(0,names);
        }
     }

   return(0);
  }
int TimeMon(){ MqlDateTime Tm;TimeToStruct(TimeCurrent(),Tm);return(Tm.mon);}
int TimeYear(){ MqlDateTime Tm;TimeToStruct(TimeCurrent(),Tm);return(Tm.year);}
int TimeDay(){ MqlDateTime Tm;TimeToStruct(TimeCurrent(),Tm);return(Tm.day_of_year);}

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

 
adriafpd:

ja er hat nur einen Buffer

SetIndexBuffer(1,colorBuffer);

Dann gibt es im Einstellungsfenster des Indikators (Tab Farben) die Wahl der Farben, nimm dort zwei Mal dieselbe Farbe.
 
adriafpd:
double Up[];
double Dn[];
double Up1[];
double Dn1[];
double Direction[];

Hier sind schonmal fünf Buffer. Du meinst wohl er hat nur einen Plot.
Da fehlen mir außerdem noch die #property_indicator_blabla

Weiß nicht ob das das Problem ist, aber Du brauchst die richtige Bufferzahl und die richtige Plotzahl, sonst kommen komische Kurven raus.
 
ja und wie kann man das lösen