TimeShift Candles in OsEngine.

TimeShift Candles in OsEngine.

In this article, we will discuss TimeShift candles in OsEngine. These are classic Japanese candles with a shift of N seconds, which allow you to assess the market situation a few seconds earlier than everyone else.

 

1. History of TimeShift Candles.

These are classic Japanese candles with a shift in seconds. So it can be stated that this type of candle was invented by Japanese rice traders in the 18th century.

 

2. Calculation of TimeShift Candles.

In the settings of these candles, there are several variables. Let's take a look at them:

1. TimeFrame – the standard timeframe of the candles that you see in any terminal.

2. Seconds shift – the shift for the candle in seconds. In this case, it is -3 seconds.

The overall idea of the operation is simple:

1. Build the most ordinary Japanese candles.

2. Close them N seconds earlier than usual, to avoid competing with thousands of other robots at the close of the timeframe.

 

3. How to Trade TimeShift Candles?

The main idea of these candles is that by shifting the candle by 2 – 3 – 5 seconds, we gain an entry point a little earlier than everyone else. Otherwise, these are ordinary Japanese candles, and you can trade anything you like on them.

 

4. How to Launch TimeShift Candles in Os Engine.

Open the main menu in Os Engine and go to "Bot Station Light".

Connect to the "ALOR" connector or any other:

Next, create a trading robot; in this case, it will be Bollinger Revers:

Now, go to the data stream connection menu for the robot:

Select any instrument from the list; in our case, it will be "Sber":

1. TimeFrame – the standard timeframe of the candles that you see in any terminal.

2. Seconds shift – the shift for the candle in seconds. In this case, it is -3 seconds.

After the settings, we see a chart with "TimeShift" candles with a width of 1 minute but closing at 57 seconds:

 

5. Where to Find the Source Code for Candle Assembly in OsEngine.

The source code for TimeShift candles in OsEngine is publicly available on the GitHub platform.

After downloading OsEngine to your PC, you can find the source files inside the project here:

Good luck with your algorithms!

OsEngine Support