Joke Collection Website - Blessing messages - Early warning of communication programming conditions. When the conditions are met, it takes 10 seconds to test again. If the conditions are still met, an alarm will be issued. How to achieve it?

Early warning of communication programming conditions. When the conditions are met, it takes 10 seconds to test again. If the conditions are still met, an alarm will be issued. How to achieve it?

Tongda letter software is a commonly used securities analysis software, which provides powerful exponential formula language pliers for writing various technical indicators and condition warnings. According to your requirements, what you want to achieve is a conditional early warning. After certain conditions are met for the first time, it is necessary to wait 10 second before testing again. If the conditions are still met, an alarm will be triggered.

In the index formula of communication, the function of delay detection is not directly completed by simple time parameters, because the index calculation of communication is based on the data of each new cycle (such as every second, every minute and every day), not on the actual time lapse. Therefore, we need to adopt an indirect method to simulate the delay detection of 10 second.

Here is a simplified example to illustrate how to use TongS, the index formula language of Tongda letter, to meet your requirements:

`` Pascal

n:= 10; //Set the delay 10 second.

Conditions: = (h-dynainfo (7))/ref (close,1) > (2/100); //Your conditions

Meet for the first time: =FILTER (condition,1); //Filter out the first qualified period.

Continuous satisfaction: =FILTER (condition and REF (first satisfaction, 1),1); //Filter out the time periods that meet the conditions continuously.

//If the condition is met for the first time and the condition was met in the last cycle, an alarm will be given.

Alarm: = first meeting and REF (first time,1);

```

Please note that the above code is a simplified example, and the delay of 10 second cannot be directly realized in communication software. In the address book, because the data of each cycle is calculated independently, we can't directly realize the function of "10 seconds and then test again". However, we can periodically check whether the conditions are met, and use the "ref" function similar to the above example to check whether the conditions are met continuously in continuous cycles.

In addition, the early warning system of communication software may require you to use specific functions and syntax to set early warning conditions. You may need to consult the official documents of Tong Tong Letter or consult the technical support of Tong Tong Letter for more detailed guidance and help.

Because the early warning system and index formula language of Tongda letter 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 function of communication software.