Announcement

Collapse
No announcement yet.

Bar Color Demo

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bar Color Demo

    See what color looks good with your background

    function preMain()
    {
    setPriceStudy(true);
    }

    function main()
    {
    if(getCurrentBarIndex()==0)
    setPriceBarColor(Color.white );
    index=0;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.black );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.darkgrey );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.grey );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.lightgrey );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.navy );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.blue );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.aqua );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.cyan );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.teal );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.darkgreen );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.green );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.lime );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.olive );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.khaki );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.brown );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.purple );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.red );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.magenta );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.maroon );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.paleyellow );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.yellow );
    index=index-1;
    if(getCurrentBarIndex()==index)
    setPriceBarColor(Color.lightyellow );

    return
    }

    //note fuschia doesnt work even though it is listed in the help section
Working...
X