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

Notification

Icon
Error

Options
Go to last post Go to first unread
markpc17  
#1 Posted : Sunday, July 10, 2022 5:23:14 PM(UTC)
markpc17

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 8/3/2014(UTC)
Posts: 5

I am trying to replace one of my Exploration columns from one comparison to another.

What I have now is basically recording how many weeks (weekly chart being used) the MACD has crossed over zero and is positive (or it shows a 0)

If(MACD()>0,BarsSince(MACD()<=0),0)

That works fine.  But, I want to use one of my custom formulas so its function is:

Fml("POWER Testing")

If I change MACD to that it looks like:

If(Fml("POWER Testing")()>0,BarsSince(Fml("POWER Testing")()<=0),0)

However every time I try that it says the function needs to be immediately followed by  (

Any ideas how to format that right?

MS Support  
#2 Posted : Monday, July 11, 2022 2:11:29 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,812

Thanks: 72 times
Was thanked: 148 time(s) in 144 post(s)
Originally Posted by: markpc17 Go to Quoted Post

I am trying to replace one of my Exploration columns from one comparison to another.

What I have now is basically recording how many weeks (weekly chart being used) the MACD has crossed over zero and is positive (or it shows a 0)

If(MACD()>0,BarsSince(MACD()<=0),0)

That works fine.  But, I want to use one of my custom formulas so its function is:

Fml("POWER Testing")

If I change MACD to that it looks like:

If(Fml("POWER Testing")()>0,BarsSince(Fml("POWER Testing")()<=0),0)

However every time I try that it says the function needs to be immediately followed by  (

Any ideas how to format that right?

Hi,

It looks like you'd probably want to get rid of both sets of ( ) at the end of your FML calls:

Code:
If(Fml("POWER Testing")>0,BarsSince(Fml("POWER Testing")<=0),0)

markpc17  
#3 Posted : Monday, July 11, 2022 3:31:24 PM(UTC)
markpc17

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 8/3/2014(UTC)
Posts: 5

Thank you for the fast reply.  That worked!

Users browsing this topic
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.