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 5,294 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread

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

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
use extra computer for optimisation
NinjaTrader
MC PL editor upgrade
MultiCharts
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts