Announcement

Collapse
No announcement yet.

alert formula

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

  • alert formula

    RE: basicstochastic(alert).efs formula that you sent me.

    It seems to work on a tick basis. Is there a way I can modify it so it returns only one alert at the end of a chart period, such as a 60 minute chart.

    Thanks

  • #2
    astoller
    It is possible that you downloaded the efs right after I posted it because shortly thereafter I actually uploaded a revised version that only dings at the end of a period.
    You may want to download it again or alternatively substitute the relevant section of the code with the one enclosed below (assuming it is different)
    Alex

    PS. When replying click the Post Reply button in the top right corner of this message rather than creating a new thread.

    PHP Code:
    if(getBarState()==BARSTATE_NEWBAR){

    if(
    vStoch.getValue(StochStudy.FAST,-3)<vStoch.getValue(StochStudy.FAST,-2)&&
       
    vStoch.getValue(StochStudy.FAST,-1)<vStoch.getValue(StochStudy.FAST,-2))
       
    Alert.playSound("ding.wav");
       
    if(
    vStoch.getValue(StochStudy.FAST,-3)>vStoch.getValue(StochStudy.FAST,-2)&&
       
    vStoch.getValue(StochStudy.FAST,-1)>vStoch.getValue(StochStudy.FAST,-2))
       
    Alert.playSound("ding.wav");
       

    Comment

    Working...
    X