Trading & Business  

العودة   Trading & Business > Main Category > forex - trading - marketing 2012 - markets

forex - trading - marketing 2012 - markets forex - 2013 trading - 2014 marketing 2012 - markets

Solving Non Closure of Trades due to a FIFO Violation MT4 EA

I often open a number of trades in one direction and the EA closes out all trades in one hit. But I always get FIFO violations. I've not been so

إضافة رد
 
أدوات الموضوع انواع عرض الموضوع
قديم 17-02-2012, 02:38 AM   #1
Forex Trading 2012
Senior Member
 
تاريخ التسجيل: 12 - 12 - 2011
المشاركات: 220
افتراضي Solving Non Closure of Trades due to a FIFO Violation MT4 EA

<div>I often open a number of Trades in one direction and the EA closes out all Trades in one hit. But I always get FIFO violations.

I've not been so concerned as they eventually get processed within a few seconds, that is until today when it seems it didn't, Oh time for action!

Could someone kindly look at the code below and edit it so as to select the earliest order for Closure first!


void closeAllPoisitions(int type)
{
//close all
int oc = orderCount(type);
while(oc > 0)
{
int total = OrdersTotal();
RefreshRates();
for(int cnt = 0 ;cnt

المصدر: Trading & Business


Solving Non Closure of Trades due to a FIFO Violation MT4 EA

Forex Trading 2012 غير متواجد حالياً   رد مع اقتباس
إضافة رد

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع


الساعة الآن 06:00 AM بتوقيت مسقط


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd. Designed & TranZ By Almuhajir