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

Notification

Icon
Error

Options
Go to last post Go to first unread
Irish  
#1 Posted : Friday, November 5, 2010 6:42:08 AM(UTC)
Irish

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/5/2010(UTC)
Posts: 1

How to create a formula that gives a signal when mov 5, mov 10, cross mov 20, only when mov 20 is pointing down or up


johnl  
#2 Posted : Saturday, November 6, 2010 8:57:26 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

a* are your parms
b* are your calcs
c* are your plots
play around with "b"s to get what you want or add/change parms.

a1:=mov(C,5,S);
a2:=mov(C,10,S);
a3:=mov(C,20,S);
b1:=Cross(a1,a3);
b2:=Cross(a2,a3);
b3:=BarsSince(b1=1)<10; (let b1 cross before b2)
b4:=a3-Ref(a3,-2)>0; (mov(20) sloped up)
c1:=b2 and b3 and b4;
c1
Users browsing this topic
Guest (Hidden)
Similar Topics
EXPLORATION Formulas – A ‘Lucky-Dip’. (MetaStock)
by tonythekiwi 9/6/2024 4:44:32 AM(UTC)
Correlation formula (or process) ? (Formula Assistance)
by TomHam 4/15/2024 2:12:07 AM(UTC)
Formula help for Exploration (Formula Assistance)
by SAINI9466637986 12/24/2023 5:53:23 AM(UTC)
Highest Value of the formula (Formula Assistance)
by PROFIT306 7/11/2023 12:23:54 PM(UTC)
formula need- how the multiplier (Formula Assistance)
by mohamedmostfa 6/15/2023 8:14:58 PM(UTC)
formula need (Formula Assistance)
by mohamed_farahat 6/5/2023 4:07:53 PM(UTC)
the first date of trade formula (Formula Assistance)
by mohamedmostfa 4/6/2023 8:43:08 PM(UTC)
More than 2 signals formula (Formula Assistance)
by PROFIT306 1/16/2023 1:50:18 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)
How is the formula written? (Formula Assistance)
by NathanGibson 9/27/2022 1:43:01 AM(UTC)
Formula That Uses Weekly Data Only (Formula Assistance)
by TomHam 7/28/2022 7:39:55 PM(UTC)
How to Make This Formula Work? (Formula Assistance)
by markpc17 7/10/2022 5:23:14 PM(UTC)
Making the Titanic Fly formulas (Formula Assistance)
by TomHam 6/23/2022 3:58:05 PM(UTC)
Formula To Sell : When Price Increases By 3% (Formula Assistance)
by SAK_Trader 12/5/2021 9:46:36 AM(UTC)
need help in formula for volume profiler (Formula Assistance)
by Kajaldalal1209 12/4/2021 8:26:36 PM(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.