النتائج 31 إلى 40 من 40
- 04-04-2011, 07:14 AM #31
طيب جرب على شركة MB trading
- 05-04-2011, 12:26 PM #32
هلأ هنا انا عندي سؤال ما لقيت جوابه للحين
ماذا يعين إضفة خاصية العمل على ECN يعني برمجيا شو بيتغير او شو لب الفكرة
انا بعرف الفرق بين ECN والماركت ميكر او ديلينغ ديسك انه وحدة تنفيذها مباشر من البنوك والثانية من الماركت ميكر
يعني ايش رح تفرق لو فعلنا ميزة ECN ؟؟؟
وبخصوص تفعيل ال 5 خانات عشرية
بإمكانكم بس تضيفو صفر للهدف والستوب لوز يمكن ينفع
إلا إذا في شي انا ما بعرفو أرجو التوضيح
- 05-04-2011, 01:16 PM #33
الله اعلم
هذه اجابات عند مستردولار
لانى شايف من خلال متابعتى للمنتديات الاجنبيه ان فى فرق بين 4 و 5 ديجتال فى الكود وهناك فرق ايضا بموضوع الماركت ميكر والبنوك المباشرة
- 05-04-2011, 04:11 PM #34
ECN in programing
It means that the EA has to ENTER the trade first and then SET the TP & SL.
Here's a way of how to make the EA work with 5 Digits and also adding the ECN code.. it's not mine but belongs to a great person who helped me and i want you ask Allah to protect him and help him to get through this hard time cuz he lives in Japan.
we identified " extern bool ECN=fasle;"... you know now it is outside variable and it is bool type; means True or False... and make sure to put at the end semicolon ( ; ) since it is very important...
also we identified the following:
extern double StopLoss=30;
extern double TakeProfit=100;
extern double Slippage =3;
extern int MagicNumber=12345;
Note: double used for any number including decimals like 20.5, 30.5778
int used for any real number like 1313, 12312, 12421312, 354363, 324523 etc... so you can't use 20.5 means no decimal numbers
then we also did the same for other gloabl variables, but without allowing them to be seen in the expert properties window outside when attached on the chart, and they are:
double StopLossLevel;
double TakeProfitLevel;
int Ticket;
now you can add money management variable based on what you have in your code, but this one used LotsOptimized() ... so you should have MM code written in your code as well...
now if you look at 3rd draft picture, everything is working ok... and let me explain a little here:
if (!ECN)
{
StopLossLevel = Ask - StopLoss * Point;
TakeProfitLevel = Ask + TakeProfit * Point;
Ticket = OrderSend(Symbol(), OP_BUY, LotsOptimized(), NormalizeDouble(Ask,Digits),Slippage,
NormalizeDouble(StopLossLevel,digit),NormalizeDouble(TakeProfitLevel,digit),
"Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
we start with if (!ECN), that is different from if (ECN)... and it is because of this sign ( !) that means NOT...
then we identify stop loss and take profit using these equations so we can use them in the code:
StopLossLevel = Ask - StopLoss * Point;
TakeProfitLevel = Ask + TakeProfit * Point;
Note that this one is only for Buy orders, and we use only Ask in this case while we use Bid in Sell orders...
so if we want to write that same for Sell orders, it will be like this:
StopLossLevel = Bid + StopLoss * Point;
TakeProfitLevel = Bid - TakeProfit * Point;
now we write the code again for ECN so TP and SL is going to be zero value in OrderSend function and then we modify them because of teh ECN rules...
it will be like this:
Ticket = OrderSend(Symbol(), OP_BUY, LotsOptimized(),NormalizeDouble(Ask,Digits),Slippage,0,0,
"Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
you can now look at the code attached Test1 and see how it was written...
and the same thing we did for the ECN sell order code...
Now changing the code to be 4/5 digits adopted...
in int() function, we add the following code:
int init()
{
if(Digits==5||Digits==3)Q=10;
else Q=1;
if(Digits<4)
{
point=0.01;
digit=2;
}
else
{
point=0.0001;
digit=4;
}
return(0);
}
This code is going to find out whether the digits and points are 4, 5, 3 or any other
so in this case, we already used digit in our Ordersend function, but need to verify other variables... like Take profit, Stoploss etc...
examples:
Slippage*Q
StopLossLevel = Ask - StopLoss * point;
TakeProfitLevel = Ask + TakeProfit * point;
so in this case, Slippage will be multiplied by Q, all Take profit multiplied by point, NOT Point... (there is big difference in here)
and Stop Loss multiplied by point as well....
Hope that can help.
El Salam Alecum Warahmato Allah wa barakato!
.gif)
.gif)
- 05-04-2011, 04:29 PM #35
- 05-04-2011, 06:10 PM #36
والله طلع كلام الاجانب صحيح
من جد هناك فرق بين 5 ديجتال وبين الماركت ميكر وبين رابط السوق الحقيقى
كل يوم معلومه جديده والشكر لله ثم للمنتديات الاجنبيه الشفافه التى تشرح كل شئ بشفافيه بدون حركات الوسطاء والتعتيم يلي يملئ منتدياتنا
- 09-04-2011, 06:04 PM #37
تفضل قمت بعمل التعديل على النسخه الأخيره المرفقه
تم إضافة خاصية تحديد توقيت عمل الإكسبرت
سيعمل على بروكر ECN لتفعيله من المتغير ECN_Broker
خاصية إخفاء الهدف والأستوب لوز
- 09-04-2011, 06:07 PM #38
جزاك الله خير
فى شئ اهم منه بخصوص الاحصائات لانه مرتبط باكسبريتات اخرى
لان هذا الاكسبريت ما اقدر اختبره الان وقت الاجازة لان اغلب البنوك مغلقه وفرق الاسبريد طاير فوق 8 نقطه وهذا يؤثر فى الباك تست
لذلك سوف ننتظر حتى يفتحون لنشوف ادائه مع التعديلات
- 26-07-2011, 06:40 PM #39
- 30-07-2011, 09:05 PM #40
هل من جديد هنا
الأكثر زيارة
رد مع اقتباس