# Support Board

Date/Time: Sat, 04 Apr 2020 04:36:19 +0000

## [User Discussion] - Alert bar syntax for % difference

 [2019-06-06 07:57:13] #1 User373551 - Posts: 2 | Ending Date: 2016-10-04 [Expired] Can someone give me an example of the syntax needed for a color alert bar based on the percent difference between the high (or low) and the close of a study ? For example, the alert would show when the high of a given study is a value 60% greater than the close on the current bar . . . Thanks for your time-
 [2019-06-06 15:48:16] #2 tomgilb - Posts: 2430 | Ending Date: 2020-04-30 For a ratio of High minus Close to the bar's range: =(H-C)/(H-L) For a ratio of Close minus Low to the bar's range: =(C-L)/(H-L) To apply these formulas to a study's values, the study must output OHLC values in separate subgraphs, e.g. the Daily OHLC study as ID1: =(ID1.SG2-ID1.SG4)/(ID1.SG2-ID1.SG3) =(ID1.SG4-ID1.SG3)/(ID1.SG2-ID1.SG3) To get an alert greater than 60%: =(H-C)/(H-L)>0.6 =(C-L)/(H-L)>0.6
 [2019-06-07 15:43:57] #3 User373551 - Posts: 2 | Ending Date: 2016-10-04 [Expired] Thank you for your time on this. Hope you have a great weekend.