Linee orizzontali - pagina 10

 

Ciao Mladen,

Puoi per favore condividere l'indicatore che contiene quanto segue:

1) due linee orizzontali all'apertura di una giornata di trading

2) Una linea che è il massimo e un'altra che è il minimo delle prime XX candele

3) multi time frame

4) Allarme con suono, popup, push e email sull'attraversamento delle linee.

Grazie.

 
Jea:

Ciao Mladen,

Puoi per favore condividere l'indicatore che contiene quanto segue:

1) due linee orizzontali all'apertura di una giornata di trading

2) Una linea che è il massimo e un'altra che è il minimo delle prime XX candele

3) multi time frame

4) Allarme con suono, popup, push e email sull'attraversamento delle linee.

Grazie.

Jea

Non ho un tale indicatore. Potresti provare alcuni che si chiamano "London breakout boxes" o qualcosa di simile (se non mi sbaglio)

 
mladen:

Jea

Non ho un tale indicatore. Potresti provare alcuni che si chiamano "London breakout boxes" o qualcosa di simile (se non mi sbaglio)

Beh, grazie. Sarebbe meglio una linea orizzontale piuttosto che un box.
 
Jea:
Beh, grazie. Sarebbe meglio una linea orizzontale piuttosto che una scatola.
Puoi trasformare il colore della scatola in hallow e poi hai delle linee
 
Buono a tutti

Sono nuovo qui, spero che mi capiate
Grazie in anticipo

Volevo chiedervi se conoscete qualche indicatore, script che disegna delle linee ad alcuni punti che abbiamo messo da una candela X, più o meno come un fibonacci

Per esempio:
Abbiamo la candela XX: XXh e vogliamo che dal massimo e il minimo di quella candela X, segni qualche linea sopra il massimo

5° -----------------
4° -------------
3° ----------
2° -------------
1° ----------

Barra principale

1a linea X punti ---------------
2a linea X punti ---------------
3° ----------------- ...
4º ----------------...
5º -----------....
..... ecc.

E poi nel Minimo lo stesso ma sotto

Immagine allegata


Grazie mille, spero il vostro aiuto,
File:
Puntos1.png  41 kb
 
xabipe:
Buono a tutti

Sono nuovo qui, spero che mi capiate
Grazie in anticipo

Volevo chiedervi se conoscete qualche indicatore, script che disegna delle linee ad alcuni punti che abbiamo messo da una candela X, più o meno come un fibonacci

Per esempio:
Abbiamo la candela XX: XXh e vogliamo che dal massimo e il minimo di quella candela X, segni qualche linea sopra il massimo

5° -----------------
4° -------------
3° ----------
2° -------------
1° ----------

Barra principale

1a linea X punti ---------------
2a linea X punti ---------------
3° ----------------- ...
4º ----------------...
5º -----------....
..... ecc.

E poi nel Minimo lo stesso ma sotto

Immagine allegata


Grazie mille, spero il vostro aiuto,
Hai controllato l'indicatore del primo post di questo tread?
 
mladen:
Ha capito l'indicatore dal primo posto di questa banda di montaggio?
Ciao

Si ya lo estaba buscando, pero lo que necesito es lo que muestro en la imagen, no sé si sería posible modificar algunos para ser capaz de utilizarlo en el momento necesario

Se stavo già cercando, ma quello che ho bisogno è quello che mostro nell'immagine, non so se sarebbe possibile modificare alcuni per essere in grado di utilizzarlo al momento necessario

grazie

 
xabipe:
Ciao

Si ya lo estaba buscando, pero lo que necesito es lo que muestro en la imagen, no sé si sería posible modificar algunos para ser capaz de utilizarlo en el momento necesario

Se stavo già cercando, ma quello che ho bisogno è quello che mostro nell'immagine, non so se sarebbe possibile modificare alcuni per essere in grado di utilizzarlo al momento necessario

grazie

Per quanto mi ricordo alcuni stanno facendo esattamente quello di cui hai bisogno. Per favore, controllateli
 
sailor:

Hanno cambiato il nome della linea nel programcode in modo che u possa avere più breakout attaccati a

cambiato il nome nel codice del programma in modo che sia possibile avere più di 1 allegato

avete tipo di questo indicatore che disegna supporto e resisten in timeframe H4 dan Daily solo?
 

Spero che questo sia utile

//+------------------------------------------------------------------+
//|                                                   soubra2003.mq4 |
//|                                  Copyright 2016-2018, soubra2003 |
//|                         https://www.mql5.com/en/users/soubra2003 |
//+------------------------------------------------------------------+


#property copyright "Copyright 2016-2018, Soubra2003"
#property link      "https://www.mql5.com/en/users/soubra2003/seller"
#property version   "1.00"
#property strict


input  ENUM_TIMEFRAMES TF=PERIOD_CURRENT;   // Time frame 
/*input*/  string          InpName="Fibo";      // Line name
/*extern*/ double          InpPrice=0.01;     // Line price
input  color           InpColor=clrRed;     // Line color
input  ENUM_LINE_STYLE InpStyle=STYLE_DASH; // Line style
input  int             InpWidth=1;          // Line width
/*input*/  bool            InpBack=false;       // Background line
/*input*/  bool            InpSelection=true;   // Highlight to move
/*input*/  bool            InpHidden=true;      // Hidden in the object list
/*input*/  long            InpZOrder=0;         // Priority for mouse click

//---
//int      DigitFactor;
double   open,high,low,close,candlesize;



