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

Notification

Icon
Error

Options
Go to last post Go to first unread
marco_1971  
#1 Posted : Thursday, January 9, 2014 8:42:43 AM(UTC)
marco_1971

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/9/2014(UTC)
Posts: 2

Hello,

I'd like to do the subtraction among 2 custom indicators, can someone be so kind and help me?

Let me explain:

I plot a custom indicator (A) from a security, then I plot another indicator (B) from another security (not the first one). Finally I put A and B on the same chart, using the same scale.

Now I would like to subtract B from A and... I can't do it!

Could you help me?

Best regards

Marco

MS Support  
#2 Posted : Thursday, January 9, 2014 11:33:44 AM(UTC)
MS Support

Rank: Advanced Member

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

Thanks: 91 times
Was thanked: 155 time(s) in 150 post(s)
You would need to use the Security function to reference the non-base Security, or use the "P" variable for the non-base security.

In the example below, A is using the non-base security.

Security("TICKER",Fml("A"))-FML("B")

or

p-FML("B")

In the second example, you would have to highlight FML("A") on the chart by clicking on it, then plot the formula.

FML is also more resource intensive so you may want to re-write the formula inside this new subtraction-based formula.
marco_1971  
#3 Posted : Friday, January 10, 2014 1:37:39 AM(UTC)
marco_1971

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/9/2014(UTC)
Posts: 2

Thank you!
I really appreciate it!
Best regards
Marco
Users browsing this topic
Guest (Hidden)
Similar Topics
normalizing and subtraction volume (Formula Assistance)
by magiclaas 10/3/2014 4:25:09 PM(UTC)
subtraction of two normalized index (MetaStock)
by magiclaas 12/3/2013 2:46:23 PM(UTC)
Subtraction (Formula Assistance)
by molfetta 7/26/2007 4:13:21 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.