Questions from Beginners MQL5 MT5 MetaTrader 5 - page 128

 
ArkFatalist:

What "forces" can take away the level of TR ?

Any modification where TP is not explicitly stated considers TP = 0
 

Good afternoon.

Can you please tell me how to allow the EA to trade at the specified time?

 
Sergey5:

Good afternoon.

Could you please tell me how to allow the EA to trade at a specified time?

Write a function to work by time.

I.e. allow trading only if e.g. current time is within the limits of allowed trading.

 
Good afternoon. Can you please tell me if it is possible to make the time frame in MT5 less than a minute (say, 30 seconds), how can I do it?
 
Vladon:

Write a time-based operation function.

The function is to allow trading only if, for example, the current time is within the limits of the allowed trading time.

There is a module DateTime.mgh in the mcl5 library, which seems to be the right one.

How can I insert it in my EA and make it work?

It is in Include\Tools\DateTime.mgh

 
ForFree:
Good day. Can you please advise whether there is an opportunity in MT5 to make the time frame less than a minute (say, 30 seconds), how can I do this?

History is stored in minutes, no standard way.

Do I have to write ticks myself and use them to build.

 
Silent:

The history is stored in minutes, there is no standard way.

Write the ticks yourself and build from them.

Thank you.

 

General ilan2.0: The MaxTrades setting does not work .

I place e.g. MaxTrades 5 , but after the fifth order the advisor continues to place orders 6, 7 and so on .

What can be the problem?

Thanks for the tip.

 
AndreyB-:

General ilan2.0: The MaxTrades setting does not work .

I place e.g. MaxTrades 5 , but after the fifth order the advisor continues to place orders 6, 7 and so on .

What can be the problem?

Thanks for the tip.

An error in the programme).
 
zfs:
There is an error in the programme).

Thanks for the answer.

Maybe there is a "false" in the settings that needs to be changed to "true"?

Maybe the program takes the number of orders by default and does not react to the setting.

Документация по MQL5: Торговые функции / OrdersTotal
Документация по MQL5: Торговые функции / OrdersTotal
  • www.mql5.com
Торговые функции / OrdersTotal - Документация по MQL5
Reason: