tech/a
No Ordinary Duck
- Joined
- 14 October 2004
- Posts
- 20,417
- Reactions
- 6,356
An option to trade in relation to index movement is:
Q = Foreign("^AORD", "Close"); // Change to index of choice
Q1 = DEMA(Q, 250); // Change to desired moving average & period
Q2 = Q > Q1; // Open long positions
Q3 = Q < Q1; // Open short positions
Q4 = Cross(Q1, Q); // Close ALL long positions
Q5 = Cross(Q, Q1); // Close ALL short positions
Vary Q and/or Q1. Usable in conjunction with other buy/sell criteria.
Your kidding.
Call option above 250 DEMA and Put below.
So your entry and exit is based on a cross of the DEMA.
Mind boggling