SL and TP not appearing when I assign a TP or SL value. pls help.

 

I assign a TP and SL value but it doesn't appear on the trade view, how can I fix this? I would also like it to show the number 0.0000 when I don't set a TP and SL value. Thanks!

 

Files:
TP_and_SL.jpg  57 kb
 

How did you set SL and TP?

What does the logs say: Journal and Expert?

 
Carl Schreiber #:

How did you set SL and TP?

What does the logs say: Journal and Expert?

I set up the TP and SL through the trade function, so like:   trade.buy(1, _Symbol, 0, 0.9, 1.2);

                                                                                                                                 SL   TP

 
  1. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
         How To Ask Questions The Smart Way. (2004)
              Be precise and informative about your problem

    I don't know what a "trade" is.

  2. makdog # trade.buy(1, _Symbol, 0, 0.9, 1.2);
    This looks like you are trying to open an order with zero lots. Of course that fails.
Reason: