| stratiG 147 posts
 msg #119213
 - Ignore stratiG
 | 4/25/2014 4:14:30 PM 
 How would you determine the %return  since a signal occurred?
 
 example: 5 days ago x happened(filter result) whats the %move from that date to today.
 
 I think I saw some code here in the past year that does this. Any help would be much appreciated.
 
 Thanks,
 George
 
 
 | 
| four 5,087 posts
 msg #119216
 - Ignore four
 modified
 | 4/25/2014 4:59:36 PM 
 3 days ago x happened (filter result) whats the %move from that date (open) to today (close).
 
 
 
 
 
 
 | 
| stratiG 147 posts
 msg #119220
 - Ignore stratiG
 | 4/26/2014 9:34:36 AM 
 thanks
 
 
 
 | 
| Kevin_in_GA 4,599 posts
 msg #119221
 - Ignore Kevin_in_GA
 | 4/26/2014 9:59:17 AM 
 This is why we need a function like ValueWhen(X,Y) where X is the variable whose value is desired (e.g., close) and Y is the specific condition that was met.
 
 Example - ValueWhen(close, rsi(2) crossed above cma(rsi(2),10))
 
 There could be lots of uses for something like this.
 
 
 | 
| four 5,087 posts
 msg #119222
 - Ignore four
 | 4/26/2014 2:54:13 PM 
 stratiG
 - Welcome
 
 
 |