R: How to stop a for statement when a if condition is met

前端 未结 0 1049
旧时难觅i
旧时难觅i 2021-01-17 04:37

I have a time series of prices and I am trying to create a trading strategy. I need to stop the trade as soon as the price_cap is met. I have data stored in a datab

相关标签:
回答
  • 消灭零回复
提交回复
热议问题