• 프로덕트
  • 커뮤니티
  • 마켓
  • 브로커
  • 더보기
지금 시작
  • 커뮤니티
  • /지표 및 전략
  • /Masorting

Masorting

ma sorter ('sort by array' example)- JD//////////////////////////////////////////////////////////////// //////////////// ma sorter / Array sorting function ////////////////// //////////////////////////////////////////////////////////////// This script gives an example how you can sort the items in one array, by using the values in another array. In the example here, we want to sort moving averages of different lengths by there values as we don't have mixed arrays (yet) in Pinescript, one solution could be to store this in 2 arrays: - one (string) array to store the ma names - one (float) array to store the ma values The "f_sort_by_array( )" function in this script allows you to sort the ma names by using the ma values and sorts the two arrays together, as if the were one 2D matrix, where the rows are sorted. With the "f_sort_by_array" function, both the (string) array1 and array2 are sorted by the values of array2, the function returns the two sorted arrays. IMPORTANT NOTE: the output has to be stored in TWO NEW (sorted) ARRAYS, Pinescript doesn't allow function arguments to be modified by the function itself this is why the output goes to ma_names_sorted and not ma_names !!!! Feel free to use this function in your scripts to get more contorl over your arrays. Gr, JD.
Pine Script® 인디케이터
Duyck의
77

선택된 시장 데이터는 ICE 데이터 서비스에서 제공합니다.선택된 참고 데이터는 팩트셋에서 제공합니다. Copyright © 2025 팩트셋 리서치 시스템즈 Inc.Copyright © 2025, 아메리칸 뱅커스 협회. CUSIP 데이터베이스는 팩트셋 리서치 시스템즈 Inc.에서 제공합니다. 모든 권리는 보호됩니다.SEC 공시 및 기타 문서는 Quartr에서 제공합니다.© 2025 트레이딩뷰 Inc.

제품 그 이상
  • 수퍼차트
스크리너
  • 주식
  • ETF
  • 채권
  • 암호화폐
  • CEX 페어
  • DEX 페어
  • Pine
히트맵
  • 주식
  • ETF
  • 암호화폐
캘린더
  • 이코노믹
  • 어닝
  • 배당
더 많은 제품
  • 수익률 곡선
  • 옵션
  • 뉴스 플로우
  • Pine Script®
앱
  • 모바일
  • 데스크탑
커뮤니티
  • 소셜 네트웍
  • 사랑의 벽
  • 프렌드 리퍼하기
  • 하우스룰
  • 모더레이터
아이디어
  • 트레이딩
  • 교육
  • 에디터즈 픽
Pine Script
  • 지표 및 전략
  • 마법사
  • 프리랜서
툴 및 구독
  • 특징
  • 가격
  • 마켓 데이터
트레이딩
  • 오버뷰
  • 브로커
스페셜 오퍼
  • CME 그룹 선물
  • 유렉스 선물
  • 미국 주식 번들
회사 정보
  • 회사 소개
  • 우주 임무
  • 블로그
  • 커리어
  • 미디어 키트
굿즈
  • 트레이딩뷰 스토어
  • 트레이더용 타로 카드
  • C63 트레이드타임
정책 및 보안
  • 사용조건
  • 면책사항
  • 프라이버시정책
  • 쿠키 정책
  • 접근성 정책
  • 보안 팁
  • 버그 바운티 프로그램
  • 상태 페이지
비즈니스 솔루션
  • 위젯
  • 차팅 라이브러리
  • Lightweight Charts™
  • 고급 차트
  • 트레이딩 플랫폼
성장 기회
  • 광고
  • 브로커 통합
  • 파트너 프로그램
  • 교육 프로그램
커뮤니티
  • 소셜 네트웍
  • 사랑의 벽
  • 프렌드 리퍼하기
  • 하우스룰
  • 모더레이터
아이디어
  • 트레이딩
  • 교육
  • 에디터즈 픽
Pine Script
  • 지표 및 전략
  • 마법사
  • 프리랜서
비즈니스 솔루션
  • 위젯
  • 차팅 라이브러리
  • Lightweight Charts™
  • 고급 차트
  • 트레이딩 플랫폼
성장 기회
  • 광고
  • 브로커 통합
  • 파트너 프로그램
  • 교육 프로그램
Look FirstLook First