Error

 Previous Topic Next Topic
 KTP2 #1 Posted : Tuesday, November 11, 2008 4:42:56 PM(UTC) Rank: Advanced MemberGroups: Registered, Registered Users, SubscribersJoined: 2/2/2007(UTC)Posts: 367Was thanked: 1 time(s) in 1 post(s) If an indicator can be displayed as a histogram, you can easily plot it with multiple colors using conditional statements. This allows you to specify different colors for different conditions. The following examples demonstrate how this is done with the MACD and the Volume, using MetaStock for Windows. The first example shows you how to display the MACD as a multi-colored plot. The conditions are; if today's MACD is greater than yesterday's, plot a green histogram, or if today's MACD is less than yesterday's, plot a red histogram. To create the formulas, choose the Indicator Builder from the Tools menu in MetaStock and enter the following formulas. Note: each formula needs to be added as a separate formula. Name: MACD +Formula: If(MACD()>=Ref(MACD(),-1),MACD(),0) Name: MACD -Formula: If(MACD()Drag the MACD + from the Indicator QuickList to a new inner window.
• Double-click on it and change the style to a histogram and change the color to green.
• Next, drag the MACD - from the Indicator QuickList to the same inner window.
• Double-click on it and change the style to a histogram and change the color to red.
• Next, drag the MACD Signal Line into same inner window and change the color to black. The conditions for the second example are; today's volume is greater than yesterday's volume, or today's volume is less than yesterday's volume. Follow the same steps as above to create and plot the formulas. Name: Volume +Formula: If(V>=Ref(V,-1),V,0) Name: Volume -Formula: If(V=Mov(V,10,S),V,0) Name: Moving Average Volume -Formula: If(V
•  Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 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.