TakeShrt(SymBid,ProfitTarget, SymPoints,SymDigits) ????
qjol:
TakeShrt(SymBid,ProfitTarget, SymPoints,SymDigits) ????
oops. Sorry.
double TakeShrt(double price,double take,double point,double SymDgts ) { if(take==0) { return(0);} else { return(NormalizeDouble( price-(MathAbs(take)*point),SymDgts));} }
Change this:
datetime tmpTime=TimeSeconds(TimeCurrent());
To this:
datetime tmpTime=TimeCurrent();
How do you put the date in for expiration in the OrderSend function if your using a 'pending order' command? If I replace tmpTime+3450 w/ 0, it works.
I also get an 'invalid stops - 130' on my order modify.
Anyone got any ideas? I'd appreciate it. TIA!