|
|
发表于 24-4-2009 09:55 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 24-4-2009 11:08 AM
|
显示全部楼层
我的fap 今天有trade EG,现在 输着20++pip....
真的大支鸟。。。 |
|
|
|
|
|
|
|
|
|
|
发表于 24-4-2009 11:16 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 12:21 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 12:24 AM
|
显示全部楼层
原帖由 fxwell 于 24-4-2009 11:16 PM 发表 
这样啊。。我不懂做么两天鸟都不跑的。。。
之前有trade吗?
有就甭管它,它觉得危险就不玩。 |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 26-4-2009 10:05 AM
|
显示全部楼层
几天没看,回来一看,EG输了很多。。 aih。。。 |
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 09:07 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 10:52 AM
|
显示全部楼层
回复 607# lantern 的帖子
之前是有开的。。可能这几天危险,他不开吧 |
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 11:18 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 02:06 PM
|
显示全部楼层
|
今天没开,只开星期二-到星期五而已。这个星期有11-12%(模拟) |
|
|
|
|
|
|
|
|
|
|
发表于 25-4-2009 08:36 PM
|
显示全部楼层
回复 611# lantern 的帖子
|
original 的。我觉得有update跟没update都是一样的吧? |
|
|
|
|
|
|
|
|
|
|
发表于 26-4-2009 10:49 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 26-4-2009 10:50 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 26-4-2009 08:23 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 27-4-2009 02:14 PM
|
显示全部楼层
测试EA过程真不简单。
1。找好的ea,
2. 找好的交易商
3。 模拟测试(forwardtesting) 需要时间
4。小仓测试(真钱)需要时间和金钱
现在ikofx 如果真仓和模拟是用同个server, 就进入最后阶段了。
剩下就是公司能耐多久,差价能维持多久? |
|
|
|
|
|
|
|
|
|
|
发表于 28-4-2009 10:57 AM
|
显示全部楼层
原帖由 yan7181 于 27-4-2009 02:14 PM 发表 
测试EA过程真不简单。
1。找好的ea,
2. 找好的交易商
3。 模拟测试(forwardtesting) 需要时间
4。小仓测试(真钱)需要时间和金钱
现在ikofx 如果真仓和模拟是用同个server, 就进入最后阶段了。
剩下就是公司 ...
看来yan有研究过哦。。
我用着IBFX之前还有小赚。现在可不敢说了。。。
期待你继续的研究与分享!
 |
|
|
|
|
|
|
|
|
|
|
发表于 28-4-2009 11:52 AM
|
显示全部楼层
|
死笨,竟然没有记得开ea,浪费今天测试机会了。真仓和模拟的server是不同的,(ikofx)。 |
|
|
|
|
|
|
|
|
|
|
发表于 30-4-2009 02:04 PM
|
显示全部楼层
请教版大
此乃 The 80's HEIKEN 1hour indicator.
我想自己学看看怎样做简单的EA..但是有毫无头绪。
请问, 我要在那里填我要buy or sell 的指令?
是不是从你第一楼的教学里面把 buy和sell的 variable和condition
抄下来,然后修改内容 paste进去?
bool OpenBuySignal()
{
if(extern color color2 = green || extern color color4 = green
bool OpenSellSignal()
{
if(extern color color1= Red || extern color color3 = Red
{
return (true);
}else{
return (false);
}
}
bool CloseBuySignal()
{
if( extern color color1= Red || extern color color3 = Red
bool CloseSellSignal()
{
if(extern color color2 = green || extern color color4 = green
{
return (true);
}else{
return (false);
}
}
这上面我想,
开单条件= indicator显示green bar, 就Buy; red bar 就sell
关单条件 = indicator显示redbar就把buy的close; greenbar就 把sell的close.
Custom indicator initialization function
Custom indicator deinitialization function
Custom indicator iteration function
以上三句代表什么?
以下为这个HEIKEN indicator的code
我在 meta editor 打开的
//+------------------------------------------------------------------+
//| Heiken Ashi.mq4 |
//| Copyright c 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
//| For Heiken Ashi we recommend next chart settings ( press F8 or |
//| select on menu 'Charts'->'Properties...'): |
//| - On 'Color' Tab select 'Black' for 'Line Graph' |
//| - On 'Common' Tab disable 'Chart on Foreground' checkbox and |
//| select 'Line Chart' radiobutton |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Red
#property indicator_color2 Green
#property indicator_color3 Red
#property indicator_color4 Green
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 3
#property indicator_width4 3
//----
extern color color1 = Red;
extern color color2 = green;
extern color color3 = Red;
extern color color4 = green;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
//----
int ExtCountedBars=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//|------------------------------------------------------------------|
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_HISTOGRAM, 0, 1, color1);
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexStyle(1,DRAW_HISTOGRAM, 0, 1, color2);
SetIndexBuffer(1, ExtMapBuffer2);
SetIndexStyle(2,DRAW_HISTOGRAM, 0, 3, color3);
SetIndexBuffer(2, ExtMapBuffer3);
SetIndexStyle(3,DRAW_HISTOGRAM, 0, 3, color4);
SetIndexBuffer(3, ExtMapBuffer4);
//----
SetIndexDrawBegin(0,10);
SetIndexDrawBegin(1,10);
SetIndexDrawBegin(2,10);
SetIndexDrawBegin(3,10);
//---- indicator buffers mapping
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexBuffer(3,ExtMapBuffer4);
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//---- TODO: add your code here
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double haOpen, haHigh, haLow, haClose;
if(Bars<=10) return(0);
ExtCountedBars=IndicatorCounted();
//---- check for possible errors
if (ExtCountedBars<0) return(-1);
//---- last counted bar will be recounted
if (ExtCountedBars>0) ExtCountedBars--;
int pos=Bars-ExtCountedBars-1;
while(pos>=0)
{
haOpen=(ExtMapBuffer3[pos+1]+ExtMapBuffer4[pos+1])/2;
haClose=(Open[pos]+High[pos]+Low[pos]+Close[pos])/4;
haHigh=MathMax(High[pos], MathMax(haOpen, haClose));
haLow=MathMin(Low[pos], MathMin(haOpen, haClose));
if (haOpen<haClose)
{
ExtMapBuffer1[pos]=haLow;
ExtMapBuffer2[pos]=haHigh;
}
else
{
ExtMapBuffer1[pos]=haHigh;
ExtMapBuffer2[pos]=haLow;
}
ExtMapBuffer3[pos]=haOpen;
ExtMapBuffer4[pos]=haClose;
pos--;
}
//----
return(0);
}
希望版大抽空回复我的问题 
谢谢
//+------------------------------------------------------------------+ |
|
|
|
|
|
|
|
|
|
|
发表于 30-4-2009 05:34 PM
|
显示全部楼层
void buyme(){
if (TP==0) { TPP=0; } if(TP>0) { TPP=Ask+TP*Point; }
if (SL==0) { SLL=0; } if(SL>0) { SLL=Ask-SL*Point; }
OrderSend(Symbol(),OP_BUY,LotMM,Ask,int slip=6,SLL,TPP,"M"+Period()+"",0,0,Violet);
这个是底下这里拿来的。但是他出现问题在"M"+Period()+"" .....
如何修改这里来完成呢?
http://cforum1.cari.com.my/viewt ... 7713&highlight= |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 2-5-2009 07:07 PM
|
显示全部楼层
|
在main chart的indicator很难解释,我觉得下载一个heiken ashi EA来参考会更容易明白 |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|