| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Day Counter in Minute Charts does anybody know how to create a back wards day counter in minute charts that will count starting from current day equals N down to 1 ? if N is 5 lets say current day on chart will be 5 previous day will be 4 etc down to 1 and then the loop will restart 6 day previous to current day at 5 again.. note that at the beginning of each trading day the counter should be recalculated to 5 the following code is counting forward from 1 to 5 and current day increments by one each trading day untill 5 is reached and then resets to 1.. i dont know if a backwards counter is possible though.. if date > date[1] then datecnt = datecnt + 1; if datecnt > 5 then datecnt = 1 ; regards | ||
| |
|
| | #2 | ||
![]() | Re: Day Counter in Minute Charts
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... Last edited by Tams; 09-29-2009 at 10:49 AM. | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trading with Market Statistics VIII. Counter Trend Trades in Symmetric Distributions | jperl | Market Profile | 48 | 04-11-2011 04:02 PM |
| Variable Counter Array | andypap | Coding Forum | 14 | 10-03-2009 08:23 PM |
| Tick Counter for Multicharts? | daedalus | Coding Forum | 5 | 06-20-2009 12:25 PM |
| Tick Counter for Tradestation | dow(n) | Coding Forum | 2 | 02-16-2008 05:17 PM |
| DEC 14 EUR/USD 5 minute CHARTING | GalvestonForex | Forex Trading Laboratory | 1 | 12-15-2006 02:31 AM |