sw_buy=iCustom(NULL,0,"Solar Wind-a",period,1,0);
PHP Code:
//----------------------- PRINT COMMENT FUNCTION
void subPrintDetails()
{
string sComment = "";
string sp = "----------------------------------------\n";
string NL = "\n";
string sDirection = "";
if (sw_buy_cur>0) sDirection="UP";
if (sw_sell_cur<0) sDirection="DOWN";
sComment = "SOLAR WIND EA" + NL;
sComment = sComment + "TakeProfit=" + DoubleToStr(TakeProfit,0) + " | ";
sComment = sComment + "TrailingStop=" + DoubleToStr(TrailingStop,0) + " | ";
sComment = sComment + "StopLoss=" + DoubleToStr(StopLoss,0) + NL;
sComment = sComment + sp;
sComment = sComment + "Solar Wind Direction=" + sDirection + " | ";
sComment = sComment + "Lots=" + DoubleToStr(Ilo,2) + " | ";
sComment = sComment + "LastTrade=" + DoubleToStr(TradeLast,0) + " | ";
sComment = sComment + "MM=" + DoubleToStr(mm,0) + " | ";
sComment = sComment + "Risk=" + DoubleToStr(Risk,0) + "%" + NL;
sComment = sComment + "Trade=" + DoubleToStr((CntOrd(OP_BUY,MagicNumber)+CntOrd(OP_SELL,MagicNumber)),0) + NL;
sComment = sComment + sp;
Comment(sComment);
}
I am not familiar with this type of display verbage for an ea. I would like the value of sw_buy to display at the very end of the display so that I can confirm what is being inputed. Would you assist me?
Dave
<><<<