Thread: Solar wind
View Single Post
  #17 (permalink)  
Old 10-30-2006, 02:58 PM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Question Help me get the sw_buy value to display!

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>0sDirection="UP";
    if (
sw_sell_cur<0sDirection="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
<><<<
Reply With Quote