Thread: How to code?
View Single Post
  #1018 (permalink)  
Old 06-10-2008, 08:19 PM
payback payback is offline
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
one stupid question everything inside the {} is your comment or i have to write it? and why? why {;} and not {}; ?
also can i still use this statment right?

PHP Code:
if(SellCondition)
      {
         
ticket        subOpenOrder(OP_SELL,NewStopLossSell,TakeProfit,TicketComment); // open SELL order
         
subCheckError(ticket,"SELL");
         
LastTrade     "SELL";
         return(
0); 

or i have to write:

PHP Code:
if(SellCondition true)
      {
         
ticket        subOpenOrder(OP_SELL,NewStopLossSell,TakeProfit,TicketComment); // open SELL order
         
subCheckError(ticket,"SELL");
         
LastTrade     "SELL";
         return(
0); 

Last edited by payback; 06-10-2008 at 08:35 PM.
Reply With Quote