TradingView
RicardoSantos
٢٨ حزيران يونيو ٢٠٢١ ١١:٤٢

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 ??
المزيد