Experts: Opening and Сlosing on time

 

Opening and Сlosing on time:

Open and close at a certain time. A trade having a specified volume is opened at a specified symbol. Select position type: Buy or Sell.

Author: Vladimir Karputov

 

It dose not seem to be working, not on Live Data or History Data no posittions are open.

I tried multiple time conditions including trying to set the actual date to the current one for Open posittion.

 Could you please fix this.

 

Thank you for your time

Best regards

Artur Panchenko 

 

You start in a tester or start in the terminal?

 

Also I recommend to check tab "Journal" in a tester and tab "Journal" in the terminal - for existence of mistakes.

 
Vladimir Karputov:

You start in a tester or start in the terminal?

 

Also I recommend to check tab "Journal" in a tester and tab "Journal" in the terminal - for existence of mistakes.

I used it in tester yes, and there wore no messages in Jurnal mentioning errors.

 
tigerclaw:

I used it in tester yes, and there wore no messages in Jurnal mentioning errors.

Give on steps:

  1. Insert a screenshot: Strategy Tester - tab Settings
  2. Insert a screenshot: Strategy Tester - tab Inputs

 
Vladimir Karputov:

Give on steps:

  1. Insert a screenshot: Strategy Tester - tab Settings
  2. Insert a screenshot: Strategy Tester - tab Inputs

SettingsInputs
 
tigerclaw:

Has started with your settings: everything perfectly works:

test 

Also I will repeat: show the Journal of a Strategy Teser - there precisely will be an answer. 

 
Vladimir Karputov:

Has started with your settings: everything perfectly works:

 

Also I will repeat: show the Journal of a Strategy Teser - there precisely will be an answer. 

 

I hope you can find what i did wrong here, i really need this to work.

 
Change the trading server.
Login on MetaQuotes-Demo server.
 
Vladimir Karputov:
Change the trading server.
Login on MetaQuotes-Demo server.

You don't check/set the filling type in your code. That's why it's not working on FxPro-ECN.

And as you don't check trade operation returned value, it does trade silently. 

 
tigerclaw:

 

I hope you can find what i did wrong here, i really need this to work.

You can give me a login and investor password? I will check the work of the adviser on his PC.

And, Pleasse, Now run this version and show the tester log. Look at the error.

Reason: