Wie programmiert man? - Seite 216

 

Entschuldigung, ich habe vergessen, die Betreffzeile zu ändern.

Sie sollte lauten: "Originale S/L aus geänderter Bestellung abrufen".

Vielen Dank!

Chris

 

Coder Combo Filter bitte

Hallo zusammen,

Jeder kann Coder den Indikator für mq4, das ist Combo Bar Farbfilter Multi Paare bitte.

EURUSD, "EUR/USD"

EURUSD,GBPUSD,AUDUSD,NZDUSD,~USDJPY,~USDCHF,~USDCAD,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

GBPUSD, "GBP/USD"

EURUSD,GBPUSD,AUDUSD,NZDUSD,~USDJPY,~USDCHF,~USDCAD,~EURGBP,GBPAUD,GBPNZD,GBPJPY,GBPCHF,GBPCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

AUDUSD, "AUD/USD"

EURUSD,GBPUSD,AUDUSD,NZDUSD,~USDJPY,~USDCHF,~USDCAD,~EURAUD,~GBPAUD,AUDJPY,AUDNZD,AUDCHF,AUDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

NZDUSD, "NZD/USD"

EURUSD,GBPUSD,AUDUSD,NZDUSD,~USDJPY,~USDCHF,~USDCAD,~EURNZD,~GBPNZD,NZDJPY,~AUDNZD,NZDCHF,NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

USDJPY, "USD/JPY"

~EURUSD,~GBPUSD,~AUDUSD,~NZDUSD,USDJPY,USDCHF,USDCAD,EURJPY,GBPJPY,CHFJPY,CADJPY,AUDJPY,NZDJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

USDCHF, "USD/CHF"

~EURUSD,~GBPUSD,~AUDUSD,~NZDUSD,USDJPY,USDCHF,USDCAD,EURCHF,GBPCHF,~CHFJPY,CADCHF,AUDCHF,NZDCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

USDCAD, "USD/CAD"

~EURUSD,~GBPUSD,~AUDUSD,~NZDUSD,USDJPY,USDCHF,USDCAD,EURCAD,GBPCAD,~CADJPY,~CADCHF,AUDCAD,NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

EURJPY, "EUR/JPY"

EURUSD,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD,USDJPY,GBPJPY,AUDJPY,NZDJPY,CADJPY,CHFJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

EURNZD, "EUR/NZD"

EURUSD,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD,~NZDUSD,GBPNZD,AUDNZD,~NZDJPY,~NZDCHF,~NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

GBPJPY, "GBP/JPY"

GBPUSD,~EURGBP,GBPAUD,GBPNZD,GBPJPY,GBPCHF,GBPCAD,USDJPY,EURJPY,AUDJPY,NZDJPY,CADJPY,CHFJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

GBPNZD, "GBP/NZD"

GBPUSD,~EURGBP,GBPAUD,GBPNZD,GBPJPY,GBPCHF,GBPCAD,~NZDUSD,EURNZD,AUDNZD,~NZDJPY,~NZDCHF,~NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

CADJPY, "CAD/JPY"

~USDCAD,~EURCAD,~GBPCAD,~AUDCAD,~NZDCAD,CADCHF,USDJPY,EURJPY,GBPJPY,AUDJPY,NZDJPY,CADJPY,CHFJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

AUDJPY, "AUD/JPY"

AUDUSD,~EURAUD,~GBPAUD,AUDNZD,AUDCHF,AUDCAD,USDJPY,EURJPY,GBPJPY,AUDJPY,NZDJPY,CADJPY,CHFJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

NZDJPY, "NZD/JPY"

NZDUSD,~EURNZD,~GBPNZD,~AUDNZD,NZDCHF,NZDCAD,USDJPY,EURJPY,GBPJPY,AUDJPY,NZDJPY,CADJPY,CHFJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

EURGBP, "EUR/GBP"

EURUSD,~GBPUSD,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD,~GBPAUD,~GBPNZD,~GBPJPY,~GBPCHF,~GBPCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

EURAUD, "EUR/AUD"

EURUSD,~AUDUSD,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD,GBPAUD,~AUDJPY,~AUDNZD,~AUDCHF,~AUDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

EURCHF, "EUR/CHF"

EURUSD,USDCHF,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD,GBPCHF,~CHFJPY,CADCHF,AUDCHF,NZDCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

EURCAD, "EUR/CAD"

EURUSD,USDCAD,EURGBP,EURAUD,EURNZD,EURJPY,EURCHF,EURCAD,GBPCAD,~CADJPY,~CADCHF,AUDCAD,NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

GBPAUD, "GBP/AUD"

GBPUSD,~AUDUSD,~EURGBP,GBPAUD,GBPNZD,GBPJPY,GBPCHF,GBPCAD,EURAUD,~AUDJPY,~AUDNZD,~AUDCHF,~AUDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

GBPCHF, "GBP/CHF"

