block in my code for processing new day events. It may work here too, I'm not 100% sure what you are trying to do.
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.
Favorite Futures: spot fx, currency futures, GC, ES
Posts: 30 since Nov 2010
Thanks: 6 given,
I think I realize the root of the problem. When you use any indicator from a higher timerame on a lower one you have equal values for all bars except the first corresponding to the higher timeframe bar. And you seem to want the condition like ma1 > ma2 be true over the whole lower timeframe span (day in your example). If my guess is true then it's very easy to implement. You simply write:
ma1 = xaverage(close of data2, N);
condition1 = ma1 of data2 > ma1 of data2;
In this case the condition should be true during the whole day on the lower timeframe.
Hope this helps. If this is not what you're looking for please ask for more, I'll try to help.