function - maximum profit

A function to track maximum profit.
版本注释: added faster algorithm functions, it suffers from slight change to values,
- the fast will simulate the crosses accurately but has higher cumulative result.
- the alt version will check current stack with previous bars, resulting in faster crosses, smaller value.

本着真正的TradingView精神,该脚本的作者将其开源发布,因此交易者可以理解和验证它。为作者加油! 您可以免费使用它,但是在发布中重复使用此代码受网站规则的约束。您可以收藏它以在图表上使用。



This one is simple and efficient. 😎
Great work Master.
100 代币
+2 回复
How to avoid the issue of "Calculation takes too long to execute" when using higher lengths, such as 200?
(e.g. anything to change in the code)
+6 回复
This means is a good stock to buy?
+5 回复
very useful function for atuo position control
+2 回复
This is one of the great works as like as your earlier posting; appreciated your generosity, wish happy trading <3
+2 回复