海龟交易代码java_[转载]海龟交易系统 MT4 源码

//+------------------------------------------------------------------+

//| GoHan Turtle Trader.mq4 |

//| Copyright ?2008, gohanforex.com |

//| http://www.gohanforex.com |

//+------------------------------------------------------------------+

#property copyright "Copyright ?2008, gohanforex.com"

#property

link "http://www.gohanforex.com"

extern color LabelColor=White;

extern int LabelFontSize=8;

extern color S1LongEntryLineColor=Blue;

extern color S2LongEntryLineColor=LightBlue;

extern color S1andS2LongEntryLineColor=Lime;

extern color S1ExitLinesColor=Yellow;

extern color S1ShortEntryLineColor=Red;

extern color S2ShortEntryLineColor=Pink;

extern color S1andS2ShortEntryLineColor=Orange;

int MaxCommentsToShow=25;

string allcomments[];

datetime lastcheck;

bool periodOK=false;

int MagicNumber=12345;

int S1Periods=20;

int S2Periods=55;

double S1LongEntry=0;

double S1ShortEntry=0;

double S2LongEntry=0;

double S2ShortEntry=0;

double S1LongExit=0;

double S1ShortExit=0;

double S2LongExit=0;

double S2ShortExit=0;

int S1LongEntryBar=0;

int S1ShortEntryBar=0;

int S2LongEntryBar=0;

int S2ShortEntryBar=0;

int S1LongExitBar=0;

int S1ShortExitBar=0;

double HighPriceArray[];

double LowPriceArray[];

double CurrentATR;

double UnitSizing;

double TradeRisk=0.01;

int ATRTakeProfitMultiplier=2;

int ATRStopLossMultiplier=2;

//+------------------------------------------------------------------+

//| expert initialization

function |

//+------------------------------------------------------------------+

int init()

{

manageupperstatus("GoHan

Turtles Trader - gohanforex.com, CR 2009");

if(Period()==1440)

{

periodOK=true;

managelowerstatus("http://www.gohanforex.com");

managecomments("Turtle Trading Started");

CalcTurtleValues(); drawentries(S1LongEntry, S2LongEntry, S1ShortEntry, S2ShortEntry,

S1LongExit, S1ShortExit);

}

else

{

periodOK=false;

managelowerstatus("ERROR: This scanner must be used on a

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值