GBPUSD,USDCHF,~EURGBP,GBPAUD,GBPNZD,GBPJPY,GBPCHF,GBPCAD,EURCHF,~CHFJPY,CADCHF,AUDCHF,NZDCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

GBPCAD, "GBP/CAD"

GBPUSD,USDCAD,~EURGBP,GBPAUD,GBPNZD,GBPJPY,GBPCHF,GBPCAD,EURCAD,~CADJPY,~CADCHF,AUDCAD,NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

CHFJPY, "CHF/JPY"

~USDCHF,USDJPY,~EURCHF,~GBPCHF,~CADCHF,~AUDCHF,~NZDCHF,EURJPY,GBPJPY,CHFJPY,CADJPY,AUDJPY,NZDJPY

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

CADCHF, "CAD/CHF"

~USDCAD,USDCHF,~EURCAD,~GBPCAD,~AUDCAD,~NZDCAD,CADJPY,EURCHF,GBPCHF,~CHFJPY,CADCHF,AUDCHF,NZDCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

AUDNZD, "AUD/NZD"

AUDUSD,~NZDUSD,~EURAUD,~GBPAUD,AUDNZD,AUDCHF,AUDCAD,AUDJPY,EURNZD,GBPNZD,~NZDJPY,~NZDCHF,~NZDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

AUDCHF, "AUD/CHF"

AUDUSD,USDCHF,~EURAUD,~GBPAUD,AUDNZD,AUDCHF,AUDCAD,AUDJPY,EURCHF,GBPCHF,~CHFJPY,CADCHF,NZDCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

AUDCAD, "AUD/CAD"

AUDUSD,USDCAD,~EURAUD,~GBPAUD,AUDNZD,AUDCHF,AUDCAD,AUDJPY,EURCAD,GBPCAD,~CADJPY,NZDCAD,~CADCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

NZDCAD, "NZD/CAD"

NZDUSD,USDCAD,~EURNZD,~GBPNZD,NZDJPY,~AUDNZD,NZDCHF,NZDCAD,EURCAD,GBPCAD,~CADJPY,~CADCHF,AUDCAD

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

NZDCHF, "NZD/CHF"

NZDUSD,USDCHF,~EURNZD,~GBPNZD,NZDJPY,~AUDNZD,NZDCHF,NZDCAD,EURCHF,GBPCHF,~CHFJPY,CADCHF,AUDCHF

,,,,,,,,,,,,

0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769,0.0769

*USD, "USD"

~EURUSD,~GBPUSD,USDCHF,USDJPY,USDCAD,~AUDUSD,~NZDUSD

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*EUR, "EUR"

EURUSD,EURGBP,EURCHF,EURJPY,EURCAD,EURAUD,EURNZD

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*GBP, "GBP"

GBPUSD,~EURGBP,GBPCHF,GBPJPY,GBPCAD,GBPAUD,GBPNZD

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*CHF, "CHF"

~USDCHF,~EURCHF,~GBPCHF,CHFJPY,~CADCHF,~AUDCHF,~NZDCHF

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*CAD, "CAD"

~USDCAD,~EURCAD,~GBPCAD,CADJPY,CADCHF,~AUDCAD,~NZDCAD

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*JPY, "JPY"

~USDJPY,~EURJPY,~GBPJPY,~CHFJPY,~CADJPY,~AUDJPY,~NZDJPY

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*AUD, "AUD"

AUDUSD,~EURAUD,~GBPAUD,AUDJPY,AUDCAD,AUDCHF,AUDNZD

,,,,,,

.175,.175,.175,.175,.1,.1,.1

*NZD, "NZD"

NZDUSD,~EURNZD,~GBPNZD,NZDJPY,~AUDNZD,NZDCHF,NZDCAD

,,,,,,

.175,.175,.175,.175,.1,.1,.1

 

PlaySound und Warnung

Hallo, gibt es eine Möglichkeit, die PlaySound-Funktion und den Alarm nur einmal laufen zu lassen (Indikator)?... Oder man kann einfach ea Sleep (500) verwenden

Danke

 

Gewinnziel und Stop Loss Indikator oder EA

Hallo,

Ich habe ein Problem auf meinem Indikator, dass ich im Falle des Erreichens Gewinnziel und Stop-Loss festgestellt haben. Wie kann man den Code so ändern, dass der Hinweis nur für eine bestimmte Zeit angezeigt wird?

Zum Beispiel: alle 10 Sekunden

Ich habe es mit der Funktion: Sleep () versucht, leider ohne Erfolg.

Ich danke Ihnen für Ihre Hilfe

//+------------------------------------------------------------------+

//| expert initialization function |

//+------------------------------------------------------------------+

extern bool Percent = true;

extern bool Play_Sound = true;

extern double Risiko = 2.0;

//+------------------------------------------------------------------+

//| expert start function |

//+------------------------------------------------------------------+

int start()

