| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Vwap Hourly could someone help me to modify the DBVWAP_SD so i can starting it from a prefix hour like 0900 or 1100 , i've tried much times but nothing | ||
| |
|
| | #2 | ||
![]() | Re: Vwap Hourly if date > date[1] then begin The software evaluates each bar one at a time. When it reaches a bar that has a different date than the previous bar, it knows that a new day has begun... and resets the data. you can change the line to the following: if time = 0900 then begin This will do the reset at 0900. . Last edited by Tams; 07-02-2009 at 08:44 PM. | ||
| |
|
| | #3 | ||
![]() | Re: Vwap Hourly thanks Tams for help , i tried it and work but what i found sometime an error because if i plot it on a range or volume chart sometime where is not a candle at 0900 so or return an error or skip restart when find a candle at 0900 . i try this : if time = iniz or time =iniz+1 or time =iniz+2 or time =iniz+3 or time =iniz+4 or time =iniz+5 then begin . not elegant but must study more language code i 've seen one post where you explain a formula with begin_time and end_time , i tried to insert in the code but dont work | ||
| |
|
| | #4 | ||
![]() | Re: Vwap Hourly inputs: iStartTime (0800), ResetMinutes (60); if mod( (TimeToMinutes(time)-TimeToMinutes(iStartTime) ), TimeToMinutes(ResetMinute s) ) = 0 then begin reset code starts here | ||
| |
|
| | #5 | ||
![]() | Re: Vwap Hourly ![]() make some attempts, what do you mean with reset code starts here maybe replace : if date > date[1] then begin with if mod( (TimeToMinutes(time)-TimeToMinutes(iStartTime) ), TimeToMinutes(ResetMinute s) ) = 0 then begin | ||
| |
|
| | #6 | ||
![]() | Re: Vwap Hourly You need the two inputs also. | ||
| |
|
| | #7 | ||
![]() | Re: Vwap Hourly vars: firstbar(0), length(0); if date > date[1] then begin firstbar=currentbar; end; length=currentbar-firstbar; -------------------------------------- the above creates a variable called 'firstbar' and stores that information of when the firstbar began so that you can reference it with a second variable 'length'. length is then a changing variable that is the difference between the bar you are on and the first bar of the day. so the code 'average(close,length);' ..... is the simple average close since the day began, counting back more as the number of bars increases. I found this little piece of code very logical. | ||
| |
|
| | #8 | ||
![]() | Re: Vwap Hourly | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vwap | trader273 | Open E Cry | 4 | 09-08-2010 07:48 AM |
| Vwap | conr | Technical Analysis | 4 | 04-25-2009 10:56 AM |
| Help for SC Indicators VWAP & VWAP Bands | Trendup_ | Market Profile | 3 | 11-29-2008 11:00 AM |
| Help for SC Indicators VWAP & VWAP Bands | Trendup_ | Market Analysis | 0 | 09-20-2008 11:14 PM |
| IRT and VWAP | dupaski | Market Profile | 2 | 02-05-2008 04:22 PM |