Horizontal lines - page 10

 

Hi Mladen,

Can you please share the indicator which contains following:

1) two horizontal lines at the opening of a trading day

2) One line being the high and another being low of the first XX candles

3) multi time frame

4) Alert with sound, popup, push and email on crossing the lines.

Thanks.

 
Jea:

Hi Mladen,

Can you please share the indicator which contains following:

1) two horizontal lines at the opening of a trading day

2) One line being the high and another being low of the first XX candles

3) multi time frame

4) Alert with sound, popup, push and email on crossing the lines.

Thanks.

Jea

I don't have such an indicator. You might try some that are called "London breakout boxes" or something similar (if I am not mistaken)

 
mladen:

Jea

I don't have such an indicator. You might try some that are called "London breakout boxes" or something similar (if I am not mistaken)

Well Thanks. It would be better a horizontal line rather than a box.
 
Jea:
Well Thanks. It would be better a horizontal line rather than a box.
You can turn the color of the box to hallow and then you have lines
 
Good to everyone

I'm new here I hope you understand me
Thanks in advance

I wanted to ask if you know of any indicator, script that draws lines to some points that we put from an X candle, more or less like a fibonacci

For example:
We have the candle XX: XXh and we want that from the maximum and the minimum of that candle X, mark a few lines above the maximum

5th -----------------
4th -------------
3rd ----------
2nd -------------
1st ----------

Main bar

1st Line X points ---------------
2nd Line X Points ---------------
3rd ----------------- ...
4º ----------------...
5th -----------....
..... etc

And then in the Minimum the same but below

Attached image 


Thank you very much, I hope your help,
Files:
Puntos1.png  41 kb
 
xabipe:
Good to everyone

I'm new here I hope you understand me
Thanks in advance

I wanted to ask if you know of any indicator, script that draws lines to some points that we put from an X candle, more or less like a fibonacci

For example:
We have the candle XX: XXh and we want that from the maximum and the minimum of that candle X, mark a few lines above the maximum

5th -----------------
4th -------------
3rd ----------
2nd -------------
1st ----------

Main bar

1st Line X points ---------------
2nd Line X Points ---------------
3rd ----------------- ...
4º ----------------...
5th -----------....
..... etc

And then in the Minimum the same but below

Attached image 


Thank you very much, I hope your help,
Did you check the indicator from the first post of this tread?
 
mladen:
¿Ha comprobado el indicador desde el primer puesto de esta banda de rodadura?
Hello

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

If I was already looking but what I need is what I show in the image, I do not know if it would be possible to modify some to be able to use it at the necessary

thank 

 

 
xabipe:
Hello

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

If I was already looking but what I need is what I show in the image, I do not know if it would be possible to modify some to be able to use it at the necessary

thank 

 

As far as I remember some are doing exactly what you need. Please do check them out
 
sailor:

Have changed the name of line in programcode so u can have more breakout attached at

changed the name in program code so its possible to have more than 1 atached

do you have kind of this indicator that draw support and resisten in timeframe H4 dan Daily only ?
 

I hope this is helpful

//+------------------------------------------------------------------+
//|                                                   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