Hello Friends,
Can any one help to find what is going wrong in this code? i am getting an error ')' Parameter expected when i compile.
It will be great if someone help in this issue. Please see the code below
*****************************************
void comments()
{ string s0="", s1="", s2="", s3="", swap="", sCombo="", sStr ;
int PipsProfit;
double AmountProfit;
PipsProfit=0; AmountProfit=0;
PosCounter();
if (b.ticket>0)
{ OrderSelect(b.ticket,SELECT_BY_TICKET);
PipsProfit=NormalizeDouble(((Bid - OrderOpenPrice())/Point),Digits);
AmountProfit=OrderProfit();
}
else if (s.ticket>0)
{ OrderSelect(s.ticket,SELECT_BY_TICKET);
PipsProfit=NormalizeDouble(((OrderOpenPrice()-Ask)/Point),Digits);
AmountProfit=OrderProfit();
}
if (Exit.On.Yellow) s0="Exit if Yellow on "+Exit.On.Yellow.Period+" min";
else s0="";
if (Move.To.BreakEven.at.pips>0) s1="s/l will move to b/e after: "+Move.To.BreakEven.at.pips+" pips and lock: "+Move.To.BreakEven.Lock.pips+" pips"+"\n\n";
else s1="";
if (Use.Juice) s2="Use Juice: Yes Juice.TimeFrame: "+Juice.TimeFrame+"\n";
else s2="Use Juice: No";
if (Use.Adx) s3="Use ADX: Yes ADX TimeFrame:"+Adx.TimeFrame +" Adx Threshold: "+Adx.Threshold+"\n";
else s3="Use ADX: No";
if (Use.Only.First2.Indicators) sCombo=Trigger.Period+"/"+Filter.Period.1;
else sCombo=Trigger.Period+"/"+Filter.Period.1+"/"+Filter.Period.2;
Comment( ScreenComment,"\n",
"Today\'s Range: ",TodaysRange,"\n",
"Combo Used: ",sCombo," ",s0,"\n",
"s/l: ",StopLoss.Pips," tp:",TakeProfit.Pips," trail:",Trail.Pips,"\n",
s1,"\n",
s2,"\n",
s3,"\n",
"\n", "Pips: ",PipsProfit," / $ ", AmountProfit,
);



Reply With Quote

