NexusFi: Find Your Edge


Home Menu

 





Retrieve previous day's close and current day's open on intraday chart


Discussion in EasyLanguage Programming

Updated
    1. trending_up 6,117 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
mandelmus
Dallas, TX
 
Posts: 8 since Jun 2011
Thanks Given: 2
Thanks Received: 3

What's the best way to retrieve the previous day's closing price and the current day's opening price while using an intraday chart? Also, how does displaying pre- and post-market data affect those results?

I found this listed under the TS Development Environment help file, but when running this indicator in RadarScreen, it only displays a "-1".

 
Code
Example
Assigns the Close of the previous day on an intraday chart to Value1, then plots Value1:

Value1 = CloseD(1);
Plot1(Value1, "PrevClose");


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Datafeed for Atas
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 thanks
  #3 (permalink)
 Iluvchocmilk 
Portland
 
Experience: Beginner
Platform: TradingView
Broker: Tradestation
Trading: Emini ES
Posts: 49 since Jul 2020
Thanks Given: 32
Thanks Received: 37


I know this is really old but I was looking for info on this function and found that if it returns -1 you likely don't have enough data or referencing more than 50 periods back.


Visit my NexusFi Trade Journal Reply With Quote




Last Updated on May 5, 2022


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts