عرض مشاركة واحدة
قديم 23-05-2013, 06:27 PM   المشاركة رقم: 17
الكاتب
Fxcol
عضو نشيط

البيانات
تاريخ التسجيل: Jan 2012
رقم العضوية: 7800
المشاركات: 248
بمعدل : 0.05 يوميا

الإتصالات
الحالة:
Fxcol غير متواجد حالياً
وسائل الإتصال:

كاتب الموضوع : Fxcol المنتدى : منتدى شركات الوساطة و برامج التداول و موقع اف اكس كوميشن FXCOMMISSION
افتراضي رد: تاجر مباشرة على اكسل من خلال المتاتريدر

[PHP]


#import "mt4excel.dll" bool ExcelOpen () ;/ / Opens Excel and creates a blank page bool ExcelClose () ;/ / Close Excel bool ExcelOpenPattern (int NumPatt) ;/ / Open the Excel Pattern bool ExcelOpenFile (string FileName) ;/ / Open the Excel file bool ExcelSave () ;/ / save the file bool ExcelSaveAs (string FileName) ;/ / save the file in the FileName bool ExcelAddSheet (string Name) ;/ / Add sheet and make it active bool ExcelSetFormulaCell (int X, int Y, string Value) ;/ / Write the formula in cell double ExcelGetValueCell (int X, int Y) ;/ / counts the number of cells string ExcelGetTextCell (int X, int Y) ;/ / Read the text from a cell string ExcelGetFormulaCell (int X, int Y) ;/ / Read the formula in cell bool ExcelSetDiagramma(int TypeD,string Title,string XRange,string YRange,int Left,int Top,int Riht,int Bottom);//adds diagrams bool ExcelDiagrammaAddRange () ;/ / Add data to a chart. The first line - the title bool ExcelSetValueCell (int X, int Y, double Value) ;/ / Write the number in a cell bool ExcelSetTextCell (int X, int Y, string Value) ;/ / save the text in a cell bool ExcelSetRange (string Range) ;/ / Remember range string ExcelGetFormat () ;/ / Returns the format range bool ExcelSetFormat (string Format) ;/ / Set the format for diapozana bool ExcelSetFormula (string Formula) ;/ / write the formula in a range bool ExcelIsFormula () ;/ / true if the formula is in the range int ExcelRangeCount () ;/ / Number of cells in a range string ExcelRangeAdress () ;/ / Address Range bool ExcelRangeColumnWidth (int Width) ;/ / Bandwidth bool ExcelRangeRowHeight (int Height) ;/ / height range bool ExcelRangeInteriorColor (int Color) ;/ / background color range bool ExcelRangeFontColor (int Color) ;/ / font color range int ExcelGetLastErrorCode () ;/ / last error Excel string ExcelGetLastErrorText () ;/ / The text of the last error Excel #import




السلام عليكم

كل الشكر للاستاذ وضاح عطار من منتدى الجيران على شرحه لهذا الموضوع المفيد


لكن تبقى تقنية DDE محدودة .



وهنا تاتي طريقة اخرى تتيح للمتاتريدر و اكسل التواصل في الجهتين

بحيث يستطيع المتاتريدر وضع و اخذ المعلومات بكل حرية من اي خانة

و استعمالها في المؤشرات او الاكسبيرتات...

هذه الطريقة تعتمد على مكتبة mt4excel.dll





mt4excel.dll هي مكتبة مكتوبة في دلفي. لاستدعاء DLL، تتم تهيئة المكتبة .
قبل الاستخدام، يجب استدعاء واحدة من الوظائف التالية: ExcelOpen أو ExcelOpenPattern أو ExcelOpenFile.يتم إنشاء كائن OLE، و فتح MS Excel، يتم إنشاء ملف وصفحة جديدة من خلال نموذج أو يتم فتح ملف Excel موجود (اعتمادا على الدالة) إغلاق ExcelClose بواسطة MS Excel و تحرير الكائن OLE.
يمكنك القراءة والكتابة في خلية منفصلة: ExcelSetFormulaCell، ExcelSetValueCell، ExcelSetTextCell، ExcelGetValueCell، ExcelGetTextCell، ExcelGetFormulaCell، أو في فئة محفوظة ببواسطة الدالة ExcelSetRange، ثم استخدام ExcelSetFormula، على سبيل المثال، أو غيرها من المهام .
وهناك عدد من الوظائف المساعدة لإدارة عرض المعلومات، وما إلى ذلك يمكنك العثور على مزيد من التفاصيل عنها في تعليقات المثال.



[PHP]


