النتائج 1 إلى 2 من 2
الموضوع: طلب تعديل هذا المؤشر
- 09-02-2017, 07:56 PM #1
طلب تعديل هذا المؤشر
هذا المؤشر صممه لي اخونا مستر دولا من فتره وهو لاضافه خطوط عرضيه
https://forum.arabictrader.com/t239015.html
اريد ان تكون االارقام داخل المؤشر فقط وحذف المتغير الخارجي مثل
كود PHP://+------------------------------------------------------------------+
//| |
//| |
//| www.arabictrader.com/vb |
//| |
//| [email protected] |
//+------------------------------------------------------------------+
#property copyright "MR.dollar "
#property link "[email protected]"
#property indicator_chart_window
input string info="Add (,)between numbers";
input string Lines_Numbers=
"0.714,0.726,0.7381,0.7503,0.7626,0.7750,"
"0.973,0.987,1.0011,1.0153,1.0296,1.044,1.0585,1.0731,1.0878,1.1026,1.1175,1.1325,"
"1.209,1.2246,1.2403,1.2561,1.272,1.288,1.3041,"
"108.78,110.26,111.75,113.25,114.76,116.28,117.81,";
input int Line_Width=3;
input color Line_Color=Red;
double point;
void OnInit()
{
if(Digits<4)
{
point=0.01;
}
else
{
point=0.0001;
}
}
void OnDeinit(const int reason)
{
for(int i=ObjectsTotal()-1;i>=0;i--)
{
string name=ObjectName(i);
if(StringFind(name,"CustomHLine",0)>=0)
ObjectDelete(name);
}
}
//+------------------------------------------------------------------+
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[])
{
Comment("Programmed by MR.dollar"+"\n"+"www.arabictrader.com/vb");
string Numbers[];
ushort sep=StringGetCharacter(",",0);
StringSplit(Lines_Numbers,sep,Numbers);
int num_size=ArraySize(Numbers);
int size=0;
for(int i=0;i<num_size;i++)
{
drawHLine("CustomHLine"+Numbers[i],StringToDouble(Numbers[i]),Line_Color);
}
return(rates_total);
}
void drawHLine(string name, double price,color _Color)
{
if(ObjectFind(name) == -1)
{
ObjectCreate(name, OBJ_HLINE, 0, 0,price);
ObjectSet(name, OBJPROP_COLOR, _Color);
ObjectSet(name, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(name, OBJPROP_WIDTH, Line_Width);
}
else if(ObjectGet(name,OBJPROP_PRICE1)!=price)
{
ObjectDelete(name);
}
}
//+------------------------------------------------------------------+
- 13-02-2017, 10:15 PM #2