1 مرفق
التعديل في توقيت الديلي كامريلا
السلام عليكم
انا عاوز مساعده يا جماعه
هذا مؤشر الكامريلا واريد تغيير الوقت به
حسب المؤشر المرفق
اى من هذه الدلالات التى اعدل بها الوقت الذى اريده
كود:
//+------------------------------------------------------------------+
//| Pivot.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| Forex Trading Software: Forex Trading Platform MetaTrader 4 |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "Forex Trading Software: Forex Trading Platform MetaTrader 4"
#property indicator_chart_window
extern bool camarilla = true;
double day_high=0;
double day_low=0;
double yesterday_high=0;
double yesterday_open=0;
double yesterday_low=0;
double yesterday_close=0;
double today_open=0;
double today_high=0;
double today_low=0;
double LastWeek_high=0;
double LastWeek_open=0;
double LastWeek_low=0;
double LastWeek_close=0;
double LastMonth_high=0;
double LastMonth_open=0;
double LastMonth_low=0;
double LastMonth_close=0;
double P=0,WP=0,MP=0;
double Q=0;
double H8,H7,H6,H5,H4,H3,L3,L4,L5,L6,L7,L8;
double nQ=0;
double nD=0;
double D=0;
double rates_d1[2][6];
double rates_w1[2][6];
double rates_m1[2][6];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
H8=0; H7=0; H6=0; H5=0; H4=0; H3=0; L3=0; L4=0; L5=0; L6=0; L7=0; L8=0;
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//---- TODO: add your code here
ObjectDelete("P Label");
ObjectDelete("P Line");
ObjectDelete("H8 Label");
ObjectDelete("H8 Line");
ObjectDelete("H7 Label");
ObjectDelete("H7 Line");
ObjectDelete("H6 Label");
ObjectDelete("H6 Line");
ObjectDelete("H5 Label");
ObjectDelete("H5 Line");
ObjectDelete("H4 Label");
ObjectDelete("H4 Line");
ObjectDelete("H3 Label");
ObjectDelete("H3 Line");
ObjectDelete("L3 Label");
ObjectDelete("L3 Line");
ObjectDelete("L4 Label");
ObjectDelete("L4 Line");
ObjectDelete("L5 Label");
ObjectDelete("L5 Line");
ObjectDelete("L6 Label");
ObjectDelete("L6 Line");
ObjectDelete("L7 Label");
ObjectDelete("L7 Line");
ObjectDelete("L8 Label");
ObjectDelete("L8 Line");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//---- TODO: add your code here
//---- exit if period is greater than daily charts
if(Period() > 1440)
{
Print("Error - Chart period is greater than 1 day.");
return(-1); // then exit
}
//---- Get new daily prices
ArrayCopyRates(rates_d1, Symbol(), PERIOD_D1);
yesterday_close = rates_d1[1][4];
yesterday_open = rates_d1[1][1];
today_open = rates_d1[0][1];
yesterday_high = rates_d1[1][3];
yesterday_low = rates_d1[1][2];
day_high = rates_d1[0][3];
day_low = rates_d1[0][2];
//---- Calculate Pivots
D = (day_high - day_low);
Q = (yesterday_high - yesterday_low);
P = (yesterday_high + yesterday_low + yesterday_close) / 3;
H8 = (Q*1.62)+yesterday_close;
H7 = (Q*1.35)+yesterday_close;
H6 = (Q*1.09)+yesterday_close;
H5 = (Q*0.82)+yesterday_close;
H4 = (Q*0.55)+yesterday_close;
H3 = (Q*0.27)+yesterday_close;
L3 = yesterday_close-(Q*0.27);
L4 = yesterday_close-(Q*0.55);
L5 = yesterday_close-(Q*0.82);
L6 = yesterday_close-(Q*1.09);
L7 = yesterday_close-(Q*1.35);
L8 = yesterday_close-(Q*1.62);
if (Q > 5)
{
nQ = Q;
}
else
{
nQ = Q*10000;
}
if (D > 5)
{
nD = D;
}
else
{
nD = D*10000;
}
Comment("High= ",yesterday_high," Previous Days Range= ",nQ,"\nLow= ",yesterday_low," Current Days Range= ",nD,"\nClose= ",yesterday_close);
//---- Set line labels on chart window
if(ObjectFind("P label") != 0)
{
ObjectCreate("P label", OBJ_TEXT, 0, Time[0], P);
ObjectSetText("P label", "Daily Pivot", 10, "Arial", Yellow);
}
else
{
ObjectMove("P label", 0, Time[0], P);
}
if(ObjectFind("P line") != 0)
{
ObjectCreate("P line", OBJ_HLINE, 0, Time[40], P);
ObjectSet("P line", OBJPROP_STYLE, STYLE_DASH);
ObjectSet("P line", OBJPROP_COLOR, Yellow);
}
else
{
ObjectMove("P line", 0, Time[40], P);
}
//----- Camarilla Lines
if (camarilla==true)
{
if(ObjectFind("H8 label") != 0)
{
ObjectCreate("H8 label", OBJ_TEXT, 0, Time[10], H8);
ObjectSetText("H8 label", "H8 Overshoot", 10, "Arial", Yellow);
}
else
{
ObjectMove("H8 label", 0, Time[10], H8);
}
if(ObjectFind("H7 label") != 0)
{
ObjectCreate("H7 label", OBJ_TEXT, 0, Time[10], H7);
ObjectSetText("H7 label", "H7 Overshoot", 10, "Arial", Yellow);
}
else
{
ObjectMove("H7 label", 0, Time[10], H7);
}
if(ObjectFind("H6 label") != 0)
{
ObjectCreate("H6 label", OBJ_TEXT, 0, Time[10], H6);
ObjectSetText("H6 label", "H6 Proj.Dayhigh", 10, "Arial", Aqua);
}
else
{
ObjectMove("H6 label", 0, Time[10], H6);
}
if(ObjectFind("H5 label") != 0)
{
ObjectCreate("H5 label", OBJ_TEXT, 0, Time[10], H5);
ObjectSetText("H5 label", "H 5", 10, "Arial", Lime);
}
else
{
ObjectMove("H5 label", 0, Time[10], H5);
}
if(ObjectFind("H4 label") != 0)
{
ObjectCreate("H4 label", OBJ_TEXT, 0, Time[10], H4);
ObjectSetText("H4 label", "H 4", 10, "Arial", Lime);
}
else
{
ObjectMove("H4 label", 0, Time[10], H4);
}
if(ObjectFind("H3 label") != 0)
{
ObjectCreate("H3 label", OBJ_TEXT, 0, Time[10], H3);
ObjectSetText("H3 label", "H 3", 10, "Arial", Magenta);
}
else
{
ObjectMove("H3 label", 0, Time[10], H3);
}
if(ObjectFind("L3 label") != 0)
{
ObjectCreate("L3 label", OBJ_TEXT, 0, Time[10], L3);
ObjectSetText("L3 label", "L 3", 10, "Arial", Magenta);
}
else
{
ObjectMove("L3 label", 0, Time[10], L3);
}
if(ObjectFind("L4 label") != 0)
{
ObjectCreate("L4 label", OBJ_TEXT, 0, Time[10], L4);
ObjectSetText("L4 label", "L 4", 10, "Arial", Red);
}
else
{
ObjectMove("L4 label", 0, Time[10], L4);
}
if(ObjectFind("L5 label") != 0)
{
ObjectCreate("L5 label", OBJ_TEXT, 0, Time[10], L5);
ObjectSetText("L5 label", "L 5", 10, "Arial", Red);
}
else
{
ObjectMove("L5 label", 0, Time[10], L5);
}
if(ObjectFind("L6 label") != 0)
{
ObjectCreate("L6 label", OBJ_TEXT, 0, Time[10], L6);
ObjectSetText("L6 label", "L6 Proj.Daylow", 10, "Arial", Aqua);
}
else
{
ObjectMove("L6 label", 0, Time[10], L6);
}
if(ObjectFind("L7 label") != 0)
{
ObjectCreate("L7 label", OBJ_TEXT, 0, Time[10], L7);
ObjectSetText("L7 label", "L7 Overshoot", 10, "Arial", Yellow);
}
else
{
ObjectMove("L7 label", 0, Time[10], L7);
}
if(ObjectFind("L8 label") != 0)
{
ObjectCreate("L8 label", OBJ_TEXT, 0, Time[10], L8);
ObjectSetText("L8 label", "L8 Overshoot", 10, "Arial", Yellow);
}
else
{
ObjectMove("L8 label", 0, Time[10], L8);
}
//---- Draw Camarilla lines on Chart
if(ObjectFind("H8 line") != 0)
{
ObjectCreate("H8 line", OBJ_HLINE, 0, Time[40], H8);
ObjectSet("H8 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("H8 line", OBJPROP_WIDTH, 3);
ObjectSet("H8 line", OBJPROP_COLOR, Yellow);
}
else
{
ObjectMove("H8 line", 0, Time[40], H8);
}
if(ObjectFind("H7 line") != 0)
{
ObjectCreate("H7 line", OBJ_HLINE, 0, Time[40], H7);
ObjectSet("H7 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("H7 line", OBJPROP_WIDTH, 3);
ObjectSet("H7 line", OBJPROP_COLOR, Yellow);
}
else
{
ObjectMove("H7 line", 0, Time[40], H7);
}
if(ObjectFind("H6 line") != 0)
{
ObjectCreate("H6 line", OBJ_HLINE, 0, Time[40], H6);
ObjectSet("H6 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("H6 line", OBJPROP_WIDTH, 3);
ObjectSet("H6 line", OBJPROP_COLOR, Aqua);
}
else
{
ObjectMove("H6 line", 0, Time[40], H6);
}
if(ObjectFind("H5 line") != 0)
{
ObjectCreate("H5 line", OBJ_HLINE, 0, Time[40], H5);
ObjectSet("H5 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("H5 line", OBJPROP_WIDTH, 1);
ObjectSet("H5 line", OBJPROP_COLOR, Lime);
}
else
{
ObjectMove("H5 line", 0, Time[40], H5);
}
if(ObjectFind("H4 line") != 0)
{
ObjectCreate("H4 line", OBJ_HLINE, 0, Time[40], H4);
ObjectSet("H4 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("H4 line", OBJPROP_COLOR, Lime);
}
else
{
ObjectMove("H4 line", 0, Time[40], H4);
}
if(ObjectFind("H3 line") != 0)
{
ObjectCreate("H3 line", OBJ_HLINE, 0, Time[40], H3);
ObjectSet("H3 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("H3 line", OBJPROP_WIDTH, 3);
ObjectSet("H3 line", OBJPROP_COLOR, Magenta);
}
else
{
ObjectMove("H3 line", 0, Time[40], H3);
}
if(ObjectFind("L3 line") != 0)
{
ObjectCreate("L3 line", OBJ_HLINE, 0, Time[40], L3);
ObjectSet("L3 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("L3 line", OBJPROP_WIDTH, 3);
ObjectSet("L3 line", OBJPROP_COLOR, Magenta);
}
else
{
ObjectMove("L3 line", 0, Time[40], L3);
}
if(ObjectFind("L4 line") != 0)
{
ObjectCreate("L4 line", OBJ_HLINE, 0, Time[40], L4);
ObjectSet("L4 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("L4 line", OBJPROP_WIDTH, 1);
ObjectSet("L4 line", OBJPROP_COLOR, Red);
}
else
{
ObjectMove("L4 line", 0, Time[40], L4);
}
if(ObjectFind("L5 line") != 0)
{
ObjectCreate("L5 line", OBJ_HLINE, 0, Time[40], L5);
ObjectSet("L5 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("L5 line", OBJPROP_WIDTH, 1);
ObjectSet("L5 line", OBJPROP_COLOR, Red);
}
else
{
ObjectMove("L5 line", 0, Time[40], L5);
}
if(ObjectFind("L6 line") != 0)
{
ObjectCreate("L6 line", OBJ_HLINE, 0, Time[40], L6);
ObjectSet("L6 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("L6 line", OBJPROP_WIDTH, 3);
ObjectSet("L6 line", OBJPROP_COLOR, Aqua);
}
else
{
ObjectMove("L6 line", 0, Time[40], L6);
}
if(ObjectFind("L7 line") != 0)
{
ObjectCreate("L7 line", OBJ_HLINE, 0, Time[40], L7);
ObjectSet("L7 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("L7 line", OBJPROP_WIDTH, 3);
ObjectSet("L7 line", OBJPROP_COLOR, Yellow);
}
else
{
ObjectMove("L7 line", 0, Time[40], L7);
}
if(ObjectFind("L8 line") != 0)
{
ObjectCreate("L8 line", OBJ_HLINE, 0, Time[40], L8);
ObjectSet("L8 line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("L8 line", OBJPROP_WIDTH, 3);
ObjectSet("L8 line", OBJPROP_COLOR, Yellow);
}
else
{
ObjectMove("L8 line", 0, Time[40], L8);
}
}
//-------End of Draw Camarilla Lines
//---- End Of Program
return(0);
}
//+------------------------------------------------------------------+
رد: التعديل في توقيت الديلي كامريلا
سياده اللواء
ممكن تقول لى اين دلاله الوقت واخوك يعدلها لك :012::012::012:
ولا اقولك الحاج سمير موجود وهو من افضل من يبرمج المؤشرات والاكسبريتات ولكن لا يفصح عن ذلك :0023:
رد: التعديل في توقيت الديلي كامريلا
اقتباس:
المشاركة الأصلية كتبت بواسطة hadi75m
سياده اللواء
ممكن تقول لى اين دلاله الوقت واخوك يعدلها لك :012::012::012:
ولا اقولك الحاج سمير موجود وهو من افضل من يبرمج المؤشرات والاكسبريتات ولكن لا يفصح عن ذلك :0023:
احم احم
انا اعدل بس مش زيك ببيرمج :012:
رد: التعديل في توقيت الديلي كامريلا
اقتباس:
المشاركة الأصلية كتبت بواسطة سمير صيام
احم احم
انا اعدل بس مش زيك ببيرمج :012:
يعني بقى الك من الصبح يا محمود مش عارف تعدل الوقت
وجاي تنشر غسيلك عندي هون
ماتكلمه ياعم سمير:0023:
رد: التعديل في توقيت الديلي كامريلا
أخي فيصل
المؤشر يعتمد على بيانات الشمعة اليومية الخاصة بالبروكر الذي تستخدمه .
لا يمكن تغيير التوقيت إلا بتغيير البروكر نفسه الذي يتعامل بالتوقيت الذي تريده .
وهذا هو الكود الخاص بتحميل بيانات الشمعات اليومية :
ArrayCopyRates(rates_d1, Symbol(), PERIOD_D1);
yesterday_close = rates_d1[1][4];
yesterday_open = rates_d1[1][1];
today_open = rates_d1[0][1];
yesterday_high = rates_d1[1][3];
yesterday_low = rates_d1[1][2];
day_high = rates_d1[0][3];
day_low = rates_d1[0][2];
رد: التعديل في توقيت الديلي كامريلا
اقتباس:
المشاركة الأصلية كتبت بواسطة وضاح عطار
أخي فيصل
المؤشر يعتمد على بيانات الشمعة اليومية الخاصة بالبروكر الذي تستخدمه .
لا يمكن تغيير التوقيت إلا بتغيير البروكر نفسه الذي يتعامل بالتوقيت الذي تريده .
وهذا هو الكود الخاص بتحميل بيانات الشمعات اليومية :
ArrayCopyRates(rates_d1, Symbol(), PERIOD_D1);
yesterday_close = rates_d1[1][4];
yesterday_open = rates_d1[1][1];
today_open = rates_d1[0][1];
yesterday_high = rates_d1[1][3];
yesterday_low = rates_d1[1][2];
day_high = rates_d1[0][3];
day_low = rates_d1[0][2];
على راسي حارتك يا ابو حلب
يعني ما اقدر اغير وقت الخطوط هذه لانه مثلا على ال تريد تختلف عن ويندسور بوقت السيرفر
لو يوجد طريقه تخلي الخطوط دي تفتح وتتعدل على شمعه ال تريد
لانه في ازواج كثيرة مش موجوده في ال تريد
بارك الله بك:eh_s(7):