PropTradingShop

(PCL) Previous Close

I have recently been reading How to Day Trade for a Living by Andrew Aziz and one of the important support and resistance levels he talks about is the Previous Day Close Price.

I did not find an indicator that would simply plot this so I wrote a short simple pine script to plot the indicator.

Please feel free to edit or suggest improvements.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר סקריפט זה פרסם אותו עם קוד פתוח, כך שסוחרים יוכלו להבין ולאמת זאת. הידד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום הנו בכפוף ל כללי הבית . אתה יכול להגדירו כמועדף ולהשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

תגובות

Unfortunately indicators shows wrong close price because on intraday chart correct close price is at 1600EST
Any ideas how to correct this?
השב
@inet100, This shows the previous days closing price. Intraday charts would shows yesterdays closing price.
השב
inet100 PropTradingShop
@PropTradingShop, Isn't previous day equal to yesterday ? Anyway, is there solution to get close level at 1600 to calculate gap size?
השב
@inet100, This closing price is literally coming from Pines day variable so it is accurate. If you want to track the gap you need to have ext hours on and keep track of each session separately.
השב
inet100 PropTradingShop
@PropTradingShop, Yes, I use ext hours and looking the way to calculate the difference between 1600 price and current price in premarket (before 0930)
השב
You don't need a script for this, it should be under settings for the chart.
Make sure to check off show previous close
השב
PropTradingShop casanova1012
@casanova1012, Yup, they have the setting now, at the time they didn't.
השב
Intuitive_Trader casanova1012
@casanova1012, actually this scrip is useful and different from what's under settings. It plots the previous close from a session to a session while the Tradingview from settings plots last previous close all across the chart. So if you go back let's say 5 or 6 days ago you'll see the same closing price from the last session.
@PropTradingShop, thank you for sharing the script.
השב
casanova1012 Intuitive_Trader
@Intuitive_Trader, thanks, that's really helpful. Did not know that
השב
Is it possible to create Levels from this Price - -0,5%/-1%/-1,5%/.... id like to plot lines with this variations...Can you help me?
השב
בית סורק מניות סורק מט"ח סורק מטבעות-קריפטו יומן כלכלי אודות תכונות גרף מחירון הפנה חבר כללי הבית מרכז תמיכה כלים לאתרים וברוקרים יישומונים פתרונות גרפיים ספריית גרפים קלי משקל בלוג וחדשות טוויטר‏