求教下单脚本问题?
//+------------------------------------------------------------------+
//| trade.mq4 |
//| Copyright ?2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
#include
#include
bool bOrder = false;
void Wait()
{
while( IsTradeContextBusy() )
{
Sleep(100);
}
}
//=============== function: getInitSL (returns Prev Bar Low / High +/- cusion amount)
double getInitSL(double price)
{
double ATRSL;
double LowSL;
ATRSL=price-20*Point;
LowSL=Low[iLowest(NULL,0,MODE_LOW,14,0)];
//Print("ATRSL=",ATRSL,"LowSL=",LowSL);
if((ATRSLLowSL)&&(LowSL<=price)) {return(LowSL-(Ask-Bid));}
else if((price
发表于:2011-05-06 12:51只看该作者
2楼
同问啊,怎么没人解决呢?
韬客社区www.talkfx.co