Announcement

Collapse
No announcement yet.

question re 3pb/lb

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

  • question re 3pb/lb

    I am using the 3pb/lb chart and would like to have an alert every time the chart updates with a new bar. Does anyone know how to do this?


  • #2
    mgladwin
    I think the enclosed formula does what you asked
    Alex

    PHP Code:
    function preMain(){
    setPriceStudy(true);
    setShowCursorLabelfalse);

    }
    function 
    main(){

    nState getBarState();

    if (
    nState == BARSTATE_NEWBAR) {
    Alert.playSound("ding.wav");
    }

    return 
    null;

    Comment


    • #3
      Spot on, many thanks!

      Comment

      Working...
      X