in Search

Indicator's Color change as it changes direction

Last post 12-24-2007, 7:17 by Sam7768. 13 replies.
Sort Posts: Previous Next
  •  12-20-2007, 12:42 26113

    Indicator's Color change as it changes direction

    Hello Friends...

    One more wish to the list....

    I would like to see indicator's color change as it changes direction. For example, 20 day MA color changes from say red to blue as it turns up and blue to red as it turns down. I have seen in some softwares and found really useful....especially as eyes get glued to the sceen, change of color gets instant recognition. I know I can program this thro expert to give an arrow or something like that, but the screen becomes much crowded.

    Any thoughts?

     

     

     

     

     

     

  •  12-20-2007, 15:59 26118 in reply to 26113

    Re: Indicator's Color change as it changes direction

    hey sam..... it has always suprised me that feature is not available also.... and by 'available' i mean in the exact manner ensign software employs, if not in a better manner.....

     

    we can of course do work arounds.... plotting moving averages using dots will allow for up/down multiple color  changes....  and if we increase the dot size a slight hint of a line appears..... we can  have many colors in the dots, so as the ma aproaches extremes the color changes still.......

    hopefully  somewhere in salt lake city on a 'top secret burner' are plans to blow the competition out of the water with v11's maximum color capabilities......h

  •  12-20-2007, 20:14 26122 in reply to 26118

    Re: Indicator's Color change as it changes direction

    Hi Hayseed,

    Thanks for your post.

    Are you saying that by selecting dots, we can code the color changes? can you please give me the formula for...say 20 day ema to change to red on down and to blue on up?

    Please advice. Thanks

     

     

     

     

     

  •  12-21-2007, 5:50 26126 in reply to 26122

    Re: Indicator's Color change as it changes direction

    hey sam.... it's the use of the histogram style and ploting dots  that allows for multi colored ma's or most any line style plot....   check here for steps..... 

    the formula would be similar to this...

    //----------------------------------------

    periods:=Input("periods",2,200,20);
    a:= Mov(C,periods,S);
     
    aa:=If(a>Ref(a,-1),a,0);
    aaa:=If(a<Ref(a,-1),a,0);

    aa;
    aaa;

    //-------------------------------------

     

    and if your wanting to multicolor something like vegas tunnels, which are offset ma's similar to bb bands, you can add the offset amount plus and minus......  h

  •  12-21-2007, 7:00 26127 in reply to 26126

    Re: Indicator's Color change as it changes direction

    Hi Heyseed,

    Thank You very much!!

    Will check this today and let you know.

    Thanks again.

     

     

     

  •  12-21-2007, 9:17 26128 in reply to 26126

    Re: Indicator's Color change as it changes direction

    Hi Heyseed,

    I tried and I am not getting it. Sorry for my dumbness Embarrassed [:$]

    Let me explain what I did.

    1) Created a new indicator with your above formula

    2) Dragged that indicator to a new window

    3) Clicked on the obvious upline and (a) changed the color to Blue and (b) selected the "style" to dotted wavy histogram style and (c) "Weight to thick line

    4) I did the same to down line with color Red and other changes same as above

    5) What I got was two horizontal lines of beads (and yes, color of the top line does change as per the MA up-downs)

    6) What I am looking for is color change of the MA on the price chart (not straight line beads).

    In your picture, I did see the MA on the price chart (not seperate window) with changing colors. How do I get that?

    Please advice.

    (I tried attached the snap shot, but looks like I don't have that option).

     

    Thanks

     

     

     

     

  •  12-21-2007, 10:31 26132 in reply to 26128

    Re: Indicator's Color change as it changes direction

    hey sam.....  once you have the indicator in it's window, right click on right hand scale and select 'y axis properties'..... one selection says auto and minimum..... uncheck auto and set the minimum to relate to your security..... for csco we might use 15 as a minimum but for ibm we might have to use 70.... 

    and for brk-a we would use 100,000.....  well, ok, maybe not we, but that is what henry would use.....  word on the street is,  he has minimum of a few hundred shares......Big Smile [:D]

    do the same steps when you place it on the price chart, just adust the minimum to a realistic setting.....h

  •  12-22-2007, 23:39 26142 in reply to 26132

    Re: Indicator's Color change as it changes direction

    Hi Heyseed,

    Still could not do. by adjusting the y-axis scale, the horizontal lines moved up or down (depending upon my minimum parameters) and did not become curves and remained same as straight line beads.

    I use Metastock 10 Pro and do I need to do any thing differently?

    Thanks a lot for your time.

     

     

     

     

     

  •  12-23-2007, 18:49 26144 in reply to 26142

    Re: Indicator's Color change as it changes direction

    hey sam..... using v10 p here also but the version should not matter.....  perhaps it's  in the way you are rescaling the y axis.....

    here is one way........ 

    using 'alcoa' as an example,

    on the right hand scale, right  click on 35.....

    choose the top selection, 'y axis properties'.....

    under auto, uncheck minimum..... that should turn the box green but the -numbers should still be faded out ..... now click the green box again, which should turn it white and the -numbers dark...... at this point you can change the -numbers  to 30, in alcoa's case.... your setting should match your securities proximity....

    that should do it.... you might have to adjust the number again to fine tune it......

     

    let us know how it turns out.....h

  •  12-23-2007, 20:31 26146 in reply to 26144

    Re: Indicator's Color change as it changes direction

    Hi Heyseed,

    I found the real issue. I see in your chart, bottom line of the indicator is straight, but top line of the indicator is curvy (not straight).

    But in my indicator, both the top and bottom lines are straight lines and thus even when I apply the scale, I am still getting the straight lines.

    I am using this formula...

    ****

    periods:=Input("periods",2,200,20);
    a:= Mov(C,periods,S);
     
    aa:=If(a>Ref(a,-1),a,0);
    aaa:=If(a<Ref(a,-1),a,0);

    aa;
    aaa;

    ****

    Regards.

     

     

     

  •  12-23-2007, 21:01 26147 in reply to 26146

    Re: Indicator's Color change as it changes direction

    hey sam...... hmmm.....  what are you applying the indicator to......

     if you  apply it to the price chart itself, be sure to select merge with scale on right.....   you can right click on the top row of colored dots and select merge with scale on right.....  don't choose overlay....

    do you by chance have scales on both the right and left side of your chart......

     

    try applying to a new empty window  and see if it will work after changing the scale......h

  •  12-23-2007, 22:20 26149 in reply to 26147

    Re: Indicator's Color change as it changes direction

    Hi Heyseed,

    I am applying to a new window. (and my chart has only one scale to right). Either way, I see only two lines and not curve at the top.

    Can I request a favor?

    Try copy this below formula (exactly) into your new indicator and apply to a new window. (I agree that this is your formula :-) but looks like something is missing somewhere).

    ****

    periods:=Input("periods",2,200,20);
    a:= Mov(C,periods,S);
     
    aa:=If(a>Ref(a,-1),a,0);
    aaa:=If(a<Ref(a,-1),a,0);

    aa;
    aaa;

    ********

     

    Do you see curvy line (at top) or straight line?

    Regards.

  •  12-24-2007, 7:12 26154 in reply to 26149

    Re: Indicator's Color change as it changes direction

    hey sam..... used the code from your post,  works perfect here..... what security are you applying this to.....h
  •  12-24-2007, 7:17 26156 in reply to 26154

    Re: Indicator's Color change as it changes direction

    I normally trade S&P Emini. But i have also applied to AA and other securities and I see the same problem. I would like to send screen shots for your perusal but the web site is not allowing me to post files. How I can send the screen shots?

    Regards.

View as RSS news feed in XML