The start() function checks various conditions and executes certain actions based on those conditions. Here is a breakdown of what each line does:

  1. It checks if the variable Digits is equal to both 5 and 3. However, this condition cannot be true as a variable cannot have two different values at the same time. So, this condition is always false and doesn't affect the subsequent code.

  2. It assigns the value of the stop level of the current symbol to the variable G_stoplevel_212 using the MarketInfo() function.

  3. It checks if there are any open orders for buying or selling using the CheckOrders() function and if the sum of those is greater than 0. If true, it sets the variable Gi_224 to TRUE.

  4. It checks if the variable "是否连续开单" (whether continuous orders are enabled) is equal to TRUE and if the number of historical stop-loss orders is greater than 0 using the CountHistorySLOrders() function. If true, it sets the variable Gi_224 to TRUE.

  5. It checks if the variable "是否连续开单" is equal to FALSE and if the number of historical stop-loss orders is equal to 0 and the variable Gi_224 is equal to TRUE. If true, it returns 0, potentially stopping further execution of the function.

  6. It checks if the current local time is greater than or equal to the variable OpenTime and if the current volume is greater than or equal to the variable OpenVolume. It also checks if the variable Gi_224 is equal to FALSE and if there are no open orders for buying or selling. If all these conditions are true, it executes the following actions:

    • If the variable "首单开仓方向" (first order opening direction) is equal to TRUE, it calls the OpenOrder() function with the argument 0.
    • If the variable "首单开仓方向" is equal to FALSE, it calls the OpenOrder() function with the argument 1.

Note: The meaning of some variable names and function calls is not clear without further context

int start if Digits == 5 & Digits == 3 Gi_196 = 10; G_stoplevel_212 = MarketInfoSymbol MODE_STOPLEVEL; if CheckOrdersOP_BUY + CheckOrdersOP_SELL 0 Gi_224 = TRUE; if 是否连续开单 == TRUE && CountHi

原文地址: https://www.cveoy.top/t/topic/hBkt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录