A script to close all open orders. - page 7

 

The scripts do not set the magik and do not analyse it - they should not care whether the order is manual or automatic.

 

You're probably right, well there's something wrong with these scripts:)

 
goldtrader >>:

Скрипты не выставляют магик и не анализируют его - им должно быть по барабану ручной это ордер или автоматический.

Yes, you're quite right, which is why I was confused about the different ways of working.

 
SofTAA писал(а) >>

>>Yes, you're quite right, that's why it's confusing that it works differently.




I don't know if manual opening was the cause of the script error, but the result is the same. Opened two selves on one and the other instrument, one selve on each - manually, and then tried to close them with buy script, but here is the result....
Tab "Experts.
2010.04.05 18:59:15 Buy GBPUSD,M15: removed
2010.04.05 18:59:15 Buy GBPUSD,M15: uninit reason 0
2010.04.05 18:59:15 15 Buy GBPUSD,M15: different symbols in orders for OrderCloseBy function
2010.04.05 18:59:15 Buy GBPUSD,M15: different symbols in orders for OrderCloseBy function
2010.04.05 18:59:15 Buy GBPUSD,M15: open #70825810 buy 0.03 GBPUSD at 1.52990 ok
2010.04.05 18:59:14 Buy GBPUSD,M15: loaded successfully
2010.04.05 18:58:50 Sell GBPUSD,M15: removed
2010.04.05 18:58:50 Sell GBPUSD,M15: uninit reason 0
2010.04.05 18:58:50 Sell GBPUSD,M15: open #70825772 sell 0.01 GBPUSD at 1.52971 ok
2010.04.05 18:58:49 Sell GBPUSD,M15: loaded successfully
2010.04.05 18:58:28 Sell EURUSD,M15: removed
2010.04.05 18:58:28 18:28 Sell EURUSD,M15: uninit reason 0
2010.04.05 18:58:28 18:28 Sell EURUSD,M15: open #70825728 sell 0.01 EURUSD at 1.35106 ok
2010.04.05 18:58:27 Sell EURUSD,M15: loaded successfully
2010.04.05 18:58:17 Sell EURUSD,M15: removed
2010.04.05 18:58:17 Sell EURUSD,M15: uninit reason 0
2010.04.05 18:58:17 Sell EURUSD,M15: open #70825717 sell 0.01 EURUSD at 1.35114 ok
2010.04.05 18:58:16 Sell EURUSD,M15: loaded successfully

 
Move the ticket definition function to the top and you will be happy
 
SofTAA писал(а) >>
Move the Ticket Definition function up and you're good to go


It's a shame to leave it halfway, can we finish it now that we're done?

 
sever29 >>:


Жаль на пол пути бросать, может доведем до конца рас уш взялись?

So no one has quit, I've written what needs to be done.

 
SofTAA писал(а) >>

So no one has quit, I've written what needs to be done.


I see, but to my shame, I don't understand what needs to be done...
 
sever29 >>:


Вижу, но к моему стыду, я не понимаю что надо сделать...

OK, I'll fix it and post it tonight if I don't forget).

 
SofTAA писал(а) >>

OK, I'll fix it and post it tonight if I don't forget).


>> okay.

Reason: