取移動平均線的值並顯示出來!!
void subPrintDetails()
{
string sComment =
字符串sp = "-\ n ";
字符串NL = " \ n
string sDirection =
雙S _ P;
雙D _ P;
sComment = sp
sComment = sComment +“我的MACD汽車交易系統”+NL;
s comment = s comment+sp;
s comment = s comment+" Profit _ FF = "+double tostr(Profit _ FF,0)+" | ";?
s comment = s comment+" Stops _ FF = "+double tostr(Stops _ FF,0)+NL;
s comment = s comment+" Profit _ FFF = "+DoubleToStr(Profit _ FFF,0)+" | ";?
s comment = s comment+" Stops _ FFF = "+double tostr(Stops _ FFF,0)+NL;
s comment = s comment+" flag _ ADX = "+double tostr(flag _ ADX,0)+NL;
s comment = s comment+" adx 1 = "+double tostr((iADX(NULL,0,14,PRICE_HIGH,MODE_MAIN,1)),Digits)+NL;
s comment = s comment+" FF _ FF = "+double tostr(FF _ FF,0)+" | ";
s comment = s comment+" C _ MACD[1]= "+DoubleToStr(C _ MACD[1],數字)+" | ";
//s comment = s comment+" C _ MACD _ 1 = "+DoubleToStr(C _ MACD[1],數字)+NL;
//s comment = s comment+sp;
//s comment = s comment+sp;
// sComment = sComment+"凈資產值="+double tostr (account equity(),digits)+" | "+nl;
//s comment = s comment+sp;
//s comment = s comment+sp;
//s comment = s comment+" account profit = "+doubletostr(account profit(),digits)+nl;
//s comment = s comment+" C _ low 14 _ 50 = "+double tostr(C _ low 14 _ 50,Digits)+NL;
//s comment = s comment+sp;
//s comment = s comment+" Lots = "+double tostr(Lots,2)+" | ";
//
//?s comment = s comment+" TT = "+double tostr(TT,數字)+NL;
//s comment = s comment+sp;?
評論(s comment);
//?return(0);
}
這是我自己的代碼,顯示的不是移動平均線,,,