trying to code a strategy that uses weekly data to set the trigger level for trades, but have the actual signal form off daily data. ie. Data1 is a weekly bar, I need to denote what the 3 week H is. (Need to retain this level or anchor it and not have it change as the next ensuing week unfolds. Then have on Data2 (daily data) ability to say buy when you see a daily close over that weekly bar high. So using daily closes that penetrate a weekly H or L. While new, I think once i get this part of the concept down i will be able to program my other elements. thx
Best to post your code so far to make it easier for others to help you.
Also your post is a bit difficult to follow, you might try restating it to make it more clear.
As for retaining a weekly high, or a three-week high, since you already have a weekly bar you just need to look for the Highest(H, 3) highest high over the last 3 periods on that weekly bar.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.