المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : تم : inside bar and engulfing pattern


gozila
15-03-2013, 11:31 PM
كنت عايز اضع لون خاص للشموع والبارات بحيث لو inside bar يديني لون معين

ممكن اعرف الاوامر ايه لعمل ذلك المؤشر

fady
16-03-2013, 02:09 AM
http://www.fx-arabia.com/vb/uploaded/9461_11363388906.ex4

gozila
16-03-2013, 02:41 AM
شكرا جدا علي المؤشر بس انا محتاج الاوامر نفسها لعمل المؤشر

MOVING_AVERAGE
16-03-2013, 02:08 PM
حتي لو وضعت لك الاوامر لن تستفيد منها لانها تتعلق بالشروط التي تريد تلوين الشمعة في حالة تحققها

اعطيني الشروط ساشرح لك المؤشر حرف حرف هنا في هذا الموضوع

gozila
16-03-2013, 02:38 PM
شكرا استاذ موفينج افريج علي ردك
المؤشر اللي محتاجه :

1- الهاي للبار الحالي اقل من الهاي البار السابق+اللو للبار الحالي اعلي من البار السابق ...لون البار اصفر
2- الهاي للبار الحالي اعلي من الهاي للبار السابق+اللو للبار الحالي اقل من اللو للبار السابق...لون البار اصفر

MOVING_AVERAGE
19-03-2013, 03:01 AM
هذا هو الكود



#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);

}



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

و2 للجسم

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

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

gozila
19-03-2013, 09:28 PM
شكرا جدا جدا علي الاوامر......