bitte antworten Sie auf meinen Beitrag.
Ich brauche Ihre Hilfe.
Ich habe versucht, die Pfeile auszudrucken, aber alles ohne Erfolg.
Bitte helfen Sie uns.
Dies sind die Codes unten.
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Green #property indicator_color2 Red extern bool Alerts=TRUE; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { return (0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int deinit() { return (0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- if(Alerts==TRUE) { if(Close[4]>Open[4] && Close[3]>Open[3] && Close[2]>Open[2] && Close[1]<Open[2]) { string SELLSIGNAL="SELLSIGNAL"+(string)Time[1]; if(ObjectFind(0,SELLSIGNAL)!=0) { ObjectCreate(SELLSIGNAL,OBJ_ARROW_DOWN,0,Time[1],Low[1]-(Period()*Point*2)); ObjectSet(SELLSIGNAL,OBJPROP_WIDTH,5); ObjectSet(SELLSIGNAL,OBJPROP_ARROWCODE,242); ObjectSet(SELLSIGNAL,OBJPROP_COLOR,Red); ObjectSetInteger(0,SELLSIGNAL,OBJPROP_ANCHOR,ANCHOR_TOP); } else if(Close[4]<Open[4] && Close[3]<Open[3] && Close[2]<Open[2] && Close[1]>Open[2]) { string BUYSIGNAL="BUYSIGNAL"+(string)Time[1]; if(ObjectFind(0,BUYSIGNAL)!=0) { ObjectCreate(BUYSIGNAL,OBJ_ARROW_UP,0,Time[1],High[1]+(Period()*Point*2)); ObjectSet(BUYSIGNAL,OBJPROP_COLOR,clrBlue); ObjectSet(SELLSIGNAL,OBJPROP_ARROWCODE,241); ObjectSet(BUYSIGNAL,OBJPROP_WIDTH,10); ObjectSetInteger(0,BUYSIGNAL,OBJPROP_ANCHOR,ANCHOR_BOTTOM); } } } } //---- return(0); } //+------------------------------------------------------------------+
Verwenden:
//+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2012, CompanyName | //| http://www.companyname.net | //+------------------------------------------------------------------+ #property indicator_chart_window #property indicator_color1 Green #property indicator_color2 Red extern bool Alerts=TRUE; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { return (0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int deinit() { return (0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //---- if(Alerts==TRUE) { if(Close[4]>Open[4] && Close[3]>Open[3] && Close[2]>Open[2] && Close[1]<Open[2]) { string SELLSIGNAL="SELLSIGNAL"+(string)Time[1]; if(ObjectFind(0,SELLSIGNAL)!=0) { ObjectCreate(SELLSIGNAL,OBJ_ARROW_DOWN,0,Time[1],Low[1]); ObjectSet(SELLSIGNAL,OBJPROP_WIDTH,5); ObjectSet(SELLSIGNAL,OBJPROP_ARROWCODE,242); ObjectSet(SELLSIGNAL,OBJPROP_COLOR,Red); ObjectSetInteger(0,SELLSIGNAL,OBJPROP_ANCHOR,ANCHOR_TOP); } else if(Close[4]<Open[4] && Close[3]<Open[3] && Close[2]<Open[2] && Close[1]>Open[2]) { string BUYSIGNAL="BUYSIGNAL"+(string)Time[1]; if(ObjectFind(0,BUYSIGNAL)!=0) { ObjectCreate(BUYSIGNAL,OBJ_ARROW_UP,0,Time[1],High[1]); ObjectSet(BUYSIGNAL,OBJPROP_COLOR,clrBlue); ObjectSet(SELLSIGNAL,OBJPROP_ARROWCODE,241); ObjectSet(BUYSIGNAL,OBJPROP_WIDTH,10); ObjectSetInteger(0,BUYSIGNAL,OBJPROP_ANCHOR,ANCHOR_BOTTOM); } } } } //---- return(prev_calculated); } //+------------------------------------------------------------------+
Bild:
Vielen Dank, Sir, aber der Verkaufspfeil ist nicht auf der Oberseite der Signalkerze und auch der Kaufpfeil ist nicht Funktion, bitte was kann ich verwenden, um das zu tun.
Vielen Dank.
Let's um: wo sollte ein Pfeil "DOWN" zeichnen? Let's order: wo soll ein Pfeil "UP" gezeichnet werden?
Bitte zeichnen Sie ein Bild.
UND AUCH, SOBALD ES GEZEICHNET PFEIL AUF EINEM ZEITRAHMEN UND U BEWEGEN, UM EINEN ANDEREN ZEITRAHMEN WIRD ES IMMER NOCH ZEIGEN, DEN PFEIL UND ES WIRD AUCH DUPLIZIEREN, DIE NICHT SUPPOST ZU SEIN.
Wie viele Pfeile "UNTEN"?
Wie viele Pfeile "OBEN"?
meine Bedingung ist es, für mindestens 3 aufeinanderfolgende bullish /earish Kerze zu überprüfen und warten Sie auf die bullish /earish Kerze, um es zu verschlingen. und sobald die engulfing Kerze geschlossen unter / über die letzte 1 der aufeinanderfolgenden Kerze, es sollte Pop-up-Alarm und drucken / zeichnen Pfeil.
Vielen Dank für Ihre Antwort Sir, sobald die Bedingung erfüllt ist, wie das beigefügte Bild unten, es sollte Druck / zeichnen Pfeil unter/über dem Signal bar, die engulfing Kerze ist.
IT sehr beeindruckt, Sir, in der Tat bin wirklich dankbar.
aber es eine Sache, die es tut. ich beigefügt 2 Bilder unten, das erste ist 1munite Zeitrahmen. so der Indikator drucken richtige Signal in 1 munite Time Frame und ich wechselte zu 15 munite Time Frame jene Pfeile, die auf 1 munite Zeitrahmen gedruckt wurden erschien auf 15 munite Time Frame, die nicht suppost zu sein, Sir.
Ich werde froh sein, wenn dieses Problem gelöst werden kann.

- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
Wie kann ich den Kauf- und Verkaufspfeil in den folgenden Codes anzeigen lassen? Kann mir jemand helfen?
for (int i = 5; i > 1; i--)
{
if(Close[i] > Open[i]) { COUNT = COUNT + 1; }
else{ ZAEHLUNG = ZAEHLUNG - 1; } }
if (EnableBB==True)
{
if (COUNT == 4 && Close[1] < Open[1])
{ BUYARROW } }
if (EnableBB==True)
{
if (COUNT == -4 && Close[1] > Open[1])
{ SELLARROW}
}