عرض مشاركة واحدة
قديم 19-03-2013, 03:01 AM   المشاركة رقم: 6
الكاتب
MOVING_AVERAGE
عضو فضى
الصورة الرمزية MOVING_AVERAGE

البيانات
تاريخ التسجيل: Feb 2012
رقم العضوية: 8190
الدولة: algeria
العمر: 41
المشاركات: 2,213
بمعدل : 0.46 يوميا

الإتصالات
الحالة:
MOVING_AVERAGE غير متواجد حالياً
وسائل الإتصال:

كاتب الموضوع : gozila المنتدى : منتدى المؤشرات و الاكسبيرتات
افتراضي رد: inside bar and engulfing pattern

هذا هو الكود

[PHP]

#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Yellow
#property indicator_color2 Yellow
#property indicator_color3 Yellow
#property indicator_color4 Yellow



double one[];
double tow[];
double tree[];
double four[];

int strtotime;

int init() {
SetIndexBuffer(2, one);
SetIndexBuffer(3, tow);
SetIndexBuffer(0, tree);
SetIndexBuffer(1, four);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 1, Yellow);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 1, Yellow);
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 14, Yellow);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 14, Yellow);
SetIndexBuffer(2, one);
SetIndexBuffer(3, tow);
SetIndexBuffer(0, tree);
SetIndexBuffer(1, four);

return (0);
}



int deinit() {

return (0);
}

int start() {
double max;
double min;
double close;
double open;
double high;
double low;
double high1;
double low1;
int counted_bars=IndicatorCounted();
int limit = Bars - counted_bars;
int hourcurrent = TimeHour(TimeCurrent());
int minutecurrent = TimeMinute(TimeCurrent());
for (int i = limit; i >= 0; i--) {
close = Close[i];
open = Open[i];
high=High[i];
low=Low[i];
high1=High[i+1];
low1=Low[i+1];

if (High[i]<High[i+1]&&Low[i]>Low[i+1])
{
tree[i] = Open[i];
four[i] = Close[i];
one[i] = High[i];
tow[i] = Low[i];
}

if (High[i]>High[i+1]&&Low[i]<Low[i+1])
{
tree[i] = Open[i];
four[i] = Close[i];
one[i] = High[i];
tow[i] = Low[i];
}

}


return (0);

}

[/PHP]

عملت 4 هستوغرام 2 للذيول

و2 للجسم

جعلت لونهم كلهم اصفر لانك تريد اللون الاصفر فقط

ووضعت شروط تلوين الشمعة



التوقيع

نقره لعرض الصورة في صفحة مستقلة







عرض البوم صور MOVING_AVERAGE  
رد مع اقتباس
  #6  
قديم 19-03-2013, 03:01 AM
MOVING_AVERAGE MOVING_AVERAGE غير متواجد حالياً
عضو فضى
افتراضي رد: inside bar and engulfing pattern

هذا هو الكود

[PHP]

#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Yellow
#property indicator_color2 Yellow
#property indicator_color3 Yellow
#property indicator_color4 Yellow



double one[];
double tow[];
double tree[];
double four[];

int strtotime;

int init() {
SetIndexBuffer(2, one);
SetIndexBuffer(3, tow);
SetIndexBuffer(0, tree);
SetIndexBuffer(1, four);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 1, Yellow);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 1, Yellow);
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 14, Yellow);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 14, Yellow);
SetIndexBuffer(2, one);
SetIndexBuffer(3, tow);
SetIndexBuffer(0, tree);
SetIndexBuffer(1, four);

return (0);
}



int deinit() {

return (0);
}

int start() {
double max;
double min;
double close;
double open;
double high;
double low;
double high1;
double low1;
int counted_bars=IndicatorCounted();
int limit = Bars - counted_bars;
int hourcurrent = TimeHour(TimeCurrent());
int minutecurrent = TimeMinute(TimeCurrent());
for (int i = limit; i >= 0; i--) {
close = Close[i];
open = Open[i];
high=High[i];
low=Low[i];
high1=High[i+1];
low1=Low[i+1];

if (High[i]<High[i+1]&&Low[i]>Low[i+1])
{
tree[i] = Open[i];
four[i] = Close[i];
one[i] = High[i];
tow[i] = Low[i];
}

if (High[i]>High[i+1]&&Low[i]<Low[i+1])
{
tree[i] = Open[i];
four[i] = Close[i];
one[i] = High[i];
tow[i] = Low[i];
}

}


return (0);

}

[/PHP]

عملت 4 هستوغرام 2 للذيول

و2 للجسم

جعلت لونهم كلهم اصفر لانك تريد اللون الاصفر فقط

ووضعت شروط تلوين الشمعة




رد مع اقتباس