logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pwood  
#1 Posted : Sunday, September 20, 2009 12:21:12 AM(UTC)
pwood

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

johnl  
#2 Posted : Sunday, September 20, 2009 7:07:21 PM(UTC)
johnl

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.


pwood  
#3 Posted : Sunday, September 20, 2009 10:32:34 PM(UTC)
pwood

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

Data  
#4 Posted : Monday, September 21, 2009 5:40:14 AM(UTC)
Data

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 ?!?}
pwood  
#5 Posted : Monday, September 21, 2009 1:26:20 PM(UTC)
pwood

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

pwood  
#6 Posted : Monday, September 21, 2009 1:29:39 PM(UTC)
pwood

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)
Similar Topics
May 2023: An Adaptive Moving Average For Swing Trading (2023)
by MS Support 11/7/2023 6:05:19 PM(UTC)
Moving Averages Values (Formula Assistance)
by Redhorse 10/27/2022 9:43:49 PM(UTC)
How to write a formula to identify a moving average that is trending up in last month (Formula Assistance)
by Anne Austin 10/25/2022 7:17:16 AM(UTC)
Calculating Future Price At which RSI & Moving Average Will Cross Over (Formula Assistance)
by SAK_Trader 7/29/2021 5:20:14 PM(UTC)
moving average---true (Formula Assistance)
by gorachand 6/30/2020 7:37:02 AM(UTC)
July 2018: The Deviation-Scaled Moving Average (2018)
by MS Support 11/5/2019 5:48:31 PM(UTC)
Arnaud Legoux Moving Average (Formula Assistance)
by PersonnaBlue 10/13/2018 7:14:58 AM(UTC)
Multiple moving average (Formula Assistance)
by gorachand 1/29/2018 4:52:54 PM(UTC)
April 2017: Volume-Weighted Moving Average Breakouts (2017)
by MS Support 7/28/2017 10:31:55 PM(UTC)
August 2016: The Middle-High-Low Moving Average (2016)
by MS Support 7/28/2017 10:01:50 PM(UTC)
Shifted moving average (Formula Assistance)
by Rafael 4/18/2017 8:13:08 AM(UTC)
Moving Average and Barssince (Basic Coding Techniques)
by JayB 3/4/2017 4:21:50 PM(UTC)
Moving average issue (Formula Assistance)
by JayB 1/29/2017 1:47:20 PM(UTC)
Displaced moving average (MetaStock)
by gorachand 10/18/2016 5:32:11 PM(UTC)
Kauffman adaptive moving average (Formula Assistance)
by ohad@altris.co.il 10/9/2016 10:48:05 AM(UTC)
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.