The function fnFileWrite is used to write a single line of to a file. The configuration of the file is defined in the File IO System Manager.


The Configure tab contains the parameter for the file name:




Parameter Name


Data type

Description

FileName

string

The name of the file to read.


MetaTrader will only read files in the MT platform "Files" folder, for example:


C:\Program Files (x86)\FXCM MetaTrader 4\MQL4\Files



The Line Data tab contains parameters for the Column Data defined in the File IO System Manager.

For this example, we have added Columns named SymbolName, BidPrice and AskPrice.




Note: There will be no parameters shown if no Columns have been added in the File IO System Manager.


Parameter Name


Data type

Description

SymbolName

string

As defined by the user in in the File IO System Manager.

BidPrice


double

As defined by the user in in the File IO System Manager.

AskPrice


double

As defined by the user in in the File IO System Manager.






Related Topics:
What is VTS
System Requirements
Installing VTS
Main Menu
Toolbox FUNCTIONS Pane
Expert Advisor Facts
Configure
PLATFORM Function
Custom Indicators
TRADETIME Manager
COMMUNICATION Manager
Message
Logic
Options
MetaTrader Platform Configuration
Compiler
Compiler Flags
Platform
Editor
EA Output Folder
Custom Indicator Folder
Package
fnOpenOrder
fnModifyOrder
fnCloseOrder
Getting Started
MetaTrader Platform
Journal Tab
Experts Tab
Expert Menu
MQL Help
Trade Tab
ECN Brokers
Logic
Candlestick Function Parameters
Candlestick Drawing
Using Easy Email with the fnSendEzEmail Function
Testing the Easy Email Connection
Objects on the MetaTrader platform
Manually drawing a trend line
Removing a trend line
Building an Expert Advisor to draw and manage a trend line
Script & Multi-Platform Plug-in
Building a MetaTrader Script
Using the Multi-Platform Feature
Client-Side Stops Plug-in
Emergency Stops
Using Client-Side Stops
Objects on the MetaTrader Platform
Manually Drawing a Fibonacci Retracement
Removing a Fibonacci Retracement
Building an Expert Advisor to draw and manage a Fibonacci retracement
Signal Type: Element
Signal Type: Logic Condition
Using the Code Block Feature
EA-Indicator Price Chart
EA-Indicator Video
Chart Objects Plug-in
fnDrawHorizontalLine
fnDrawVerticalLine
fnDrawArrow
fnDrawThumb
fnDrawLabel
fnDrawText
fnDrawCheckSign
fnDrawStopSign
Chart Objects on a MetaTrader Price chart
Adding Symbols
EA Secure Configuration
Chart Execute Plug-in
Chart Execute Configuration
Chart Execute on Price Chart
Using Chart Execute
Chart Execute Notes
Pivot Points on a MetaTrader Price Chart
fnFileRead
fnDeleteFile
Multi Trade on a MetaTrader Price Chart
Using the Debug Manager Plug-in
MQL Event Documentation