SuperTrend
At the request of our platform users, FMZ is compatible with the Pine language function library of TradingView now, and has entered a stable version.
- the grammer is fully compatible with v5 version
- all indicators of ta library are fully implemented
- full implementation of math library
- full implementation of string library
- full implementation of array library
- input parameters are recognized in the interface automatically
- request.security support for heikinashi
- strategy library implementation (full support for stop loss/profit target/trailing stop/conditional orders, etc.)
- compatible with plot/plotchar/plotshape/plotcandle/alert/alertcondition etc.
It is a continuous process that provide full support for language functions, and this public version is made available in advance for user testing.
Later, FMZ will continue to increase and improve the function library support for Pine language of TradingView, if necessary, please leave a comment on this strategy.
Remark: If you encounter undefined variables, it is proved that this attribute is not supported. You can delete the relevant call, or send a work order to contact the technician to solve the problem.
/*backtest
start: 2017-08-17 08:00:00
end: 2025-07-16 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"BTC_USDT"}]
*/
strategy("supertrend", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 50)
[supertrend, direction] = ta.supertrend(input(5, "factor"), input.int(10, "atrPeriod"))
python 在发明者学的 PINE 暂时没太看懂 他们都说PINE比PYTHON简单 , 呜呜 多币种的超级趋势 好写吗 我想以多币种的超级趋势为基础 ,添加自己脑袋里的东西 不知道怎么做
- 1





