How to create a crossover strategy?
Author: dougm
Creation Date: 8/19/2010 6:54 AM
profile picture

dougm

#1
Thanks in advance for any advice...I'm trying to set up the following, but haven't figured out how to do it: I want to set up a very simple cross-over strategy that will buy when a fast (5 minute) SMA crosses a slow, but I only want it to execute contingent upon a cross-over of a different scale (60 minute). Anyone know how to set that up?
profile picture

Eugene

#2
Assuming that you'd like to use the opposite crossunder to invalidate the setup, here's a quick mockup:
CODE:
Please log in to see this code.

References:

WealthScript Programming Guide > Multi-Time Frame Analysis
Wealth-Lab Wiki > Tutorial: Setups, Triggers, Delays, and Timeouts
profile picture

Eugene

#3
For your future reference: post such questions in either "WealthScript", or "Wealth-Lab 101". tia.
profile picture

dougm

#4
Thanks for the help, Eugene!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).