2
Follow
0
Followers
Tenho uma pergunta sobre while true loop, por favor insira
Created 2021-07-24 10:10:54 Updated 2021-07-24 10:17:45
1
1301
Por favor, por favor, por favor, por favor.
Eu fiz uma estratégia circular.
Eu descobri que cada vez que eu fazia mais if Duo, eu conseguia fazer o ciclo até que o Kong voltasse a ser verdadeiro, o Duo fosse falso, e o Kong voltasse a ser falso.
Mas o if Duo é normal.
Se Kong for executado apenas uma vez, isso significa que ele será executado apenas uma vez!
Se Kong for executado apenas uma vez, isso significa que ele será executado apenas uma vez!
Se Kong for executado apenas uma vez, isso significa que ele será executado apenas uma vez!
O código específico é o seguinte:
def main:
Random true false atribuído a Duo ou Kong
while True:
if Duo:
条件未满足,开始多次循环 ......
满足条件后,结束循环 if Duo,重新分配,Duo = false Kong = True
if Kong:
条件未满足,开始多次循环......
满足条件后,结束循环 if Kong,重新分配,Duo = True Kong = false
Related Recommendations
How to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?
Comment
All comments (1)
- 1
