2楼
MT3的API接口支持分比数据接收,也就是说MT内部是支持分比数据接收的,可是我对API不懂,北京的外软通做了一个API接口,可以用飞狐,分析家接收MT的数据,但是要收费。
韬客外汇论坛TALKFOREX.COM
发表于:2006-09-09 08:15只看该作者
4楼
楼主的想法很好 ,楼上的这个不好呀,MT里要是有个象招行2.0里的那个能够显示时时价格的图就好了.能够知道最高与最低价出现的具体时间.我现在两个一起看.很麻烦
”势“不可挡!!!!!!!!
发表于:2006-09-11 13:51只看该作者
5楼
说句实话.....这东东....其实.....不和股票一样.....
分笔的数据各个服务器都不一样 根本没法分析......
遇到矛盾 先站在对方的立场上想想问题,先试着去理解别人
● 如何使用WinMTR查询平台连接流畅度
6楼
老正大哥说的没错,谢谢
能否再帮我看看标题为“如何调用其它指标的参数 ”
看看能否实现
韬客外汇论坛TALKFOREX.COM
7楼
//+------------------------------------------------------------------+
//| FXTticksCollector.mq4 |
//| Copyright ?2006, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2006, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#include
int ExtHandle=-1;
string ExtFileName;
int ExtBars;
int ExtTicks;
datetime ExtLastBarTime;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
ExtLastBarTime=0;
ExtTicks=0;
ExtBars=0;
ExtFileName=Symbol()+Period()+"_0.fxt";
ExtHandle=FileOpen(ExtFileName,FILE_BIN|FILE_READ);
//----
if(ExtHandle<0)
{
//---- file does not exist
WriteHeaderAndFirstBars();
if(ExtHandle<0) return;
}
else
{
if(!ReadAndCheckHeader(ExtHandle,Period(),ExtBars))
{
//---- file is wrong
FileClose(ExtHandle);
WriteHeaderAndFirstBars();
}
else
{
CheckWrittenBars();
//---- reopen file for write
FileClose(ExtHandle);
ExtHandle=FileOpen(ExtFileName,FILE_BIN|FILE_READ|FILE_WRITE);
FileSeek(ExtHandle,0,SEEK_END);
//---- check for absentee bars after last run
if(ExtLastBarTime
8楼
//+------------------------------------------------------------------+
//| FXTticksCollector.mq4 |
//| Copyright ?2006, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2006, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#include
int ExtHandle=-1;
string ExtFileName;
int ExtBars;
int ExtTicks;
datetime ExtLastBarTime;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
ExtLastBarTime=0;
ExtTicks=0;
ExtBars=0;
ExtFileName=Symbol()+Period()+"_0.fxt";
ExtHandle=FileOpen(ExtFileName,FILE_BIN|FILE_READ);
//----
if(ExtHandle<0)
{
//---- file does not exist
WriteHeaderAndFirstBars();
if(ExtHandle<0) return;
}
else
{
if(!ReadAndCheckHeader(ExtHandle,Period(),ExtBars))
{
//---- file is wrong
FileClose(ExtHandle);
WriteHeaderAndFirstBars();
}
else
{
CheckWrittenBars();
//---- reopen file for write
FileClose(ExtHandle);
ExtHandle=FileOpen(ExtFileName,FILE_BIN|FILE_READ|FILE_WRITE);
FileSeek(ExtHandle,0,SEEK_END);
//---- check for absentee bars after last run
if(ExtLastBarTime
韬客外汇论坛TALKFOREX.COM
9楼
Name: FXTticksCollector
Author: stringo
Downloaded: 495
Download: FXTticksCollector.mq4 (6.9 Kbytes) View
The expert collects every incoming tick into the FXT file in realtime mode. The FXT file symbol and period correspond with the symbol and period of the chart the expert is attached to.
The FXTHeader must be preliminarily downloaded from the Libraries section.
--------------
(http://codebase.mql4.com/517)
韬客外汇论坛TALKFOREX.COM
10楼
必须要支持FXT的软件打开,谁知道FXT软件是啥,怎么用,在哪里可以下?
韬客外汇论坛TALKFOREX.COM
11楼
终于找到了,下面的代码可以在副窗口实时显示分笔的曲线,有谁能把它转换成MT3,因为MT3的速度比MT4快,而且数据质量好。
--------------------
//+------------------------------------------------------------------+
//| Ticks.mq4 |
//| Copyright ? 2005, Yuri Makarov |
//| http://mak.tradersmind.com |
//+------------------------------------------------------------------+
#property copyright "Copyright ? 2005, Yuri Makarov"
#property link "http://mak.tradersmind.com"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Green
extern int Length = 300;
extern int BarVolume = 1;
double tick;
double CumPrice = 0;
int CurVol = 0;
int IStart = 1;
int init()
{
IndicatorShortName("Ticks");
SetIndexBuffer(0, tick);
SetIndexStyle (0, DRAW_LINE);
IStart = 1;
}
int start()
{
if (IStart == 1)
{
for (int i = 0; i < Bars; i++) tick = EMPTY_VALUE;
IStart = 0;
}
CurVol++;
CumPrice += Bid;
if (CurVol >= BarVolume)
{
for (i = Length; i >= 0; i--) tick[i + 1] = tick;
tick[0] = CumPrice / CurVol;
CurVol = 0;
CumPrice = 0;
}
}
[ 本帖最后由 老正 于 2006-9-14 15:58 编辑 ]
发表于:2006-09-14 07:58只看该作者
12楼
谢谢....不过那个问题偶是不明白..... 偶这个版主晕指标 哈哈
遇到矛盾 先站在对方的立场上想想问题,先试着去理解别人
● 如何使用WinMTR查询平台连接流畅度
13楼
上面的指标运行时有“断档”,现更正如下:
(老正大哥,我的问题已解决,谢谢~)
//+------------------------------------------------------------------+
//| Ticks.mq4 |
//| Copyright ? 2005, Yuri Makarov |
//| http://mak.tradersmind.com |
//+------------------------------------------------------------------+
#property copyright "Copyright ? 2005, Yuri Makarov"
#property link "http://mak.tradersmind.com"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 White
#property indicator_color2 Red
extern int Length = 10000;
extern int BarVolume = 1;
double tick;
double CumPrice = 0;
int CurVol = 0;
int IStart = 1;
int init()
{
IndicatorShortName("Ticks");
SetIndexBuffer(0, tick);
SetIndexStyle (0, DRAW_LINE);
IStart = 1;
return(0);
}
int start()
{
if (IStart == 1)
{
for (int i = 0; i < Bars; i++) tick = EMPTY_VALUE;
IStart = 0;
}
CurVol++;
CumPrice = Bid;
if (CurVol >= BarVolume)
{
for (i = Length; i >= 0; i--)
tick[i + 1] = tick;
tick[0] = CumPrice;
CurVol = 0;
CumPrice = 0;
if(tick[1]> 2000)
{
tick[1]=tick[2];
}
}
//------------------
return(0);
}
韬客外汇论坛TALKFOREX.COM