النتائج 1 إلى 12 من 12
- 11-05-2011, 03:18 AM #1
أكسبيرت ( 1CLICKPIPS ) ومطلوب تعديل من الزعيم مستر دولار
السلام عليكم ورحمة الله وبركاتة
اكسبيرت جيد وبراقبه منذ فتره
النسخه ارسلها لى صديق
ومحتاج اجربها تانى لسه وممكن تكون مفيده للعديد منكم
متهيألى حتكون كويسة
الأكسبيرت عند تحمبله على اى شارت
يفتح صفقات على الازواج الاتيه
EUR/USD ,GBP/USD , EUR/GBP , EUR/AUD
( 1 )
مطلوب انه يعمل على الشارت الذى يرفع عليه فقط
( 2 )
إلغاء خاصية فتح اكثر من اوردر او التحكم بها
( 3 )
فلتر زمنى
لتحديد وقت لعمل الاكسبيرت
مش عارف هى النسخه مشفره ولا ايه
عموما انا ما لى فى البرمجه انا افكر بس كويس فى السوق
وبإذن الله الموضوع يكون مفيد وحنوصل لاكسبيرت ممتاز
بالتوفيق للجميع
آخر تعديل بواسطة Walid Basset ، 11-05-2011 الساعة 03:22 AM
- 12-05-2011, 02:00 PM #2
اخي العزيز
الاكسبريت لا يعمل
لا اعرف ما هو السبب
ويعطي خطا في الداتا
فهل معه مرفق مؤشر يعتمد عليه
- 13-05-2011, 07:40 PM #3
لا يعمل ولما بيعمل بيمرجن
خلى بالكوا انا جربته
- 13-05-2011, 08:32 PM #4
الاكسبريت فكرته خاررررررقه
لانه يعتمد على الموفنج افرج
بس لا اعلم السبب فى خسارته مع الشركات الحقيقيه
وربحه مع الشركات بئر السلم
انا بصراحه فقط عملت باك تست عليه وشفت انه بيعتمد على الموفنج افرج
بس هو بيغلق الصفقات بناء على ماذا ؟
ولماذا ؟
هذه امور ما تنعرف الا من مبرمج يقراء الكود لكى نعدل فيه داخليا ونعرف طريقته لانها مربحه حقيقه بس محتاجه قليل من التعديل
- 13-05-2011, 08:39 PM #5
قصه الاكسبريت هى
مدير صندوق فى بنك اوروبي مثل جوروج سورس كان يحقق ارباح من مضاربته من خلال الموفنج افرج بتوليفه معينه وسريه ؟
الرجال تقاعد
وجاء صديقنا وهو صديقه وبعد مناوحات طاحنه اقنعه بأن يعطيه التوليفه السحريه التى كان يشتغل فيها مع البنك واقنعه بأنه سوف يصنع له منها اكسبريت
ليرتاح الرجل العجوز من التداول اليدوي ويستفيد من التطور
المهم
ماكذب خبر اعطاه التوليفه السحريه والرجال عمل اكسبريت لها وهى تعتمد على توليفه تبدء من موفنج افرج 2 حتى 175 على فيرم 4 ساعات
بطريقه معينه للسكبلنج ؟؟؟؟؟؟؟؟؟؟؟؟
- 13-05-2011, 08:41 PM #6
ماهى هذه الطريقه ولماذا بهذه الطريقه السحريه الغربيه العجيبه ؟؟
والله لا اعلم لانى لست مبرمج وياريت احد المبرمجين يقراء الكود ويشرح لنا الطيقه يدويا لنفهما
لان الموضوع ليس استهبال لانه تم تحويل 1000 الى 16200000 دولار خلال شهر بستخدمها
- 13-05-2011, 08:46 PM #7
اسف المبلغ الصحيح هو 1000 الى 1620000 دولار
مائه الف دولار فقط
خطئ مطبعى
- 13-05-2011, 08:54 PM #8
الاكسبيرت مشفر ولا يستطيع احد التعديل عليه او معرفة محتواه
- 13-05-2011, 09:15 PM #9
عندى محتواه تفضل بس احد لو سمحتو يشرح لنا طريقه السكبلنج الخاصه فيه بشرح مفضل يدويا:
كود PHP:string gs_76;
string gs_84;
int g_y_92 = 40;
int gi_96 = 22;
double gd_100;
double gd_108;
double gd_116;
double gd_124;
string gs_132;
string gs_140;
string gs_148;
int gi_156;
bool gi_160;
bool gi_164;
extern double LotSize = 0.01;
extern int Slippage = 3;
int gi_180 = 3600;
int gi_unused_184 = 0;
int gi_188 = 0;
string gs_192;
int gi_200;
int gi_204;
bool gi_208 = FALSE;
bool gi_212 = FALSE;
bool gi_216 = FALSE;
bool gi_220 = FALSE;
bool gi_224 = FALSE;
bool gi_228 = FALSE;
bool gi_232 = FALSE;
bool gi_236 = FALSE;
bool gi_240 = FALSE;
bool gi_244 = FALSE;
bool gi_248 = FALSE;
bool gi_252 = FALSE;
bool gi_256 = FALSE;
bool gi_260 = FALSE;
bool gi_264 = FALSE;
bool gi_268 = FALSE;
int init() {
return (0);
}
int deinit() {
ObjectsDeleteAll();
return (0);
}
void SetValues() {
gi_208 = FALSE;
gi_212 = FALSE;
gi_216 = FALSE;
gi_220 = FALSE;
gi_224 = FALSE;
gi_228 = FALSE;
gi_232 = FALSE;
gi_236 = FALSE;
gi_240 = FALSE;
gi_244 = FALSE;
gi_248 = FALSE;
gi_252 = FALSE;
gi_256 = FALSE;
gi_260 = FALSE;
gi_264 = FALSE;
gi_268 = FALSE;
if (gi_200 == 1) gs_192 = "EURUSD";
if (gi_200 == 2) gs_192 = "GBPUSD";
if (gi_200 == 3) gs_192 = "EURAUD";
if (gi_200 == 4) gs_192 = "EURGBP";
gs_76 = StringSubstr(gs_192, 0, 3);
gs_84 = StringSubstr(gs_192, 3, 3);
if (gs_76 == "USD") gs_132 = 1;
if (gs_76 == "EUR") gs_132 = 2;
if (gs_76 == "GBP") gs_132 = 3;
if (gs_76 == "CHF") gs_132 = 4;
if (gs_76 == "JPY") gs_132 = 5;
if (gs_76 == "AUD") gs_132 = 6;
if (gs_76 == "CAD") gs_132 = 7;
if (gs_76 == "NZD") gs_132 = 8;
if (gs_84 == "USD") gs_140 = 1;
if (gs_84 == "EUR") gs_140 = 2;
if (gs_84 == "GBP") gs_140 = 3;
if (gs_84 == "CHF") gs_140 = 4;
if (gs_84 == "JPY") gs_140 = 5;
if (gs_84 == "AUD") gs_140 = 6;
if (gs_84 == "CAD") gs_140 = 7;
if (gs_84 == "NZD") gs_140 = 8;
if (gi_204 == 30) gs_148 = 4;
if (gi_204 == 60) gs_148 = 5;
if (gi_204 == 240) gs_148 = 6;
if (gi_204 == 1440) gs_148 = 7;
gi_156 = StrToInteger(StringConcatenate(gs_132, gs_140, gs_148));
if (StringFind(StringSubstr(gs_192, 0, 3), "USD", 0) != -1) gi_208 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "EUR", 0) != -1) gi_212 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "GBP", 0) != -1) gi_216 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "CHF", 0) != -1) gi_220 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "JPY", 0) != -1) gi_224 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "AUD", 0) != -1) gi_228 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "CAD", 0) != -1) gi_232 = TRUE;
if (StringFind(StringSubstr(gs_192, 0, 3), "NZD", 0) != -1) gi_236 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "USD", 0) != -1) gi_240 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "EUR", 0) != -1) gi_244 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "GBP", 0) != -1) gi_248 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "CHF", 0) != -1) gi_252 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "JPY", 0) != -1) gi_256 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "AUD", 0) != -1) gi_260 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "CAD", 0) != -1) gi_264 = TRUE;
if (StringFind(StringSubstr(gs_192, 3, 3), "NZD", 0) != -1) gi_268 = TRUE;
}
int start() {
gi_200++;
if (gi_200 > 17) gi_200 = 1;
SetValues();
CalculateValues();
CurrentPositionsCheck();
Trade();
ClosePositions();
WComment();
return (0);
}
void CalculateValues() {
double ld_224;
double ld_232;
double ld_240;
double ld_248;
double ld_256;
double ld_264;
double ld_272;
double ld_280;
double ld_288;
double ld_296;
double ld_304;
double ld_312;
double ld_320;
double ld_328;
double ld_336;
double ld_344;
double ld_0 = ma("EURUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_8 = ma("EURUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_16 = ma("GBPUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_24 = ma("GBPUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_32 = ma("AUDUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_40 = ma("AUDUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_48 = ma("NZDUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_56 = ma("NZDUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_64 = ma("USDCAD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_72 = ma("USDCAD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_80 = ma("USDCHF", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_88 = ma("USDCHF", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_96 = ma("USDJPY", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_104 = ma("USDJPY", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188);
double ld_112 = ma("EURUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_120 = ma("EURUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_128 = ma("GBPUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_136 = ma("GBPUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_144 = ma("AUDUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_152 = ma("AUDUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_160 = ma("NZDUSD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_168 = ma("NZDUSD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_176 = ma("USDCAD", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_184 = ma("USDCAD", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_192 = ma("USDCHF", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_200 = ma("USDCHF", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_208 = ma("USDJPY", 3, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
double ld_216 = ma("USDJPY", 5, MODE_LWMA, PRICE_WEIGHTED, gi_188 + 1);
if (gi_208 || gi_240) {
ld_224 = 0;
ld_224 += ld_8 / ld_0 - 1.0;
ld_224 += ld_24 / ld_16 - 1.0;
ld_224 += ld_40 / ld_32 - 1.0;
ld_224 += ld_56 / ld_48 - 1.0;
ld_224 += ld_80 / ld_88 - 1.0;
ld_224 += ld_64 / ld_72 - 1.0;
ld_224 += ld_96 / ld_104 - 1.0;
}
if (gi_212 || gi_244) {
ld_232 = 0;
ld_232 += ld_0 / ld_8 - 1.0;
ld_232 += ld_0 / ld_16 / (ld_8 / ld_24) - 1.0;
ld_232 += ld_0 / ld_32 / (ld_8 / ld_40) - 1.0;
ld_232 += ld_0 / ld_48 / (ld_8 / ld_56) - 1.0;
ld_232 += ld_0 * ld_80 / (ld_8 * ld_88) - 1.0;
ld_232 += ld_0 * ld_64 / (ld_8 * ld_72) - 1.0;
ld_232 += ld_0 * ld_96 / (ld_8 * ld_104) - 1.0;
}
if (gi_216 || gi_248) {
ld_240 = 0;
ld_240 += ld_16 / ld_24 - 1.0;
ld_240 += ld_8 / ld_24 / (ld_0 / ld_16) - 1.0;
ld_240 += ld_16 / ld_32 / (ld_24 / ld_40) - 1.0;
ld_240 += ld_16 / ld_48 / (ld_24 / ld_56) - 1.0;
ld_240 += ld_16 * ld_80 / (ld_24 * ld_88) - 1.0;
ld_240 += ld_16 * ld_64 / (ld_24 * ld_72) - 1.0;
ld_240 += ld_16 * ld_96 / (ld_24 * ld_104) - 1.0;
}
if (gi_228 || gi_260) {
ld_248 = 0;
ld_248 += ld_32 / ld_40 - 1.0;
ld_248 += ld_8 / ld_40 / (ld_0 / ld_32) - 1.0;
ld_248 += ld_24 / ld_40 / (ld_16 / ld_32) - 1.0;
ld_248 += ld_32 / ld_48 / (ld_40 / ld_56) - 1.0;
ld_248 += ld_32 * ld_80 / (ld_40 * ld_88) - 1.0;
ld_248 += ld_32 * ld_64 / (ld_40 * ld_72) - 1.0;
ld_248 += ld_32 * ld_96 / (ld_40 * ld_104) - 1.0;
}
if (gi_236 || gi_268) {
ld_256 = 0;
ld_256 += ld_48 / ld_56 - 1.0;
ld_256 += ld_8 / ld_56 / (ld_0 / ld_48) - 1.0;
ld_256 += ld_24 / ld_56 / (ld_16 / ld_48) - 1.0;
ld_256 += ld_40 / ld_56 / (ld_32 / ld_48) - 1.0;
ld_256 += ld_48 * ld_80 / (ld_56 * ld_88) - 1.0;
ld_256 += ld_48 * ld_64 / (ld_56 * ld_72) - 1.0;
ld_256 += ld_48 * ld_96 / (ld_56 * ld_104) - 1.0;
}
if (gi_232 || gi_264) {
ld_264 = 0;
ld_264 += ld_72 / ld_64 - 1.0;
ld_264 += ld_8 * ld_72 / (ld_0 * ld_64) - 1.0;
ld_264 += ld_24 * ld_72 / (ld_16 * ld_64) - 1.0;
ld_264 += ld_40 * ld_72 / (ld_32 * ld_64) - 1.0;
ld_264 += ld_56 * ld_72 / (ld_48 * ld_64) - 1.0;
ld_264 += ld_80 / ld_64 / (ld_88 / ld_72) - 1.0;
ld_264 += ld_96 / ld_64 / (ld_104 / ld_72) - 1.0;
}
if (gi_220 || gi_252) {
ld_272 = 0;
ld_272 += ld_88 / ld_80 - 1.0;
ld_272 += ld_8 * ld_88 / (ld_0 * ld_80) - 1.0;
ld_272 += ld_24 * ld_88 / (ld_16 * ld_80) - 1.0;
ld_272 += ld_40 * ld_88 / (ld_32 * ld_80) - 1.0;
ld_272 += ld_56 * ld_88 / (ld_48 * ld_80) - 1.0;
ld_272 += ld_88 / ld_72 / (ld_80 / ld_64) - 1.0;
ld_272 += ld_96 / ld_80 / (ld_104 / ld_88) - 1.0;
}
if (gi_224 || gi_256) {
ld_280 = 0;
ld_280 += ld_104 / ld_96 - 1.0;
ld_280 += ld_8 * ld_104 / (ld_0 * ld_96) - 1.0;
ld_280 += ld_24 * ld_104 / (ld_16 * ld_96) - 1.0;
ld_280 += ld_40 * ld_104 / (ld_32 * ld_96) - 1.0;
ld_280 += ld_56 * ld_104 / (ld_48 * ld_96) - 1.0;
ld_280 += ld_104 / ld_72 / (ld_96 / ld_64) - 1.0;
ld_280 += ld_104 / ld_88 / (ld_96 / ld_80) - 1.0;
}
if (gi_208 || gi_240) {
ld_288 = 0;
ld_288 += ld_120 / ld_112 - 1.0;
ld_288 += ld_136 / ld_128 - 1.0;
ld_288 += ld_152 / ld_144 - 1.0;
ld_288 += ld_168 / ld_160 - 1.0;
ld_288 += ld_192 / ld_200 - 1.0;
ld_288 += ld_176 / ld_184 - 1.0;
ld_288 += ld_208 / ld_216 - 1.0;
}
if (gi_212 || gi_244) {
ld_296 = 0;
ld_296 += ld_112 / ld_120 - 1.0;
ld_296 += ld_112 / ld_128 / (ld_120 / ld_136) - 1.0;
ld_296 += ld_112 / ld_144 / (ld_120 / ld_152) - 1.0;
ld_296 += ld_112 / ld_160 / (ld_120 / ld_168) - 1.0;
ld_296 += ld_112 * ld_192 / (ld_120 * ld_200) - 1.0;
ld_296 += ld_112 * ld_176 / (ld_120 * ld_184) - 1.0;
ld_296 += ld_112 * ld_208 / (ld_120 * ld_216) - 1.0;
}
if (gi_216 || gi_248) {
ld_304 = 0;
ld_304 += ld_128 / ld_136 - 1.0;
ld_304 += ld_120 / ld_136 / (ld_112 / ld_128) - 1.0;
ld_304 += ld_128 / ld_144 / (ld_136 / ld_152) - 1.0;
ld_304 += ld_128 / ld_160 / (ld_136 / ld_168) - 1.0;
ld_304 += ld_128 * ld_192 / (ld_136 * ld_200) - 1.0;
ld_304 += ld_128 * ld_176 / (ld_136 * ld_184) - 1.0;
ld_304 += ld_128 * ld_208 / (ld_136 * ld_216) - 1.0;
}
if (gi_228 || gi_260) {
ld_312 = 0;
ld_312 += ld_144 / ld_152 - 1.0;
ld_312 += ld_120 / ld_152 / (ld_112 / ld_144) - 1.0;
ld_312 += ld_136 / ld_152 / (ld_128 / ld_144) - 1.0;
ld_312 += ld_144 / ld_160 / (ld_152 / ld_168) - 1.0;
ld_312 += ld_144 * ld_192 / (ld_152 * ld_200) - 1.0;
ld_312 += ld_144 * ld_176 / (ld_152 * ld_184) - 1.0;
ld_312 += ld_144 * ld_208 / (ld_152 * ld_216) - 1.0;
}
if (gi_236 || gi_268) {
ld_320 = 0;
ld_320 += ld_160 / ld_168 - 1.0;
ld_320 += ld_120 / ld_168 / (ld_112 / ld_160) - 1.0;
ld_320 += ld_136 / ld_168 / (ld_128 / ld_160) - 1.0;
ld_320 += ld_152 / ld_168 / (ld_144 / ld_160) - 1.0;
ld_320 += ld_160 * ld_192 / (ld_168 * ld_200) - 1.0;
ld_320 += ld_160 * ld_176 / (ld_168 * ld_184) - 1.0;
ld_320 += ld_160 * ld_208 / (ld_168 * ld_216) - 1.0;
}
if (gi_232 || gi_264) {
ld_328 = 0;
ld_328 += ld_184 / ld_176 - 1.0;
ld_328 += ld_120 * ld_184 / (ld_112 * ld_176) - 1.0;
ld_328 += ld_136 * ld_184 / (ld_128 * ld_176) - 1.0;
ld_328 += ld_152 * ld_184 / (ld_144 * ld_176) - 1.0;
ld_328 += ld_168 * ld_184 / (ld_160 * ld_176) - 1.0;
ld_328 += ld_192 / ld_176 / (ld_200 / ld_184) - 1.0;
ld_328 += ld_208 / ld_176 / (ld_216 / ld_184) - 1.0;
}
if (gi_220 || gi_252) {
ld_336 = 0;
ld_336 += ld_200 / ld_192 - 1.0;
ld_336 += ld_120 * ld_200 / (ld_112 * ld_192) - 1.0;
ld_336 += ld_136 * ld_200 / (ld_128 * ld_192) - 1.0;
ld_336 += ld_152 * ld_200 / (ld_144 * ld_192) - 1.0;
ld_336 += ld_168 * ld_200 / (ld_160 * ld_192) - 1.0;
ld_336 += ld_200 / ld_184 / (ld_192 / ld_176) - 1.0;
ld_336 += ld_208 / ld_192 / (ld_216 / ld_200) - 1.0;
}
if (gi_224 || gi_256) {
ld_344 = 0;
ld_344 += ld_216 / ld_208 - 1.0;
ld_344 += ld_120 * ld_216 / (ld_112 * ld_208) - 1.0;
ld_344 += ld_136 * ld_216 / (ld_128 * ld_208) - 1.0;
ld_344 += ld_152 * ld_216 / (ld_144 * ld_208) - 1.0;
ld_344 += ld_168 * ld_216 / (ld_160 * ld_208) - 1.0;
ld_344 += ld_216 / ld_184 / (ld_208 / ld_176) - 1.0;
ld_344 += ld_216 / ld_200 / (ld_208 / ld_192) - 1.0;
}
if (gi_208) gd_100 = ld_224;
if (gi_212) gd_100 = ld_232;
if (gi_216) gd_100 = ld_240;
if (gi_220) gd_100 = ld_272;
if (gi_224) gd_100 = ld_280;
if (gi_228) gd_100 = ld_248;
if (gi_232) gd_100 = ld_264;
if (gi_236) gd_100 = ld_256;
if (gi_240) gd_116 = ld_224;
if (gi_244) gd_116 = ld_232;
if (gi_248) gd_116 = ld_240;
if (gi_252) gd_116 = ld_272;
if (gi_256) gd_116 = ld_280;
if (gi_260) gd_116 = ld_248;
if (gi_264) gd_116 = ld_264;
if (gi_268) gd_116 = ld_256;
if (gi_208) gd_108 = ld_288;
if (gi_212) gd_108 = ld_296;
if (gi_216) gd_108 = ld_304;
if (gi_220) gd_108 = ld_336;
if (gi_224) gd_108 = ld_344;
if (gi_228) gd_108 = ld_312;
if (gi_232) gd_108 = ld_328;
if (gi_236) gd_108 = ld_320;
if (gi_240) gd_124 = ld_288;
if (gi_244) gd_124 = ld_296;
if (gi_248) gd_124 = ld_304;
if (gi_252) gd_124 = ld_336;
if (gi_256) gd_124 = ld_344;
if (gi_260) gd_124 = ld_312;
if (gi_264) gd_124 = ld_328;
if (gi_268) gd_124 = ld_320;
}
double ma(string a_symbol_0, int ai_8, int a_ma_method_12, int a_applied_price_16, int ai_20) {
double ld_ret_24 = 0;
int li_32 = 1;
int li_36 = 0;
int l_timeframe_40 = 0;
switch (Period()) {
case PERIOD_M1:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 5;
case PERIOD_M5:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 3;
case PERIOD_M15:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 2;
case PERIOD_M30:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 2;
case PERIOD_H1:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 4;
case PERIOD_H4:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 6;
case PERIOD_D1:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 4;
case PERIOD_W1:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
li_32 += 4;
case PERIOD_MN1:
ld_ret_24 += iMA(a_symbol_0, l_timeframe_40, ai_8 * li_32, li_36, a_ma_method_12, a_applied_price_16, ai_20);
}
return (ld_ret_24);
}
void CurrentPositionsCheck() {
gi_160 = FALSE;
gi_164 = FALSE;
for (int l_pos_0 = 0; l_pos_0 <= OrdersTotal(); l_pos_0++) {
OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() == gi_156 && OrderType() == OP_BUY) gi_160 = TRUE;
if (OrderMagicNumber() == gi_156 && OrderType() == OP_SELL) gi_164 = TRUE;
}
}
void Trade() {
if (gd_100 > gd_116 && gd_108 < gd_124 && !gi_160) SafeOrderSend(gs_192, OP_BUY, LotSize, MarketInfo(gs_192, MODE_ASK), Slippage, 0, 0, gi_156, gi_156, 0, Blue);
if (gd_100 < gd_116 && gd_108 > gd_124 && !gi_164) SafeOrderSend(gs_192, OP_SELL, LotSize, MarketInfo(gs_192, MODE_BID), Slippage, 0, 0, gi_156, gi_156, 0, Red);
}
void ClosePositions() {
for (int l_pos_0 = 0; l_pos_0 <= OrdersTotal(); l_pos_0++) {
OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() == gi_156 && TimeCurrent() - OrderOpenTime() > gi_180) {
if (gd_100 < gd_116 && gd_108 > gd_124 && OrderType() == OP_BUY) SafeOrderClose(OrderTicket(), OrderLots(), MarketInfo(gs_192, MODE_BID), Slippage, Green);
if (gd_100 > gd_116 && gd_108 < gd_124 && OrderType() == OP_SELL) SafeOrderClose(OrderTicket(), OrderLots(), MarketInfo(gs_192, MODE_ASK), Slippage, Salmon);
}
}
}
void WaitForContext() {
while (IsTradeContextBusy() == TRUE) {
Sleep(1);
RefreshRates();
}
RefreshRates();
}
int SafeOrderSend(string a_symbol_0, int a_cmd_8, double a_lots_12, double ad_20, int a_slippage_28, double ad_32, double ad_40, string a_comment_48 = "", int a_magic_56 = 0, int a_datetime_60 = 0, color a_color_64 = -1) {
int l_error_68 = 146;
int l_ticket_72 = -1;
for (int l_count_76 = 0; l_count_76 < 2 && l_ticket_72 < 0; l_count_76++) {
while (l_error_68 == 146/* TRADE_CONTEXT_BUSY */ && l_ticket_72 == -1) {
WaitForContext();
l_ticket_72 = OrderSend(a_symbol_0, a_cmd_8, a_lots_12, NormalizeDouble(ad_20, MarketInfo(gs_192, MODE_DIGITS)), a_slippage_28, NormalizeDouble(ad_32, MarketInfo(gs_192, MODE_DIGITS)), NormalizeDouble(ad_40, MarketInfo(gs_192, MODE_DIGITS)), a_comment_48, a_magic_56, a_datetime_60, a_color_64);
l_error_68 = GetLastError();
}
}
return (l_ticket_72);
}
int SafeOrderClose(int a_ticket_0, double a_lots_4, double a_price_12, int a_slippage_20, color a_color_24 = -1) {
int l_error_28 = 146;
bool l_ord_close_32 = FALSE;
for (int l_count_36 = 0; l_count_36 < 2 && l_ord_close_32 == 0; l_count_36++) {
while (l_error_28 == 146/* TRADE_CONTEXT_BUSY */ && l_ord_close_32 == 0) {
WaitForContext();
if (OrderType() == OP_BUY || OrderType() == OP_SELL) l_ord_close_32 = OrderClose(a_ticket_0, a_lots_4, a_price_12, a_slippage_20, a_color_24);
l_error_28 = GetLastError();
}
}
return (l_ord_close_32);
}
void WComment() {
string ls_0 = "unknown";
string ls_8 = "unknown";
if (gd_100 < gd_116) ls_0 = "Short";
if (gd_100 > gd_116) ls_0 = "Long";
if (gd_108 < gd_124) ls_8 = "Short";
if (gd_108 > gd_124) ls_8 = "Long";
g_y_92 = 40;
DrawFxLbl("write1",
"\n Pair : " + gs_192);
DrawFxLbl("write2",
"\n Current Direction : " + ls_0);
DrawFxLbl("write3",
"\n Past Direction : " + ls_8);
DrawFxLbl("write4",
"\n Fvalue : " + gd_100 + " " + gd_108);
DrawFxLbl("write5",
"\n Svalue : " + gd_116 + " " + gd_124);
}
void DrawFxLbl(string a_name_0, string a_text_8) {
g_y_92 += gi_96;
if (ObjectFind(a_name_0) < 0) ObjectCreate(a_name_0, OBJ_LABEL, 0, 0, 0);
ObjectSet(a_name_0, OBJPROP_CORNER, 0);
ObjectSet(a_name_0, OBJPROP_XDISTANCE, 3);
ObjectSet(a_name_0, OBJPROP_YDISTANCE, g_y_92);
ObjectSet(a_name_0, OBJPROP_BACK, FALSE);
ObjectSetText(a_name_0, a_text_8, 16, "Courier", Aqua);
}
- 13-05-2011, 09:24 PM #10
- 13-05-2011, 09:50 PM #11
- 13-05-2011, 11:59 PM #12
بالفعل نحتاج من يفك لنا رموز هذا الاكسبيرت