Quote:
|
Originally Posted by iscuba11
I am confused. Why can I not make it into a scomment so I can watch the value change on the screen??
Dave
<><<<
|
Hi Dave,
I think the point of the message was to isolate the components to see if
sw_buy=iCustom(NULL,0,"Solar Wind-a",period,1,0);
is actually being set to something. BUT, as I reread your message it looks like you aren't having PROBLEMS getting it to show up, but rather are just asking for coding help to add the information. I think we all jumped to the conclusion that you had added it, but it wasn't working.
Anyway, to add it to the code, just do:
Code:
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 + "SW_Buy=" + sw_buy + NL;
sComment = sComment + sp;
Comment(sComment);
}
Does that help?
Cheers,
CS