OmniTrader Forum OmniTrader Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


  Current location        Thread information  
OmniTrader Archives
OmniTrader 2016 Technical Support
Data Lost a Year
Last Activity 7/12/2021 11:35 AM
2 replies, 1114 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : Data Lost a Year
Posted : 10/5/2017 3:37 AM
Post #42508

Removed the post since the error was NOT related to OT/VT, etc.

BarHour() DOES work properly.

Sorry about the misunderstanding. I had a coding error ... the BarDates indicator should have included the "+.5" shown below. That removes the problem.

Again, sorry!

#Indicator
' Plot+return dates for each bar as YyMmDd
dim BarYmd as integer
BarYmd=(int(frac(baryear()/100)*100+.5)*100 _
+barmonth())*100 +bardayofmonth()
plot("Ymd",BarYmd, silver)
plotlabel(140000)
plotlabel(150000)
plotlabel(160000)
plotlabel(170000)
Return BarYmd


[Edited by Jim Dean on 10/5/2017 7:33 PM]

^ Top
mholstius

Veteran
100252525
Posts: 175

Joined: 1/13/2017

User Profile
 
Subject : RE: Data Lost a Year
Posted : 10/5/2017 6:45 PM
Post #42513 - In reply to #42508

Thanks for your hard work tracking this down and letting us know about it!

I use baryear(), and it's good to know.

Excellent work,
Mark
^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Data Lost a Year
Posted : 10/5/2017 7:35 PM
Post #42514 - In reply to #42513

Mark

Apologies to all, esp Barry who patiently asked questions, until I figured it out ... the issue was an error related to conversion from floating point to integer.

Please see the info in my revision to the original post. Other posts have been deleted.

[Edited by Jim Dean on 10/6/2017 3:20 AM]

Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.