NexusFi: Find Your Edge


Home Menu

 





Accessing Daily Data for Intraday Strategy


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
Radarscreen
TradeStation
Brendt Skorupinsky
Trading Reviews and Vendors
Better Renko Gaps
The Elite Circle
MC Advanced Simulated Trading.
MultiCharts
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
74 thanks
HumbleTraders next chapter
51 thanks
Winning attitudes create winning traders
39 thanks
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Topstep experience and review
33 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 486
Thanks Received: 1,629


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
  #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
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 486
Thanks Received: 1,629

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