Rank: Newbie
Groups: Registered, Registered Users Joined: 5/14/2005(UTC) Posts: 4
|
I am looking to include a MACD crossover as one of the criteria for a formula. In technicals, often times things happen, not exactly at the same time, but pretty close. So if X happens, the stage is set, then if Y happens - do Z.
I tried to do a lookback idea, using references and or statements and that basically overran the other elements of my formula.
So, my question is this: How do i write a formula that will look back n periods for one criteria. Ex. Stochastic reading above 80 within the past 5 trading sessions and a MACD sell cross on today's close. Thank you very much for any help provided.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Use the alert function ...
Alert(Your condition, back n periods)
Patrick
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.