مطلوب نصيحة عاجلة وشكرا مسبقا......
السلام عليكم
اريد نصيحة من الاخوة المبرمجين
هذا السكربت يقوم بفتح 10 صفقات سال
المشكل هو عند قيامه بفتح الصفقات لو تغير السعر بنقطة واحدة يتوقف عن فتح الصفقات
انا اريده ان يستمر في فتح الصفقات حتى لو تغير السعر 10 نقاط
استعملت خاصية slippage و لكن لا شيء تغير
ارجوا المساعدة و شكرا مسبقا كود:
//+------------------------------------------------------------------+
//| JMBUYER.mq4 |
//| Copyright © 2008, PRMQuotes Software Corp. |
//| [email protected] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, PRMQuotes Software Corp."
#include <stdlib.mqh>
#include <WinUser32.mqh>
//+----------------------------------------------------------------------+
//| To modify Lotsize of script change value listed here, right now |
//| its set to 1.0 change that value if you desire different lotsize |
//| I have found that it is important to keep the decimal in place, |
//| but really dont know why yet, but fractional lots work too (ex... |
//| 0.1, 0.3, 1.12), you get the picture. |
//| AGAIN DONT FORGET TO SAVE AND COMPILE AFTER MAKING ANY MODIFICATIONS |
//+----------------------------------------------------------------------+
extern double Lots = 1.0;
//+---Don't forget to save and compile after changing the Lotsize--------+
//+------------------------------------------------------------------+
//| Each of the following lines produces an individual order |
//| 10 lines produces 10 orders, to increase or decrease the number |
//| of individual orders either add, or take away identical lines |
//| within the parenthesis. Again dont forget to save and compile |
//| time you modify the code. |
//+------------------------------------------------------------------+
int start()
{
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
return(0);
}
//+------------------------------------------------------------------+
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
هل الغرض من هذا الإسكربت هو فتح صفقات بمجرد تفعيله على الشارت
جرب الإكسبرت في هذا الموضوع سيفيدك
https://forum.arabictrader.com/t93053.html
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اقتباس:
المشاركة الأصلية كتبت بواسطة MR.dollar
شكرا على الرد السريع
نعم كما قلت انت الغرض من هذا الإسكربت هو فتح صفقات بمجرد تفعيله على الشارت
فهل يوجد حل؟؟؟؟؟
بالنسبة للاكسبرت الذي اقترحته فيه كثير من النتغيرات لو امكن تساعدني في هذا الكود ومشكور على الرد مرة اخرى
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اظن انه لا توجد مساعدة غير نصيحة الاخ مستر دولار ...؟؟؟؟
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اقتباس:
المشاركة الأصلية كتبت بواسطة bilou
اظن انه لا توجد مساعدة غير نصيحة الاخ مستر دولار ...؟؟؟؟
هل يقوم الإسكربت بفتح جميع الصفقات إذا لم يتحرك السعر نقطة وهل يظهر أي خطأ في الجورنال
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اقتباس:
المشاركة الأصلية كتبت بواسطة MR.dollar
هل يقوم الإسكربت بفتح جميع الصفقات إذا لم يتحرك السعر نقطة وهل يظهر أي خطأ في الجورنال
دائما في الاستماع .... حفظك الله
نعم اذا لم يتحرك السعر نقطة يفتح العشر صفقات بدون مشاكل
ولكن اذا تغير يتوقف اظن ان السكربت يعمل على السعر الذي وضعته عليه فقط
شكرا اخي
1 مرفق
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اقتباس:
المشاركة الأصلية كتبت بواسطة bilou
دائما في الاستماع .... حفظك الله
نعم اذا لم يتحرك السعر نقطة يفتح العشر صفقات بدون مشاكل
ولكن اذا تغير يتوقف اظن ان السكربت يعمل على السعر الذي وضعته عليه فقط
شكرا اخي
حولت لك الإسكربت إلى إكسبرت قم بوضعه في مجلد experts وسيعمل بدون مشاكل بإذن الله
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اقتباس:
المشاركة الأصلية كتبت بواسطة MR.dollar
حولت لك الإسكربت إلى إكسبرت قم بوضعه في مجلد experts وسيعمل بدون مشاكل بإذن الله
شكرا لك اخي وبارك الله فيك
وعندي طلب اذا امكن طود الاكسبرت
رد: مطلوب نصيحة عاجلة وشكرا مسبقا......
اقتباس:
المشاركة الأصلية كتبت بواسطة bilou
شكرا لك اخي وبارك الله فيك
وعندي طلب اذا امكن طود الاكسبرت
أرفقت لك الإكسبرت بصيغة mq4 فيمكنك فتحه والإطلاع على الكود بنفسك
وعلى العموم أرفقت لك الكود أيضا
كود PHP:
//+------------------------------------------------------------------+
//| JMBUYER.mq4 |
//| Copyright © 2008, PRMQuotes Software Corp. |
//| [email protected] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, PRMQuotes Software Corp."
//+----------------------------------------------------------------------+
//| To modify Lotsize of script change value listed here, right now |
//| its set to 1.0 change that value if you desire different lotsize |
//| I have found that it is important to keep the decimal in place, |
//| but really dont know why yet, but fractional lots work too (ex... |
//| 0.1, 0.3, 1.12), you get the picture. |
//| AGAIN DONT FORGET TO SAVE AND COMPILE AFTER MAKING ANY MODIFICATIONS |
//+----------------------------------------------------------------------+
extern double Lots = 1.0;
//+---Don't forget to save and compile after changing the Lotsize--------+
//+------------------------------------------------------------------+
//| Each of the following lines produces an individual order |
//| 10 lines produces 10 orders, to increase or decrease the number |
//| of individual orders either add, or take away identical lines |
//| within the parenthesis. Again dont forget to save and compile |
//| time you modify the code. |
//+------------------------------------------------------------------+
bool enter=true;
int start()
{
if(enter){
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-10*Point,"JMSELLER",0,0,CLR_NONE);
enter=false;
}
return(0);
}
//+--------------------------
//+------------------------------------------------------------------+