Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/12/2009(UTC) Posts: 9
|
Hi All,
I can write the formula for a close above a moving average of the high range.Is it possible to then,for an uptrend signal ,write more conditions so it must then close beneath the ma of the lows then back above the ma of the highs and the bar it does it on must close higher than the HIGHEST RANGE of the preceeding group of highs?.All help would be greatly appreciated,
Peter
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
I would first create signals for each of my conditions (1s or 0s). Then I would use BarsSince() to require one signal needing to happen before or after another. If you are comparing previous values of a condition to a current one use the function ValueWhen() to qualify Hope this helps.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/12/2009(UTC) Posts: 9
|
Hi Johnl,
Thanks for the reply.I will see if i can write something using your information,
Peter
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 5/20/2008(UTC) Posts: 53
|
pwood wrote:Hi All,
I can write the formula for a close above a moving average of the high range.Is it possible to then,for an uptrend signal ,write more conditions so it must then close beneath the ma of the lows then back above the ma of the highs and the bar it does it on must close higher than the HIGHEST RANGE of the preceeding group of highs?.All help would be greatly appreciated,
Peter I'm not sure I understand. Could you list all the conditions for me so that I can help you ? For what I understand, here's what must happen : condition 1 : uptrend signal {what would that be ?!?} condition 2 : then close beneath the ma of the lows condition 3 : then close above the ma of the highs and must be higher then the highest range of preceding highs {what's does that means ?!?}
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/12/2009(UTC) Posts: 9
|
Hi Data,
An example of an uptrend signal would be,on a bar chart of 60min bars:
Condition 1:a close above ma of highs
Condition2:a close beneath ma of lows
Condition3: a close above ma of highs
Condition4: the close in Condition3 must also close above the highest high that occurred
when Condition1 occurred from that bar and every subsequent bar until Condition 2 occurred
Hope this has explained things better,let me know if you need to know more,thanks for the help,
Peter
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/12/2009(UTC) Posts: 9
|
Hi Again Data,
I forgot to add the periods for the ma for highs and lows would be 12
Peter
|
|
|
|
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.