![]() |
تم : inside bar and engulfing pattern
كنت عايز اضع لون خاص للشموع والبارات بحيث لو inside bar يديني لون معين
ممكن اعرف الاوامر ايه لعمل ذلك المؤشر |
رد: inside bar and engulfing pattern
|
رد: inside bar and engulfing pattern
شكرا جدا علي المؤشر بس انا محتاج الاوامر نفسها لعمل المؤشر
|
رد: inside bar and engulfing pattern
حتي لو وضعت لك الاوامر لن تستفيد منها لانها تتعلق بالشروط التي تريد تلوين الشمعة في حالة تحققها
اعطيني الشروط ساشرح لك المؤشر حرف حرف هنا في هذا الموضوع |
رد: inside bar and engulfing pattern
شكرا استاذ موفينج افريج علي ردك
المؤشر اللي محتاجه : 1- الهاي للبار الحالي اقل من الهاي البار السابق+اللو للبار الحالي اعلي من البار السابق ...لون البار اصفر 2- الهاي للبار الحالي اعلي من الهاي للبار السابق+اللو للبار الحالي اقل من اللو للبار السابق...لون البار اصفر |
رد: 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 للجسم جعلت لونهم كلهم اصفر لانك تريد اللون الاصفر فقط ووضعت شروط تلوين الشمعة |
رد: inside bar and engulfing pattern
شكرا جدا جدا علي الاوامر......
|
الساعة الآن 07:14 PM |
Powered by vBulletin® Copyright ©2000 - 2025
جميع الحقوق محفوظة الى اف اكس ارابيا www.fx-arabia.com