[/PHP]
[/PHP]









في المثال الشامل

ضع المكتبة في المتاتريدر و المؤشر في ملف المؤشرات


لا تنسونا من دعواتكم الصالحة



عرض البوم صور Fxcol  
رد مع اقتباس
  #17  
قديم 23-05-2013, 06:27 PM
Fxcol Fxcol غير متواجد حالياً
عضو نشيط
افتراضي رد: تاجر مباشرة على اكسل من خلال المتاتريدر

[PHP]


#import "mt4excel.dll" bool ExcelOpen () ;/ / Opens Excel and creates a blank page bool ExcelClose () ;/ / Close Excel bool ExcelOpenPattern (int NumPatt) ;/ / Open the Excel Pattern bool ExcelOpenFile (string FileName) ;/ / Open the Excel file bool ExcelSave () ;/ / save the file bool ExcelSaveAs (string FileName) ;/ / save the file in the FileName bool ExcelAddSheet (string Name) ;/ / Add sheet and make it active bool ExcelSetFormulaCell (int X, int Y, string Value) ;/ / Write the formula in cell double ExcelGetValueCell (int X, int Y) ;/ / counts the number of cells string ExcelGetTextCell (int X, int Y) ;/ / Read the text from a cell string ExcelGetFormulaCell (int X, int Y) ;/ / Read the formula in cell bool ExcelSetDiagramma(int TypeD,string Title,string XRange,string YRange,int Left,int Top,int Riht,int Bottom);//adds diagrams bool ExcelDiagrammaAddRange () ;/ / Add data to a chart. The first line - the title bool ExcelSetValueCell (int X, int Y, double Value) ;/ / Write the number in a cell bool ExcelSetTextCell (int X, int Y, string Value) ;/ / save the text in a cell bool ExcelSetRange (string Range) ;/ / Remember range string ExcelGetFormat () ;/ / Returns the format range bool ExcelSetFormat (string Format) ;/ / Set the format for diapozana bool ExcelSetFormula (string Formula) ;/ / write the formula in a range bool ExcelIsFormula () ;/ / true if the formula is in the range int ExcelRangeCount () ;/ / Number of cells in a range string ExcelRangeAdress () ;/ / Address Range bool ExcelRangeColumnWidth (int Width) ;/ / Bandwidth bool ExcelRangeRowHeight (int Height) ;/ / height range bool ExcelRangeInteriorColor (int Color) ;/ / background color range bool ExcelRangeFontColor (int Color) ;/ / font color range int ExcelGetLastErrorCode () ;/ / last error Excel string ExcelGetLastErrorText () ;/ / The text of the last error Excel #import




السلام عليكم

كل الشكر للاستاذ وضاح عطار من منتدى الجيران على شرحه لهذا الموضوع المفيد


لكن تبقى تقنية DDE محدودة .



وهنا تاتي طريقة اخرى تتيح للمتاتريدر و اكسل التواصل في الجهتين

بحيث يستطيع المتاتريدر وضع و اخذ المعلومات بكل حرية من اي خانة

و استعمالها في المؤشرات او الاكسبيرتات...

هذه الطريقة تعتمد على مكتبة mt4excel.dll





mt4excel.dll هي مكتبة مكتوبة في دلفي. لاستدعاء DLL، تتم تهيئة المكتبة .
قبل الاستخدام، يجب استدعاء واحدة من الوظائف التالية: ExcelOpen أو ExcelOpenPattern أو ExcelOpenFile.يتم إنشاء كائن OLE، و فتح MS Excel، يتم إنشاء ملف وصفحة جديدة من خلال نموذج أو يتم فتح ملف Excel موجود (اعتمادا على الدالة) إغلاق ExcelClose بواسطة MS Excel و تحرير الكائن OLE.
يمكنك القراءة والكتابة في خلية منفصلة: ExcelSetFormulaCell، ExcelSetValueCell، ExcelSetTextCell، ExcelGetValueCell، ExcelGetTextCell، ExcelGetFormulaCell، أو في فئة محفوظة ببواسطة الدالة ExcelSetRange، ثم استخدام ExcelSetFormula، على سبيل المثال، أو غيرها من المهام .
وهناك عدد من الوظائف المساعدة لإدارة عرض المعلومات، وما إلى ذلك يمكنك العثور على مزيد من التفاصيل عنها في تعليقات المثال.



[PHP]


[/PHP]
[/PHP]









في المثال الشامل

ضع المكتبة في المتاتريدر و المؤشر في ملف المؤشرات


لا تنسونا من دعواتكم الصالحة




رد مع اقتباس