Announcement

Collapse
No announcement yet.

doji candles

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

  • doji candles

    I'm looking for an efs which colors doji candlesticks (open=close) a separate color. The standard charts used to look this way and I'm guessing someone may have made an efs to do this in the advance charting. I have found some efs to paint certain candles and I can probably adapt one of them if a doji one doesn't exist yet. tia for any assistance. -k

  • #2
    krycek
    The enclosed efs will color the up/down candles and use the default color (cyan) for the doji
    Alex

    PHP Code:
    function preMain(){

    setPriceStudy(true);
    setStudyTitle("Candlestick")
    setShowCursorLabel(false);
    setColorPriceBars(true)
    setDefaultPriceBarColor(Color.cyan);

    }

    function 
    main(){

    if(
    close(0)>open(0))
    setPriceBarColor(Color.lime);

    if(
    close(0)<open(0))
    setPriceBarColor(Color.red);

    return;

    Comment


    • #3
      perfect
      tyvm Alex

      Comment

      Working...
      X