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

Notification

Icon
Error

Options
Go to last post Go to first unread
Leverage  
#1 Posted : Monday, October 18, 2010 5:25:53 AM(UTC)
Leverage

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 1/25/2010(UTC)
Posts: 44
Location: Rome, IT

Hi guys...
i've just write the centered moving average formula. To apply this easier I created with the indicator buider a function Fml("CMA_x_period") that work perfectly.

Now I need to write a formula that apply this centered moving average and then reapply the same over that...how can I write this in an only function without apply two times manually the function Fml("CMA_x_period")?

Tnx everybody!
johnl  
#2 Posted : Monday, October 18, 2010 7:46:54 PM(UTC)
johnl

Rank: Advanced Member

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

You have lost me. Are you talking about doing something like:
Mov(Mov(C,5,S),10,S)
with your Fml("CMA_x_period") function?


Leverage  
#3 Posted : Tuesday, October 19, 2010 2:46:05 AM(UTC)
Leverage

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 1/25/2010(UTC)
Posts: 44
Location: Rome, IT

Exactly johnl!
in your example Mov(Mov(C,5,S),5,S)...both moving averages with the same periods...but you've got precisely!

johnl  
#4 Posted : Tuesday, October 19, 2010 7:53:14 PM(UTC)
johnl

Rank: Advanced Member

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

I don't think you can pass parms like that in a regular indicator that you can make in indicator builder, or at least I have never seen it done. I dup the code twice. I have
become an expert in using Ctrl C and Ctrl V to copy and past code.




vienna  
#5 Posted : Wednesday, October 20, 2010 6:28:37 AM(UTC)
vienna

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/14/2009(UTC)
Posts: 140
Location: Austria

You are possible to pass single parameters to implemented indicators (formulas) with the gv.dll but you still have to call one function after the other - maybe it would be possible with +Prev-Prev but this costs a lot of time...

http://forum.equis.com/forums/10750/ShowThread.aspx
http://forum.equis.com/forums/thread/24369.aspx
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.