{

//----

if (Prozente == true)

if (Play_Sound == true)

double stop =Kontostand()*(-Risiko)/100;

double Gewinn =Kontostand()*(Risiko)/100;

double floating_profit =AccountProfit();

{

if(StrToDouble(floating_profit) <= stop)

{

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Stopp-Verlust "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

{

if(StrToDouble(floating_profit) >= profit) {

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Gewinn-Ziel "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

}}}}

//----

return(0);

}
 

Gewinnziel und Stop Loss Indikator oder EA

Hallo,

Ich habe ein Problem auf meinem Indikator, dass ich im Falle der Erreichung Gewinnziel und Stop-Loss festgestellt haben. Wie kann man den Code so ändern, dass der Hinweis nur für eine bestimmte Zeit angezeigt wird?

Zum Beispiel: alle 10 Sekunden

Ich habe es mit der Funktion : Sleep () versucht, leider ohne Erfolg.

Vielen Dank für Ihre Hilfe

//| Experten-Initialisierungsfunktion |

//+------------------------------------------------------------------+

extern bool Percent = true;

extern bool Play_Sound = true;

extern double Risiko = 2.0;

//+------------------------------------------------------------------+

//| Expertenstartfunktion |

//+------------------------------------------------------------------+

int start()

{

//----

if (Prozente == true)

if (Play_Sound == true)

double stop =Kontostand()*(-Risiko)/100;

double Gewinn =Kontostand()*(Risiko)/100;

double floating_profit =AccountProfit();

{

if(StrToDouble(floating_profit) <= stop)

{

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Stopp-Verlust "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

{

if(StrToDouble(floating_profit) >= profit) {

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Gewinn-Ziel "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

}}}}

//----

return(0);

}
 

Tonwiedergabe und Alarmfunktion

Hallo,

ich habe ein Problem mit meinem Indikator, das ich beim Erreichen von Gewinnziel und Stop Loss festgestellt habe. Wie kann ich den Code so ändern, dass der Hinweis nur für eine bestimmte Zeit angezeigt wird?

Zum Beispiel: alle 10 Sekunden

Ich habe es mit der Funktion: Sleep () versucht, leider ohne Erfolg.

Vielen Dank für Ihre Hilfe

//+------------------------------------------------------------------+

//| expert initialization function |

//+------------------------------------------------------------------+

extern bool Percent = true;

extern bool Play_Sound = true;

extern double Risiko = 2.0;

//+------------------------------------------------------------------+

//| expert start function |

//+------------------------------------------------------------------+

int start()

{

//----

if (Prozente == true)

if (Play_Sound == true)

double stop =Kontostand()*(-Risiko)/100;

double Gewinn =Kontostand()*(Risiko)/100;

double floating_profit =AccountProfit();

{

if(StrToDouble(floating_profit) <= stop)

{

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Stopp-Verlust "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

{

if(StrToDouble(floating_profit) >= profit) {

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Gewinn-Ziel "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

}}}}

//----

return(0);

}
 

SL und PT Alert EA

Hallo,

Ich habe ein Problem auf meinem EA, dass ich im Falle des Erreichens Gewinnziel und Stop-Loss festgestellt haben. Wie kann man den Code so ändern, dass der Hinweis nur für eine bestimmte Zeit angezeigt wird?

Zum Beispiel: alle 10 Sekunden

Ich habe es mit der Funktion : Sleep () versucht, leider ohne Erfolg.

Ich danke Ihnen für Ihre Hilfe

//+------------------------------------------------------------------+

//| expert initialization function |

//+------------------------------------------------------------------+

extern bool Percent = true;

extern bool Play_Sound = true;

extern double Risiko = 2.0;

//+------------------------------------------------------------------+

//| expert start function |

//+------------------------------------------------------------------+

int start()

{

//----

if (Prozente == true)

if (Play_Sound == true)

double stop =Kontostand()*(-Risiko)/100;

double Gewinn =Kontostand()*(Risiko)/100;

double floating_profit =AccountProfit();

{

if(StrToDouble(floating_profit) <= stop)

{

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Stopp-Verlust "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

{

if(StrToDouble(floating_profit) >= profit) {

if(Play_Sound) PlaySound("alert.wav");

Alert("Warnpreis: Gewinn-Ziel "+Symbol()+" "+Stunde()+": "+Minute()+": "+Sekunden());

}}}}

//----

return(0);

}
 
Dateien:
sb.mq4  7 kb
 

Jede Hilfe mit diesem ein bitte?

Ich verwende einen Pfeil-Indikator in einem EA, so dass, wenn ich den EA aktivieren, ich nicht einen Wert über icustom erhalten, bis der erste Pfeil erscheint

Wie sieht die Schleife aus, um den letzten Pfeilwert im Indikator zu finden?

 

Hallo Leute,

kann jemand diese einfache Idee codieren ..

wenn Kerze schließt über einem gleitenden Durchschnitt... geben einen Alarm ... bisKerze schließt unter dem gleichen gleitenden Durchschnitt .. und auch .. geben einen Alarm