Joke Collection Website - Bulletin headlines - Tongdaxin programmed conditional warning. When the conditions are met, it needs to be detected again after 10 seconds. If the conditions are still met, an alarm will be issued. How to achieve this?

Tongdaxin programmed conditional warning. When the conditions are met, it needs to be detected again after 10 seconds. If the conditions are still met, an alarm will be issued. How to achieve this?

Tongdaxin software is a commonly used securities analysis software. It provides a powerful indicator formula language TongS for writing various technical indicators and condition warnings. According to your needs, what you want to achieve is a conditional warning. After the specific condition is met for the first time, the warning needs to wait for 10 seconds to detect again. If the condition is still met, an alarm will be triggered.

In the indicator formula of Tongdaxin, the function of realizing delay detection is not completed directly through simple time parameters, because the indicator calculation of Tongdaxin is based on each new cycle (such as every second, every minutes, days) rather than based on the actual passage of time. Therefore, we need to use an indirect method to simulate a 10-second delay detection.

The following is a simplified example of how to use Tongdaxin's indicator formula language TongS to achieve your needs:

```pascal

N:= 10; //Set a delay of 10 seconds

Conditions: =(H - DYNAINFO(7)) / REF(CLOSE, 1) gt; (2/100); // Your conditions

First time satisfaction: =FILTER(condition, 1); // Filter out the period when the condition is first met

Continuous satisfaction: =FILTER(condition AND REF(first time satisfaction, 1), 1) ; // Filter out the periods in which the condition continues to be met

// If the condition is met for the first time and the condition is also met in the previous cycle, an alarm will be issued

Alarm: = first met AND REF (first time met Satisfies, 1);

```

Please note that the above code is a simplified example, and it cannot directly implement a 10-second delay in Tongdaxin software. In Tongdaxin, since the data of each cycle is calculated independently, we cannot directly implement the "detect again after 10 seconds" function. However, we can check whether the condition continues to be satisfied by periodically checking whether the condition is satisfied and using a function similar to the `REF` in the example above.

In addition, the early warning system of Tongdaxin Software may require you to use specific functions and syntax to set early warning conditions. You may need to consult Tongdaxin’s official documentation or Tongdaxin’s technical support for more detailed guidance and help.

Since Tongdaxin’s early warning system and indicator formula language may be updated, the specific implementation methods may be different. Therefore, the above code is for reference only, and you may need to make corresponding adjustments according to the specific version and functions of the Tongdaxin software.