Thread: Solar wind
View Single Post
  #3 (permalink)  
Old 10-31-2006, 03:23 AM
cubesteak's Avatar
cubesteak cubesteak is offline
Senior Member
 
Join Date: Jul 2006
Location: Southern California
Posts: 163
cubesteak is on a distinguished road
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
__________________

Join the MultiBroker M1 and TICK Data Bank Project

Imagine 90-99% modeling quality in MT4 back testing with free data from your broker!
Come see our current list of covered brokers.
Reply With Quote