Backward Number of Bars

This indicator was written in order to apply bar limit in strategies and it was published as open code so that everyone can use it. When backtesting with stock market api data, we determine how many bars should be, not from which date the data will be drawn. For example, we can draw 1000 bar data from stock exchange and perform the backtest on this data. You can plan your strategy by checking the number of bars you test with the window () == 1 parameter here while checking through Tradingview to check that the test we performed gives correct results.

즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기


Can anyone explain/correct why this won't work on a 1 minute chart? I'm need a script that will change the background (whether the "background" is the background function, histogram etc.) for the most recent 5 bars on a 1 minute chart. I'm having a heck of a time figuring out how to script it!! 'any help would be MUCH appreciated!! this script works on the H1 and D1, but not on the smaller time frames for some reason....
1,000 thank yous! This was breaking my brain. had like 12 ideas and I couldn't get any of them to work as good as this. lol. You win my friend! thanks for sharing!
Hi @melihtuna - this is the method I've used in the past as well. The problem I run into is that it only works for instruments that trade 24/7. I've been racking my brain trying to come up with a method to accomplish the same thing for things like traditional equities (with or without extended sessions) and have gotten SO close a few times, but nothing perfected yet. Do you have any ideas? I'd be happy to share the "dead-ends" I've already attempted.
Very ingenious! Congrats.
@LucF, thx :)
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