NexusFi: Find Your Edge


Home Menu

 





Accessing Daily Data for Intraday Strategy


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,323 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Accessing Daily Data for Intraday Strategy

(login for full post details)
  #1 (permalink)
matthaius
Los Angeles, CA
 
Posts: 7 since Jul 2013
Thanks Given: 1
Thanks Received: 0

Hi,
I'm new to writing strategies and have a couple of questions.
1) Let's say I need to access the range of the previous day to set my targets. So I want to enter the order based on some condition intraday with my target set based on previous day's range. So how do I access the previous day's information for my intraday strategy ?
2) Let's say I entered a position today, didn't reach my target and didn't get stopped out. So the next day - do I have to enable the strategy again on the same chart and will it continue from where it left off ? I assume so, but wanted to confirm.

Thanks

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Futures Close-Out Policy
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Daytrading ES & NQ
32 thanks
Battlestations: Show us your trading desks!
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Retail Trading As An Industry
25 thanks

(login for full post details)
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,429 since Apr 2013
Thanks Given: 479
Thanks Received: 1,619


Hi matthaius,

1.) You could use HighD(1) and LowD(1) for example. Or track the extremes yourself with a variable that you reset on the new day.
2.) If you leave the strategy running, this is not a problem at all. Otherwise it should be able to pick up where it left.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
(login for full post details)
  #4 (permalink)
matthaius
Los Angeles, CA
 
Posts: 7 since Jul 2013
Thanks Given: 1
Thanks Received: 0

Thanks for the reply. I tried that. but here is my problem - I need to access the daily ATR on an intraday chart. So I have a 2 day 1 min chart and if I need to use 10 day daily ATR, I would need to have 10 days worth of 1 min data on there so that I can use HighD, LowD and compute the ATR. Is that correct ? Or some other easier way to do it ?

Reply With Quote
(login for full post details)
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,429 since Apr 2013
Thanks Given: 479
Thanks Received: 1,619

Using 10 days of 1 min data and HighD, LowD is an easy way. You will have to deal with the ATR calculation, as you need to make sure it uses the correct values for every day. This will need an array or a loop for sure.

Another approach could be to use a second data stream of daily bars on your chart. Then you can calculate the ATR on Data2. This might even be a little easier.

Regards,
ABCTG


matthaius View Post
Thanks for the reply. I tried that. but here is my problem - I need to access the daily ATR on an intraday chart. So I have a 2 day 1 min chart and if I need to use 10 day daily ATR, I would need to have 10 days worth of 1 min data on there so that I can use HighD, LowD and compute the ATR. Is that correct ? Or some other easier way to do it ?


Follow me on Twitter Reply With Quote





Last Updated on August 1, 2013


© 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