Search the Community
Showing results for tags 'expert advisor'.
-
Hallo Zusammen, ich möchte einen EA erstellen, kann allerdings kein mql5! Ich hoffe ihr könnt mir helfen. Zuerst soll der EA beim Starten eine vertikale Linie ziehen. Das habe ich bereits… Nun soll der Wert der Linie z.B. EUR/USD 1.121850 in einer Variable gespeichert werden. Allerdings weiß ich nicht wie man Variablen anlegt bzw. den Wert dann dort speichert? Vielen Dank vorab //+------------------------------------------------------------------+ //| CKEA.mq5 | //| Copyright 2013, CKEA | //+------------------------------------------------------------------+ #property copyright "Copyright 2013, CKEA" #property link "" #property version "1.00" //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- long cid=ChartID(); double bid=SymbolInfoDouble(Symbol(),SYMBOL_BID); ResetLastError(); if(!ObjectCreate(cid,"test",OBJ_HLINE,0,0,bid) || GetLastError()!=0) Print("Error creating object: ",GetLastError()); else ChartRedraw(cid); //--- return(0); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- } //+------------------------------------------------------------------+
- 15 replies
-
- mql5
- programmieren
-
(and 4 more)
Tagged with: