Discussion of article "How to Prepare a Trading Account for Migration to Virtual Hosting" - page 20

[Deleted]  

Unclear situation, Expert Advisors on the server do not assign magiks to newly opened positions, or assign completely foreign numbers, as a result of which positions are not modified and closed.

2015.07.21 16:50:00.317 DragSuper2 EURUSD,M1: open #143554354 buy 0.01 EURUSD at 1.09365 ok
2015.07.21 16:50:00.317 DragSuper2 EURUSD,M1: Spread19.0DragSuper2MG0
2015.07.21 16:50:00.551 DragSuper2 EURUSD,M1: modify #143554354 buy 0.01 EURUSD at 1.09365 sl: 1.09036 tp: 0.00000 ok
2015.07.21 16:50:00.551 DragSuper2 EURUSD,M1: DragSuper2MG19720118
This is an excerpt from a journal. MG is a magik. After the opening is equal to 0.

2015.07.22 22 22:15:59.714 Drag_newATR++ EURUSD,M1: open #61521134 buy 0.02 EURUSD at 1.09211 ok
2015.07.22 22 22:15:59.714 Drag_newATR++ EURUSD,M1: Spread7.0Drag_newATR++MG888
2015.07.22 22:15:59.730 Drag_newATR++ EURUSD,M1: open #61521135 buy 0.02 EURUSD at 1.09211 ok
2015.07.22 22:15:59.730 Drag_newATR++ EURUSD,M1: Spread7.0Drag_newATR++MG888
2015.07.22 22 22:15:59.776 Drag_newATR++ EURUSD,M1: modify #61521134 buy 0.02 EURUSD at 1.09211 sl: 1.08951 tp: 0.00000 ok
2015.07.22 22 22:15:59.776 Drag_newATR++ EURUSD,M1: Drag_newATR++MG666

Statement from another account. Expert Advisors with different numbers opened positions with one magik. Subsequent modification of one of the Expert Advisors took place with the native number. As a result, the positions were not closed.

Example code:

if (Spread<MaxSpread && (******************************************************)
     {
      res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,10,0,0,"Drag_newATR++",MAGIC,0,Red);
      Print("Spread",MarketInfo(Symbol(),MODE_SPREAD),"Drag_newATR++MG",OrderMagicNumber());
      PlaySound("alert.wav");
      return;
      }

Perhaps I am not good at code, but in the terminal on my computer everything works flawlessly.

 
Vitaly Stepanov:

Unclear situation, Expert Advisors on the server do not assign mags to newly opened positions, or assign completely foreign numbers, as a result of which positions are not modified and closed.


Example code:

I may be bad at code, but in the terminal on my computer everything works flawlessly.

And how exactly do you set the magik? How and where do you initialise the variable to which the magick is written?
[Deleted]  
Karputov Vladimir:
How exactly do you set the magik? How and where do you initialise the variable into which the magick is written?

It is an external variable "extern int MAGIC = 567;".

It is checked when the stop is set by the modify function, AND it is checked when closing.

if(OrderMagicNumber()!=MAGIC && OrderSymbol()!=Symbol()) continue;-when selecting an order, in addition in the closing conditions it is specified:

if(OrderMagicNumber()==MAGIC && ...

 
Vitaly Stepanov:

This is an external variable "extern int MAGIC = 567;".

It is checked when setting a stop by the modification function, and it is checked when closing.

if(OrderMagicNumber()!=MAGIC && OrderSymbol()!=Symbol()) continue;-when selecting an order, in addition in the closing conditions it is specified:

if(OrderMagicNumber()==MAGIC && ...

Why do you need extern? Try changing it to input.
[Deleted]  
Karputov Vladimir:
Why do you need extern? Try changing it to input.
Thanks, I'll try it.
 

Hello

I've used the free trial period and want to subscribe again. Only problem is that all my options are ghosted?

 Ghosted options?

 
ajblaj:

Hello

I've used the free trial period and want to subscribe again. Only problem is that all my options are ghosted?

 

Please write to ServiceDesk and report their answer here. Thanks.
 
ajblaj:

Hello

I've used the free trial period and want to subscribe again. Only problem is that all my options are ghosted?

 

Do you have enough money in your account? ie a minimum of $10 USD?
[Deleted]  
ajblaj:

Hello

I've used the free trial period and want to subscribe again. Only problem is that all my options are ghosted?

You don't have free money on the account. For free 10 minutes hosting unavailable for technical reasons.
 

Hi,

For testing purpose I would like to use VPS  for a demo account upto the freely available time duration. Kindly guide me,  Can I do it on demo account?