Announcement

Collapse
No announcement yet.

alert once per bar

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

  • #16
    Been testing the new code and I'm still experiencing color bar problems. When triggered, the current bar is white. When I let it run, all the previous bars loose their color characteristics... reloading will solve the previous no color bar problem, but not the current bar problem.

    Can someone check the code to fix the color bar problem?

    Comment


    • #17
      any luck with a fix?

      Comment


      • #18
        Here is the file...

        No problems so far today on my candlesticks..

        Brad
        Attached Files
        Brad Matheny
        eSignal Solution Provider since 2000

        Comment


        • #19
          brad,

          Yes, I'm using candlesticks...sorry. Well, I downloaded again and loaded today. Still getting white current candlestick when triggered. (I used it on qqq and spy 15 min) Could it be the version? I'm using build 544. I verified on qqq after FOMC today.

          Comment


          • #20
            Possible Solution...

            I don't know what it is about this script, but the color functions mess everything up on the chart. Unless I am missing something here, once you set "setColorPriceBars(true)" and begin coloring price bars....

            If you fail to force a color for a price bar, it is drawn white (even if it is an up or down bar). When I added code to force an up candle to be drawn in white - the wicks were not visible on a white background.

            So, not being able to resolve this using the COLORBAR functions, I converted it to color the background of the chart. This way, your candles are perfect and the background of the chart changes with your signals.

            I will email esignal about this for assistance..

            Here you go.

            Brad
            Attached Files
            Brad Matheny
            eSignal Solution Provider since 2000

            Comment


            • #21
              hmmm,

              interesting concept...coloring the background as the visual trigger. I'll load it for tomorrow and see. Thanks for all your help Brad. Please keep me updated about what you find from esignal. You can always email me. Goin to the online conference at Las Vegas next week...if eSignal is there, I bring it up.

              chris...

              Comment


              • #22
                I believe the "white bar effect" can be eliminated by setting a default price bar color.

                setDefaultPriceBarColor(Color.black);

                Alternatively (I've seen this be more consistent), you can code the default color through the code...

                PHP Code:
                vColor null;

                function 
                main(nDefaultColor) {

                    if (
                condition1 == true) {
                        
                vColor Color.green;
                        
                    } else if {
                condition2 == true) {
                        
                vColor Color.red;
                        
                    } else {
                        
                vColor Color.black// sets default color
                        
                    
                }

                    
                setPriceBarColor(vColor);
                    

                Regards,
                Jay F.
                Product Manager
                _____________________________________
                Have a suggestion to improve our products?
                Click Support --> Request a Feature in eSignal 11

                Comment

                Working...
                X