I'm about to give up on this language. Need help building correctly... - page 2

 

I think William is implying if I understand correctly

TP and SL for BUY trade (long);

double TP = (Bid + ATR_TP*Point-spread);
double SL = (Bid - ATR_TP*Point+spread);


TP and SL for SELL trade (short);

double TP = (Ask - ATR_TP*Point+ spread);
double SL = (Ask + ATR_TP*Point+ spread);


 
Ahmad Zuhairdi Noh: well, yes it is..
double TP = (Bid - ATR_TP*Point);
double SL = (Ask + ATR_TP*Point);
Well, no it is. Nowhere do you ever see ATR_SL. Open your eyes. There is only ATR_TP.

Brian Rumbles: I think William is implying if I understand correctly
double TP = (Bid + ATR_TP*Point-spread);
double SL = (Bid - ATR_TP*Point+spread);
Wrong - there is no need to add or subtract the spread. A buy order is closed by the Bid - OP was using the Ask.
 
Ok, understood
Reason: