Create

Erstellt ein grafisches Objekt "Fest codierter Pfeil"

bool  Create(
   long      chart_id,     // Chart ID
   string    name,         // Objektname
   int       window,       // Chartfenster
   datetime  time,         // Zeit
   double    price         // Preis
   )

Parameter

chart_id

[in]  Chart ID (0 – der aktuelle Chart).

name

[in]  Der eindeutige Name des Objekts.

window

[in]  Nummer des Chartfensters (0 – das Hauptfenster).

time

[in]  Zeitkoordinate.

price

[in]  Preiskoordinate.

Rückgabewert

Gibt bei Erfolg true zurück, ansonsten false.

Beispiel:

//--- example for CChartObjectArrowCheck::Create     
//--- example for CChartObjectArrowDown::Create     
//--- example for CChartObjectArrowUp::Create     
//--- example for CChartObjectArrowStop::Create      
//--- example for CChartObjectArrowThumbDown::Create      
//--- example for CChartObjectArrowThumbUp::Create      
//--- example for CChartObjectArrowLeftPrice::Create     
//--- example for CChartObjectArrowRightPrice::Create      
#include <ChartObjects\ChartObjectsArrows.mqh>     
//---     
void OnStart()     
  {     
//--- for example, take CChartObjectArrowCheck     
   CChartObjectArrowCheck arrow;     
//--- set object parameters     
   double price=SymbolInfoDouble(Symbol(),SYMBOL_BID);     
   if(!arrow.Create(0,"ArrowCheck",0,TimeCurrent(),price))     
     {     
      //--- arrow create error     
      printf("Arrow create: Error %d!",GetLastError());     
      //---     
      return;     
     }        
//--- use arrow     
//--- . . .     
  }