How can I create a script that create both buy and sell order at 10 pips apart from the current price? - page 2

 
paul.seldon:

This is the code. inside start().


The code works . . .

2013.10.24 13:03:23 VariousFunctionTest EURUSD,H1: deinitialized

2013.10.24 13:03:23 VariousFunctionTest EURUSD,H1: SellStop placed ! !

2013.10.24 13:03:23 VariousFunctionTest EURUSD,H1: open #52095560 sell stop 0.50 EURUSD at 1.37977 ok

2013.10.24 13:03:22 VariousFunctionTest EURUSD,H1: BuyStop placed ! !

2013.10.24 13:03:22 VariousFunctionTest EURUSD,H1: open #52095559 buy stop 0.50 EURUSD at 1.38193 ok

2013.10.24 13:03:20 VariousFunctionTest EURUSD,H1: initialized

now show your output and reported errors . . .

 
RaptorUK:

The code works . . .

now show your output and reported errors . . .


Did you actually run it and saw two dash lines apart from the current price?

I don't. Ok On Monday, I will run it and posted the output without fail - Thanks a lot -

Also, do you mind if I ask you to post the code that you used to print those out and where I could see those are printed? Thanks in advance -

 
paul.seldon:


Did you actually run it and saw two dash lines apart from the current price?

I don't. Ok On Monday, I will run it and posted the output without fail - Thanks a lot -

Of course I did, where do you think the log output I quoted came from ?

paul.seldon:


Also, do you mind if I ask you to post the code that you used to print those out and where I could see those are printed? Thanks in advance -

Seriously ? if the OrderSend() works Print() . . . yes it's really that simple.
Reason: