TradingView
RicardoSantos
2021年6月28日中午11點42分

Function - Sorted Indices 

Bitcoin / U.S. dollarBitstamp

描述

function to get sorted indices from a array using bubble sort.

發布通知

previous version was bugged, its fixed now 🤭
評論
RozaniGhani-RG
Awesome.
I saw potential in this code, I will using a lot in table, probably with array.new_table.
Thank you.
PineCoders
PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
NightCommando
Thanks for this contribution.
How would you set buy conditions depending on how the MAs are sorted?
For example:
sort condition #1, buy below ma5
sort condition #2, buy below ma3
sort condition #3, sell above ma2
Thanks for any help.
berkusacoin
thanks , ma1=sma(close,50) ma2=(close.200) etc ... that giving error also...how we can sort in cells ??
更多