I have a very simple question that I seem stuck on. I've searched the site, but i'm confused about multiple time frames and I haven't found an example that I can use.
Can I use a buy/sell format with timeframeset, or do I need to have the multiple time frames separate and then a buy/sell decision made later on?
For example, I would like to make a buy decision based on a MA both on the daily and then weekly close.
Buy =
Close > 5
AND MA( Close , 15 ) > Ref( MA( Close , 15 ) , -1 );
Okay, this is fine, but if I want to expand to weekly and have BOTH weekly and daily MA > Ref -1, would I then insert TIMEFRAMESET(inweekly) after the last part and included in the entire BUY? I tried that and it doesn't work, as the semi-colon stops the program running all the way (as I believe I need the semi-colon after TimeFrameSet as well).
Does this mean I need to separate the code so that the daily section is Part 1, weekly section is Part 2, then Buy = if Part 1 and Part 2 are true?
If so, how would I equate factors of Part 1 & 2 (if this, AND this, AND this) all are true, then Buy = Part 1 is true and Part 2 is true etc...
Even if someone could even just provide the code for this simple example, it would help me greatly, as I learn much better from examples.
Thanks so much!