//+------------------------------------------------------------------+
//| Expert initialization function
//+------------------------------------------------------------------+
int OnInit()
{
   for(int i=0;i<6;i++)
   {
      HLineCreate(0,InpName+(string)i,0,InpPrice,InpColor,InpStyle,InpWidth,InpBack,InpSelection,InpHidden,InpZOrder);
      HLineMove(0,InpName+(string)i,InpPrice);
   }

   //if(Digits==3)  DigitFactor=100;
   //else if(Digits==5)   DigitFactor=10000;

//---
   return(INIT_SUCCEEDED);
}



//+------------------------------------------------------------------+
//| Expert tick function
//+------------------------------------------------------------------+
void OnTick()
{
   open  =  iOpen(NULL,TF,1);
   high  =  iHigh(NULL,TF,1);
   low   =  iLow(NULL,TF,1);
   close =  iClose(NULL,TF,1);
   //
   candlesize  =  high-low;
   if(candlesize < 0) candlesize=candlesize*(-1);
   candlesize  =  NormalizeDouble(candlesize,Digits);
   
//---
   HLineMove(0,InpName+(string)0,low);
   HLineMove(0,InpName+(string)5,high);
   //
   if(close >  open) //UP
   {
      HLineMove(0,InpName+(string)1,high-candlesize*0.236);
      HLineMove(0,InpName+(string)2,high-candlesize*0.382);
      HLineMove(0,InpName+(string)3,high-candlesize*0.50);
      HLineMove(0,InpName+(string)4,high-candlesize*0.618);
   }
   else if(close  <  open) //DOWN
   {
      HLineMove(0,InpName+(string)1,low+candlesize*0.236);
      HLineMove(0,InpName+(string)2,low+candlesize*0.382);
      HLineMove(0,InpName+(string)3,low+candlesize*0.50);
      HLineMove(0,InpName+(string)4,low+candlesize*0.618);
   }
}



//+------------------------------------------------------------------+
//| Expert deinitialization function
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
   for(int i=0;i<6;i++)
      ObjectDelete(ChartID(),InpName+(string)i);

//---
   Print("Bye.");
}



//+------------------------------------------------------------------+
//| Create the horizontal line                                       |
//+------------------------------------------------------------------+
bool HLineCreate(const long            chart_ID=0,        // chart's ID 
                 const string          name="HLine",      // line name 
                 const int             sub_window=0,      // subwindow index 
                 double                price=0,           // line price 
                 const color           clr=clrRed,        // line color 
                 const ENUM_LINE_STYLE style=STYLE_SOLID, // line style 
                 const int             width=1,           // line width 
                 const bool            back=false,        // in the background 
                 const bool            selection=true,    // highlight to move 
                 const bool            hidden=true,       // hidden in the object list 
                 const long            z_order=0)         // priority for mouse click 
{ 
//--- if the price is not set, set it at the current Bid price level 
   if(!price) 
      price=SymbolInfoDouble(Symbol(),SYMBOL_BID); 
//--- reset the error value 
   ResetLastError(); 
//--- create a horizontal line 
   if(!ObjectCreate(chart_ID,name,OBJ_HLINE,sub_window,0,price)) 
     { 
      Print(__FUNCTION__, 
            ": failed to create a horizontal line! Error code = ",GetLastError()); 
      return(false); 
     } 
//--- set line color 
   ObjectSetInteger(chart_ID,name,OBJPROP_COLOR,clr); 
//--- set line display style 
   ObjectSetInteger(chart_ID,name,OBJPROP_STYLE,style); 
//--- set line width 
   ObjectSetInteger(chart_ID,name,OBJPROP_WIDTH,width); 
//--- display in the foreground (false) or background (true) 
   ObjectSetInteger(chart_ID,name,OBJPROP_BACK,back); 
//--- enable (true) or disable (false) the mode of moving the line by mouse 
//--- when creating a graphical object using ObjectCreate function, the object cannot be 
//--- highlighted and moved by default. Inside this method, selection parameter 
//--- is true by default making it possible to highlight and move the object 
   ObjectSetInteger(chart_ID,name,OBJPROP_SELECTABLE,selection); 
   ObjectSetInteger(chart_ID,name,OBJPROP_SELECTED,selection); 
//--- hide (true) or display (false) graphical object name in the object list 
   ObjectSetInteger(chart_ID,name,OBJPROP_HIDDEN,hidden); 
//--- set the priority for receiving the event of a mouse click in the chart 
   ObjectSetInteger(chart_ID,name,OBJPROP_ZORDER,z_order); 
//--- successful execution 
   return(true); 
}



//+------------------------------------------------------------------+
//| Move horizontal line                                             |
//+------------------------------------------------------------------+
bool HLineMove(const long   chart_ID=0,   // chart's ID 
               const string name="HLine", // line name 
               double       price=0)      // line price
{ 
//--- if the line price is not set, move it to the current Bid price level 
   if(!price) 
      price=SymbolInfoDouble(Symbol(),SYMBOL_BID); 
//--- reset the error value 
   ResetLastError(); 
//--- move a horizontal line 
   if(!ObjectMove(chart_ID,name,0,0,price)) 
     { 
      Print(__FUNCTION__, 
            ": failed to move the horizontal line! Error code = ",GetLastError()); 
      return(false); 
     } 
//--- successful execution 
   return(true); 
}


//+------------------------------------------------------------------+
//Bye
Motivazione: