Discussion of article "The checks a trading robot must pass before publication in the Market" - page 16

 
Maxim Kuznetsov #:

have you ever run your robot other than the local tester???

I trade only with robots. Without them I feel naked, because my robots first of all give full information both on the current pair and on the account, as well as the main parameters of the pair (margin per lot, calculator "how much can be opened on x% and maximum", min-lot, lot-step, commission per lot and its conversion into pips, cost of spread*lot, etc.). ).
Mode - semi-automatic, I change basic settings if necessary.
But you seem not to understand what I was writing about.
According to the latest MT5 update, all icons were redrawn without exception. Some icons became better, some worse.
But!
The flag of trade availability was not there and still is not. And this function is really much more necessary than the design update.

 
Vasyl Temchenko #:


The flag of trade availability was not there and still is not. And such a feature is really much more necessary than a design update.

I'll tell you again. Search and you will find

10018

TRADE_RETCODE_MARKET_CLOSED

Market closed

 
Alexey Viktorov #:

I'll tell you again. Seek and ye shall find

10018

TRADE_RETCODE_MARKET_CLOSED

Market closed

I don't need to show you this - it's an error returned by the server when a trade request is stupefied. It is about this error that I raised the topic.
Why break through a closed door? I would like to see a "Closed" sign on a closed door.

There is: AccountInfoInteger(ACCOUNT_TRADE_ALLOWED);

Show me a similar one in ENUM_SYMBOL_INFO_INTEGER and I'll sprinkle my head with ashes.
 
Vasyl Temchenko #:

I don't need to show it to you - it's an error returned by the server when a trade request fails. It is about this error that I raised the topic.
Why break through a closed door? I would like to see a "Closed" sign on a closed door.

There is: AccountInfoInteger(ACCOUNT_TRADE_ALLOWED);

Show me a similar one in ENUM_SYMBOL_INFO_INTEGER and I'll sprinkle my head with ashes.

Look for it and you will find it. One last hint: check the order.

 
How can StopLevel and FreezeLevel be incorporated into the above code for Buy/Sell StopLimit orders. This is complicated as there are is a Stop level and a Limit level.
 
Rashid Umarov #:
Thank you! fixed

Attached zip file "2555_en". The error is not yet corrected. -sl)>tp)

This has not been fixed either:

+ missing parameter (PrintFormat has for %, but only 3 parameters are provided).


 
Alain Verleyen #:

An other logical error. Changing a SL/TP by 1 point is allowed. It should be >=

I don't know how about MQL5, but MQL4 functions OrderStopLoss(), OrderTakeProfit()... are not normalized. In this case, if you use ">=", the current OrderModifyCheck function will not work properly. Need to normalize OrderStopLoss(), OrderTakeProfit()...

 

I get this message while loading the robot !!


cannot open file 'MQL4\indicators\.....Indicator.ex4' [2]!!!!!!!!!!!!!

I used a personal indicator in this project.
Does anyone have a solution?

 
Kambiz Shahriarynasab #: I get this message while loading the robot! cannot open file 'MQL4\indicators\.....Indicator.ex4' [2]! I used a personal indicator in this project. Does anyone have a solution?

You have to embed the indicator in your executable by using the #resource compile directive.

This is explained in the article, namely "Calling custom indicators with iCustom()". Did you read it?

Documentation on MQL5: MQL5 programs / Resources
Documentation on MQL5: MQL5 programs / Resources
  • www.mql5.com
Resources - MQL5 programs - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Fernando Carreiro #:

You have to embed the indicator in your executable by using the #resource compile directive.

This is explained in the the article, namely "Calling custom indicators with iCustom()". Did you read it?

thanks