Announcement

Collapse
No announcement yet.

Pivot High - Pivot Low Study

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

  • #16
    tsentosa
    As I said in my prior reply I no longer have those efs in my Wizard->Alerts folder therefore I cannot comment on the differences between those and the ones in Alerts folder
    With regards to your second question an efs cannot be used in a Quote window (or to display to a Quote window)
    Alex

    Comment


    • #17
      alerts on bar close

      the alerts are currently displaying on every tick. suppose i'm working with hourly chart i want the alert after the hourly bar close. how can i do that?

      Comment


      • #18
        rupe
        Create an external (ie global) variable var vFlag = 0;
        Then after the commented section "Insert your code etc etc ..." insert the following lines of code

        if(getBarState()==BARSTATE_NEWBAR){
        vFlag = 0;
        }


        In each conditional statement add && vFlag == 0 ie as follows

        if(high(-2)>vDonch.getValue(DonchianStudy.UPPER,-3)&&high(-1)<high(-2)&&high()<high(-2) && vFlag == 0){

        Lastly after the command line that triggers the alert add a line with the following

        vFlag = 1;

        At this point you will only get one sound when the condition returns true
        Alex

        Comment


        • #19
          much better!

          thanx alex, i updated the changes you suggested and now it works much better.
          Attached Files

          Comment

          Working...
          X