Download Set Fibo Price MT4 Indicator

set-fibo-price-mt4-indicatorSet Fibo Price MT4 Indicator

Set Fibo Price indicator adds actual price labels for the Fibonacci retracement levels. In order to make this indicator work, first you have to draw your Fibonacci line and then apply the indicator to the chart.

[php]

//+——————————————————————+
//| Set_Fibo_Price_Any.mq4 |
//| Copyright © 2007, Eng. Waddah Attar |
//| [email protected] |
//+——————————————————————+
#property copyright “Copyright Waddah Attar”
#property link “[email protected]
//—-
#property indicator_chart_window
//+——————————————————————+
//| |
//+——————————————————————+
int init()
{
Comment(“Set_Fibo_Price_Any”);
return(0);
}
//+——————————————————————+
//| |
//+——————————————————————+
int deinit()
{
int obj_total = ObjectsTotal();
string name;
for(int i = 0; i < obj_total; i++)
{
name = ObjectName(i);
if(ObjectType(name) == OBJ_FIBO)
{
for(int j=0;j<32;j++)
{
if(GetLastError() != 0)
break;
ObjectSetFiboDescription(name, j, DoubleToStr(ObjectGet(name,
OBJPROP_FIRSTLEVEL + j)*100, 1));
}
}
}
Comment(“”);
return(0);
}
//+——————————————————————+
//| |
//+——————————————————————+
int start()
{
int obj_total = ObjectsTotal();
string name,text;
for(int i = 0; i < obj_total; i++)
{
name = ObjectName(i);
if(ObjectType(name) == OBJ_FIBO)
{
for(int j = 0; j < 32; j++)
{
if(GetLastError() != 0)
break;
ObjectSetFiboDescription(name, j, “(” + DoubleToStr(ObjectGet(name,
OBJPROP_FIRSTLEVEL+j)*100,1) + “)” + ” – %$”);
}
}
}
//—-
return(0);
}
//+——————————————————————+

[/php]
[php]

//+——————————————————————+
//| Set_Fibo_Price_Default.mq4 |
//| Copyright © 2006, Eng. Waddah Attar |
//| [email protected] |
//+——————————————————————+
#property copyright “Copyright Waddah Attar”
#property link “[email protected]
//—-
#property indicator_chart_window
//+——————————————————————+
//| |
//+——————————————————————+
int init()
{
Comment(“Set_Fibo_Default”);
return(0);
}
//+——————————————————————+
//| |
//+——————————————————————+
int deinit()
{
int obj_total = ObjectsTotal();
string name;
for(int i = 0; i < obj_total; i++)
{
name = ObjectName(i);
if(ObjectType(name) == OBJ_FIBO)
{
ObjectSetFiboDescription(name,0, “0.0”);
ObjectSetFiboDescription(name,1, “23.6”);
ObjectSetFiboDescription(name,2, “38.2”);
ObjectSetFiboDescription(name,3, “50”);
ObjectSetFiboDescription(name,4, “61.8”);
ObjectSetFiboDescription(name,5, “100”);
ObjectSetFiboDescription(name,6, “161.8”);
ObjectSetFiboDescription(name,7, “261.8”);
ObjectSetFiboDescription(name,8, “423.6”);
}
}
Comment(“”);
return(0);
}
//+——————————————————————+
//| |
//+——————————————————————+
int start()
{
int obj_total = ObjectsTotal();
string name;
for(int i = 0; i < obj_total; i++)
{
name = ObjectName(i);
if(ObjectType(name) == OBJ_FIBO)
{
ObjectSetFiboDescription(name, 0, “(0.0) – %$”);
ObjectSetFiboDescription(name, 1, “(23.6) – %$”);
ObjectSetFiboDescription(name, 2, “(38.2) – %$”);
ObjectSetFiboDescription(name, 3, “(50) – %$”);
ObjectSetFiboDescription(name, 4, “(61.8) – %$”);
ObjectSetFiboDescription(name, 5, “(100) – %$”);
ObjectSetFiboDescription(name, 6, “(161.8) – %$”);
ObjectSetFiboDescription(name, 7, “(261.8) – %$”);
ObjectSetFiboDescription(name, 8, “(423.6) – %$”);
}
}
//—-
return(0);
}
//+——————————————————————+

[/php]

 Click Here to Download

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *