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

Notification

Icon
Error

Options
Go to last post Go to first unread
vinayak  
#1 Posted : Monday, January 30, 2017 8:13:48 AM(UTC)
vinayak

Rank: Newbie

Groups: Registered Users, Subscribers
Joined: 9/28/2015(UTC)
Posts: 7

Thanks: 1 times
I want to plot

    1.    if(Today's A AND Today's B)>(previous days B)
    2.    if(Today's A AND Today's B)<(previous days B)
    3.    if(Today's A)>(previous days B) AND if(Today's B)<(previous days B)

> Today's A,B and Previous Days B is the reference of INDICATOR_x's variable.

Only one condition will satisfy at a time.

> I Want to plot 1,2,3 when condition match.

> And i want to plot this indicator on intraday chart. So result value 1,2,or 3 must be the same for the day. (In my previous post's given answer is just show one spike and first candle and remain 0 for rest of the day)

wabbit  
#2 Posted : Tuesday, January 31, 2017 12:37:19 AM(UTC)
wabbit

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
If your 'A' and 'B' are standard indicators, then you can utilise MSTT's awesome multi-timeframe indicator suite... If they are more complicated, the best way to achieve your aim is with external functions as Metastock is very poor at mixing timeframes.
Users browsing this topic
Guest (Hidden)
Similar Topics
If or Nested If (Advanced Coding Techniques)
by vinayak 9/22/2016 10:32:23 AM(UTC)
A Case statement instead of nested IFs (Product Wish List)
by vaughn 5/22/2005 1:33:46 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.