谁有好用的画趋势线开单的EA,要求可以选择收盘收破趋势线可以开单的
谁有好用的画趋势线开单的EA,要求可以选择收盘收破趋势线可以开单的 |
|
|
|
|
D
The solution involves creating a function that monitors open trades and closes them if they have been active longer than a specified duration in hours. The function takes an input parameter for the maximum open duration, which is converted into seconds for comparison.
It iterates through all open trades, checking the open time for each one. If the elapsed time since the trade was opened exceeds the defined limit, the function closes that trade. This approach helps in managing risk by preventing trades from being held open for too long, thereby allowing for better control over trading strategies.
|
|
|
|
|