Skip This Ad >>
 
Register
Forgotten your password?
The Facebook Platform
Forex-TSD - Powered by vBulletin
Loading search...
Advanced search
  • Home
  • Forums
    Free sections Exclusive sections All sections
  • Register
    Create new account
  • More Recent
    Latest Threads Today's Posts
  • Rankings
    Most popular threads this month Most popular threads created this month Most linked threads this month Most active users Most reputed users
  • Calendar
  • Advertising
  • Others
    Blogs Toolbar
  • Help
    Contact Us FAQ
  • Premium Forum
  • Home
  • Forum
  • Downloads
  • Tools and utilities
  • MT4 Files Functions Replacement.

Like Tree2Likes
  • Top
  • All
  • This Page

Thread: MT4 Files Functions Replacement.



  • LinkBack
    • LinkBack URL LinkBack URL
    • About LinkBacks About LinkBacks
    •  
    • Bookmark & Share
    • Digg this Thread!
    • Add Thread to del.icio.us
    • Bookmark in Technorati
    • Tweet this thread
  • Thread Tools
    • Show Printable Version
    • Email this Page…
    • Subscribe to this Thread…
  • Display
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
Results 1 to 10 of 107
Page 1 of 11 123 ... Next LastLast
8 8 Attachment(s)

  1. 11-20-2005 01:18 AM #1
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Thumbs up MT4 Files Functions Replacement.

    Hi folks,

    A lot of people asked me and metaquotes forum about file handling functions.
    I think MT4 have a lot of bugs in those functions.
    1- They don't work in backtesting
    2- They don't write outside "MetaTrader 4\experts\files" path.

    Today I opened my Visual C++ and wrote a file handling dll for MT4, I hope you enjoy it, and its source code, and tell me your .

    Setup:
    1- Extract the "mtguru1.dll" to "MetaTrader 4\experts\libraries" path.
    2- Extract "FilesDemo.mq4" to "MetaTrader 4\experts\indicators" path and compile it.
    3- Extract "gFiles.mqh" to "MetaTrader 4\experts\include".
    4- Load FilesDemo from your Indicators - don't forget to enbable "Allow DLL Import"
    5- Enjoy.
    Attached Files
    • File Type: zip mtguru1.zip (94.8 KB, 2298 views)
    Last edited by codersguru; 11-25-2005 at 01:26 PM. Reason: gFiles.mqh
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    vishal gandhi likes this.
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  2. 11-21-2005 12:22 PM #2
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Unhappy Feedback

    Hi folks,

    Any feedback please ?
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  3. 11-21-2005 01:39 PM #3
    fivewhy
    fivewhy is offline Junior Member
    Points: 6,046, Level: 8
    Level completed: 59%, Points required for next Level: 454
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    12
    Points
    6,046
    Level
    8
    Achievements:
    Veteran500 Experience Points
    Well, I haven't tested it. But if it works..that is AWESOME!!
    I checked out the demo .mq4 file, and it is so simple and elegant. Good work.

    The only issue I have is what to do about new lines.
    How do I use gFile to write a new line?
    Last edited by fivewhy; 11-21-2005 at 01:58 PM.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  4. 11-21-2005 02:09 PM #4
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Thumbs up Thank!

    Quote Originally Posted by fivewhy
    Well, I haven't tested it. But if it works..that is AWESOME!!
    I checked out the demo .mq4 file, and it is so simple and elegant. Good work.

    The only issue I have is what to do about new lines.
    How do I use gFile to write a new line?
    fivewhy,

    Thank you very much for your comment.
    I think the new line printing issue needs some work from me, Thanks for the notice.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  5. 11-21-2005 08:48 PM #5
    Beluck's Avatar
    Beluck
    Beluck is offline Senior Member
    Points: 65,245, Level: 37
    Level completed: 75%, Points required for next Level: 955
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    208
    Points
    65,245
    Level
    37
    Achievements:
    Veteran250 Experience Points
    well done , but file functions (as well as many other) may be used directly from windows API dlls.

    example of file copy function import:

    #import "Kernel32.dll"
    bool CopyFileA (string source_file, string destination_file, bool if_exist);

    with DLLs you can do a lot of things, like SQL database access and so on.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  6. 11-21-2005 08:58 PM #6
    fivewhy
    fivewhy is offline Junior Member
    Points: 6,046, Level: 8
    Level completed: 59%, Points required for next Level: 454
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    12
    Points
    6,046
    Level
    8
    Achievements:
    Veteran500 Experience Points
    where can I find a list of all functions available in kernel32.dll (and other windows .dll's)?

    Edit: Found it. See attched.
    Attached Files
    • File Type: txt kernel32.txt (305.8 KB, 1025 views)
    Last edited by fivewhy; 11-21-2005 at 09:21 PM.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  7. 11-21-2005 10:27 PM #7
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Question That's right, but?

    Quote Originally Posted by Beluck
    well done , but file functions (as well as many other) may be used directly from windows API dlls.

    example of file copy function import:

    #import "Kernel32.dll"
    bool CopyFileA (string source_file, string destination_file, bool if_exist);

    with DLLs you can do a lot of things, like SQL database access and so on.
    Beluck,
    That's right , but could you give me .mql demo shows me how to use the kernel32 functions CreateFile, OpenFile,WriteFile and ReadFile in MQL4

    Code:
    HANDLE CreateFile(
      LPCTSTR lpFileName,
      DWORD dwDesiredAccess,
      DWORD dwShareMode,
      LPSECURITY_ATTRIBUTES lpSecurityAttributes,
      DWORD dwCreationDisposition,
      DWORD dwFlagsAndAttributes,
      HANDLE hTemplateFile
    );
    
    HFILE OpenFile(
      LPCSTR lpFileName,
      LPOFSTRUCT lpReOpenBuff,
      UINT uStyle
    );
    
    BOOL WriteFile(
      HANDLE hFile,
      LPCVOID lpBuffer,
      DWORD nNumberOfBytesToWrite,
      LPDWORD lpNumberOfBytesWritten,
      LPOVERLAPPED lpOverlapped
    );
    
    BOOL ReadFile(
      HANDLE hFile,
      LPVOID lpBuffer,
      DWORD nNumberOfBytesToRead,
      LPDWORD lpNumberOfBytesRead,
      LPOVERLAPPED lpOverlapped
    );
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  8. 11-25-2005 10:21 AM #8
    sx ted
    sx ted is offline Junior Member
    Points: 4,302, Level: 6
    Level completed: 78%, Points required for next Level: 198
    Overall activity: 0%
    Join Date
    Nov 2005
    Posts
    6
    Points
    4,302
    Level
    6
    Achievements:
    Veteran500 Experience Points

    ted

    alerts.mqh not part of mtguru1.zip, could not run FilesDemo? Thanking you in advance.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  9. 11-25-2005 01:25 PM #9
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    gFiles.mqh

    Quote Originally Posted by sx ted
    alerts.mqh not part of mtguru1.zip, could not run FilesDemo? Thanking you in advance.
    sx ted,

    I'm sorry, I meant "gFiles.mqh"

    To run FilesDemo:

    1- Extract the "mtguru1.dll" to "MetaTrader 4\experts\libraries" path.
    2- Extract "FilesDemo.mq4" to "MetaTrader 4\experts\indicators" path and compile it.
    3- Extract "gFiles.mqh" to "MetaTrader 4\experts\include".
    4- Load FilesDemo from your Indicators - don't forget to enbable "Allow DLL Import"
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  10. 11-25-2005 03:07 PM #10
    sx ted
    sx ted is offline Junior Member
    Points: 4,302, Level: 6
    Level completed: 78%, Points required for next Level: 198
    Overall activity: 0%
    Join Date
    Nov 2005
    Posts
    6
    Points
    4,302
    Level
    6
    Achievements:
    Veteran500 Experience Points

    ted

    CodersGuru, thank u super, have u got equivalent of FileTell()
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

Page 1 of 11 123 ... Next LastLast
8 8 Attachment(s)

Quick Navigation Tools and utilities Top
  • Site Areas
  • Settings
  • Private Messages
  • Subscriptions
  • Who's Online
  • Search Forums
  • Forums Home
  • Forums
  • Announcements
    1. Announcements Blog
  • Exclusive Forum
    1. Elite Section
  • Forex Press
    1. Analytics
    2. Articles
    3. Success Stories
  • Discussion Areas
    1. General Discussion
    2. Metatrader 4
      1. Metatrader 3
    3. Metatrader 5
    4. Post and compare Trades
    5. Setup Questions
    6. Suggestions for Trading Systems
    7. Documentation
    8. Strategy Trader
  • Non Related Discussions
  • Downloads
    1. Indicators - Metatrader 4
      1. Indicators - Metatrader 3
      2. Indicators - Metatrader 5
    2. Manual trading systems
    3. Expert Advisors - Metatrader 4
      1. TSD Expert Advisors
      2. Expert Advisors - Metatrader 5
      3. Expert Advisors - Metatrader 3
    4. Tools and utilities
    5. Tools and utilities - Strategy Trader
  • Trading systems
    1. CatFx50
    2. Brain Systems
    3. Ema Cross
    4. Harmonic trading
    5. The "XO"-Method
    6. Phoenix
    7. Dolly
    8. Digital Filters
    9. Martingale/Average Cost and Hedging
  • Automated Trading
    1. News/Signal Trading
    2. FX Signals Marketplaces
  • Commercial systems
    1. Commercial Trading Systems and indicators
    2. Raw Commercial Ideas
    3. Evaluate Commercial Ideas
  • Brokers
    1. Metatrader brokers
  • Programming
    1. MetaTrader Programming
    2. TradeStation Programming
  • Training
    1. Metatrader
      1. Metatrader 4 mql 4 - Development course
        1. Questions
        2. Lessons
    2. TradeStation

» Popular Tags

analysis best broker best ea BrainTrading broker camarilla chart charts code copier custom EA day trading ea coding elliot EQUITY eurusd expert adviser expert advisor fibonacci

» Rankings

Hottest Threads

1  Eurusd/gbpusd
2  CatFx50
3  10points 3.mq4
4  FxOpen
5  Multi Timeframe Indicators

view more
 

Most Popular Threads

1  Multi Timeframe In...
2  CatFx50
3  Something interesting pl...
4  The Murrey Math Trading System
5  Show Us Your Best

view more

» FEATURED BROKERS



« Previous Thread | Next Thread »

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lesson 7 - Functions
    By codersguru in forum Lessons
    Replies: 4
    Last Post: 11-05-2011, 12:24 PM
  2. File Functions
    By intelligent_14 in forum Questions
    Replies: 6
    Last Post: 07-11-2006, 08:37 PM
  3. Unusual Functions
    By intelligent_14 in forum Questions
    Replies: 3
    Last Post: 06-23-2006, 11:20 PM
  4. Appendix 2 - Trading functions
    By codersguru in forum Lessons
    Replies: 8
    Last Post: 12-26-2005, 01:46 PM

Tags for this Thread

  • awesome,
  • metatrader kernel32.dll,
  • MT4 FILES,
  • mtguru1.dll,
  • mtguru1.zip,
  • Awesome,
  • mt4 file functions,
  • mt4 file,
  • metatrader file handling,
  • IN10TION NewsReader

View Tag Cloud

Bookmarks

Bookmarks
  • Submit to Digg Digg
  • Submit to del.icio.us del.icio.us
  • Submit to Technorati Technorati
  • Submit to Furl Furl
  • Submit to StumbleUpon StumbleUpon
  • Submit to Reddit Reddit
  • Submit to Facebook Facebook
  • Submit to Blink List Blink List
  • Submit to Google Google
  • Submit to Yahoo My Web Yahoo My Web
  • Submit to Twitter Twitter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off
  • Trackbacks are On
  • Pingbacks are On
  • Refbacks are On

Forum Rules

Forums
  • Free sections
  • Exclusive sections
  • All sections
Calendar Social Networking
Premium Forum
  • Elite Membership
  • Advanced Membership
All times are GMT. The time now is 09:00 AM.
Terms and Conditions
PRIVACY POLICY
Powered by vBulletin® Version 4.1.11
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Digital Point modules: Sphinx-based search

Subscribe today and get...

Elite Membership
  • Elite Trading Systems
  • Propietary Indicators
  • Private Performance Reports
  • Elite EAs Source Code
  • 24/5 Trading Support!
Advanced Membership
  • Elite benefits, plus:
  • - MT4 & MT5 cutting-edge indicators.
  • - Advanced propieatry indicators and its source codes.
  • - Free conversion of MT4 indicatiors to MT5.
View our best offer!