Modify the above program such that it will ask for 'Do you want to calculate again (y/n), if you say 'y', it'll again ask the parameters. If 'n', it'll exit.
修改上面的程序,在显示结果完成之后附加询问'Doyouwanttocalculateagain (y/n),如果回答'y',则要求重新输入参数,如果回答'n',程序退出(Do while 循环)。
For example, if you enter a long trade and the prices continue to move up, then exit a portion, say 30%, of your position after prices reach a certain point.
例如,如果你开始了一个揸单,价格始终向上运动,然后到达一个特定位置后平仓一部分,可以是开仓金额的30%。
For example, if you enter a long trade and the prices continue to move up, then exit a portion, say 30%, of your position after prices reach a certain point.
例如,如果你开始了一个揸单,价格始终向上运动,然后到达一个特定位置后平仓一部分,可以是开仓金额的30%。
应用推荐