Announcement

Collapse
No announcement yet.

Candle color Problems

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

  • Candle color Problems

    I have programmed a very basic EFS that changes the color of a candle when a specific condition occurs. It works fine, but the candles that occur after the EFS is triggered turn white and have no tails. Once the EFS triggers again, the candle and the tails appear again but in black.

    Does anyone know how to fix this?

  • #2
    Re: Candle color Problems

    sberg2007
    Post the script and someone will be able to assist you
    Alex


    Originally posted by sberg2007
    I have programmed a very basic EFS that changes the color of a candle when a specific condition occurs. It works fine, but the candles that occur after the EFS is triggered turn white and have no tails. Once the EFS triggers again, the candle and the tails appear again but in black.

    Does anyone know how to fix this?

    Comment


    • #3
      Here is the EFS Script.

      Thanks
      Attached Files

      Comment


      • #4
        sberg
        In eSignal once you paint a price bar/candle (even if only when your condition is true) you override the chart's default colors.
        So if you want to see the price bars/candles colored green/red when your condition is not true you need to set all the conditions that will color the price bars accordingly.
        To do this you will need to add a Set2 in which you check for the Close > Open to paint the candle in the up color and then a Set3 in which you check for Close < Open to paint the candles in the down color.
        You then also need to add a further condition to paint the candles when none of the above conditions are true (for example if the Close is equal to the Open). To do this add a Set4 in which you check for a condition that is always true by default (for example 1 == 1) and in which you apply your default color.
        All these steps are illustrated in the screenshots enclosed below.







        Once you have done this you may want to review this article in the EFS KnowledgeBase on the optional parameters that are available in the setPriceBarColor() function which are used exclusively for candlesticks. Keep in mind though that these optional parameters are not provided by the Formula Wizard so you need to enter them manually (either in the Formula Wizard) or using the Editor.
        Hope this helps
        Alex


        Originally posted by sberg2007
        Here is the EFS Script.

        Thanks

        Comment

        Working...
        X