Types of Order Lifetimes in OsEngine and Their Emulation in the Tester.

Types of Order Lifetimes in OsEngine and Their Emulation in the Tester.

Let's discuss the various types of order lifetimes available in OsEngine, particularly how to set up clearing on the MOEX futures market, should you need to use the Day order type.

Additionally, we will talk about why it is important to keep everything default to ensure orders have a strict lifetime, as holding orders on the exchange is not recommended.

You can view the orders on GitHub via the link.

In the project, you can check the types of order lifetimes here:

 

1. Specified.

This is a type of limit order with a specified lifetime, which is revoked by OsEngine as set in each source by default:

To view these settings, you need to:

1. Open a separate robot and select the source BotTabSimple / BotTabScreener.

2. Call the “Position Management Settings” for this source.

3. At the bottom of the window, you will see “Orders lifetime” with the default type set to “Specified.”

4. With this type of orders, we will manage order revocation by time. Separately for opening orders and separately for closing orders.

This is the recommended order lifetime. Strictly recommended for beginners in algorithmic trading. Why?

1. Because you cannot forget orders on the exchange, and if you enable the default order lifetime GTC, it will start to become a widespread issue.

2. Most robots have strict signals for entry and exit. Accordingly, after a signal to open a position, an entry must occur within N seconds, or the position is considered not opened.

3. If you need dozens of orders in the market, then you have not understood the layer of robot creation in OsEngine and do not know how to set it up without placing delayed orders.

 

2. GTC.

This type of limit orders has no lifetime. They will not be revoked by OsEngine and will not be revoked by the trading system. This is turned on immediately.

 

3. Day.

This type of limit orders will be valid during the day. They will not be revoked by OsEngine and will not be revoked by the trading system. This is turned on immediately.

IMPORTANT!!!

For this type of orders to work properly in the Tester for FORTS, you will need to set up evening clearing, as the end of the day on the MOEX futures market occurs at 7 PM. This is configured in the tester here:

Happy algorithmic trading!

OsEngine Support: https://t.me/osengine_support_english