![]() |
| Discuss Change Colors - Histogram at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hello everybody! Does anyone know if it is possible to have Metastock 9.0 change ... |
|
|||||||
| Register | Blogs | FAQ | Chat Room | Search | Today's Posts | Mark Forums Read |
|
Welcome to the Traderji.com - Discussion forum for Stocks Commodities & Forex. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please read the FAQ. |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
Hello everybody!
Does anyone know if it is possible to have Metastock 9.0 change the colors of an histogram if values are going up or down? Thanks for the help! traderbrazil |
|
#2
|
|||
|
|||
|
You can use a trick to achieve that. Use 2 indicators, one for positive & another for negative, and, use 2 different colors for the 2 indicators! Plot them both on the same window, same scaling, etc.,
|
|
#3
|
|||
|
|||
|
IŽm not sure I understand what you mean. If I plot them in the same window, one indicator will just overlap the other and I will just see the last one plotted...
|
|
#4
|
|||
|
|||
|
You've to write (modify) 2 indicators corresponding to the indicator that you want to plot. The new indicators (1 & 2) will have positive value and negative value respectively, viz., Indicator 1 will be zero if the original indicator is below zero (-ve). This indicator will plot positive side only. Indicator 2 will be zero if the original indicator is above zero (+ve), ...
You will have to write these indicators, and, color them. If your indicator is x, say, then the following formula will calc the 2 indicators as explained above. x1:=if(x >= 0, x, 0); x2:=if(x <= 0, x, 0); x1; x2; Now you can color x1 & x2 differently. |
|
#5
|
|||
|
|||
|
Hi THETRADER,
Thank you for your input. Unfortunately I'm not really familiar with MS language. Below is the formula for the histogram I'm using: SMI (13,25,2) q:=Input("Lookback Periods?",1,1000,13); r:=Input("First EMA Periods?",1,100,25); sm:=Input("Second EMA Periods?",1,100,2); 100 * (Mov(Mov(C-(0.5*(HHV(H,q)+LLV(L,q))),r,E),sm,E) / (0.5*Mov(Mov(HHV(H,q)-LLV(L,q),r,E),sm,E))) I would really appreciate if you could apply your formula to it. Best regards and thank you once again! traderbrazil |
|
#6
|
|||
|
|||
|
The new indicator is given below, which will plot 2 lines, x1 & x2. x1 is above 0, and, x2 is below 0. Select these separately, and, change style to histogram and required color for each. Hope this is helpful.
SMI (13,25,2) q:=Input("Lookback Periods?",1,1000,13); r:=Input("First EMA Periods?",1,100,25); sm:=Input("Second EMA Periods?",1,100,2); x:=100 * (Mov(Mov(C-(0.5*(HHV(H,q)+LLV(L,q))),r,E),sm,E) / (0.5*Mov(Mov(HHV(H,q)-LLV(L,q),r,E),sm,E))); x1:=if(x >= 0, x, 0); x2:=if(x <= 0, x, 0); x1; x2; |
|
#7
|
|||
|
|||
|
Hi THETRADER,
Thanks a lot for your help!!!!!!!!! Good trading, traderbrazil |
| Sponsored Links |
|
|
![]() |
| Thread Tools | |
|
|
Indemnity, Disclaimer & Disclosure
Notice:
By visiting Traderji.com you indicate your acceptance of our Forum
Rules Disclaimer & Disclosure and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss
arising out of the use of this information.
Disclosure: The information in this forum is neither an offer
to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.