OmniTrader Professional Forum OmniTrader Professional 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 Professional Forum
OmniLanguage Discussion
How do you plot an indicator from a different time
Last Activity 7/6/2025 3:47 AM
7 replies, 3752 viewings

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

^ Top
tradermike

 
Subject : How do you plot an indicator from a different time
Posted : 10/16/2006 1:01 PM
Post #3305

How do you plot an indicator from a different timeframe?

I would like to calculate something based on "daily" bars, but then view that result in different timeframes - such as on hourly or 5min charts. To make the example simple, lets say that I want to calculate the 15 period SMA based on the daily close, then see that plotted on a 5min chart.

I'd appreciate any help/input here. Thanks in advance,
--Mike
^ Top
Matthew Greenslet

Idol
2000252525
Posts: 2077

Joined: 2/27/2006

User Profile
 
Subject : RE: How do you plot an indicator from a different
Posted : 10/16/2006 2:13 PM
Post #3306 - In reply to #3305

Currently this functionality does not exist in the software however it would be a great feature request. You may want to make the suggestion in our Feature Request thread on this forum.
^ Top
tradermike

 
Subject : RE: How do you plot an indicator from a different
Posted : 10/16/2006 4:47 PM
Post #3308 - In reply to #3305

Thanks for responding. I'll do that.
--Mike
^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: How do you plot an indicator from a different
Posted : 10/16/2006 7:32 PM
Post #3310 - In reply to #3308

Actually, you could write code in OmniLanguage for this indicator, yourself. For example, if you wanted to simulate weekly bars on a daily chart (without slavishly sticking to Mon-Fri = a week), you could just write code that plots the highest high of the prior five days, holding it fixed for the next five days, then changing its value to a new HH on the fifth day following. Also, do the same for the lows.

It would sort of look like a "channel". I can't envision a good way to plot the open and close ... could do the same thing, but it would not be the extremes of a five day period, rather it would be the Open of the first day of the five, and the Close of the last day of the five.

You'd get four "stairstep" lines on the chart.. could be different colors or styles, I suppose.

If you think this would be helpful, if I get some time I'll take a stab at writing the core logic out for you ... but I'll leave it to you to add the plot colors, etc.

Give it a try yourself, first, eh?

Jim Dean
^ Top
tradermike

 
Subject : RE: How do you plot an indicator from a different
Posted : 10/20/2006 12:10 PM
Post #3327 - In reply to #3305

Hi Jim,

Thanks for taking to time to respond, and for your offer of help. That is very nice of you.

Don't worry about spending time writing up some core logic for me. I am comfortable with doing some coding, after all it's kinda fun.

As for your suggestion, I understand the algorithm that you are proposing, but for my specific application I don't think it will work exactly as desired. (i.e. would need slightly different formulas to look at the indicator across hourly, 15min, 5min charts, etc. And getting it to start on the desired bar may be a challenge.) At the end of the day, I believe one needs to know both the date and time of a given bar in order to do this correctly.

Once again, thanks for your input.
--Mike
^ Top
Bill Graves

Veteran
100252525
Posts: 184

Joined: 3/22/2006
Location: Phoenix, Arizona

User Profile
 
Subject : RE: How do you plot an indicator from a different
Posted : 10/20/2006 1:30 PM
Post #3328 - In reply to #3327

This would be a nice enhancement to OT. This capability is a built-in function in Trade Station and very easy to plot almost anything from one time frame on any other time frame.

Regards to all,
^ Top
tradermike

 
Subject : RE: How do you plot an indicator from a different
Posted : 10/20/2006 3:58 PM
Post #3330 - In reply to #3305

Thanks Bill.

If you think this would be a useful feature then perhaps you could reply with your opinion to the feature request post located here:

http://www.omnitrader.com/omnitrader/proforum/thread-view.asp?threadid=713&posts=2

I assume that the more people who reply in support of feature requests, the more likely Nirvana will listen.

Regards,
--Mike
^ Top
THOMAS HELGET

Elite
500100
Posts: 610

Joined: 3/22/2006
Location: BALDWINSVILLE, NEW YORK

User Profile
 
Subject : RE: How do you plot an indicator from a different
Posted : 2/15/2007 11:26 AM
Post #4064 - In reply to #3310

Jim:

I want to plot an indcator in a higher time frame along with the indicator in the current timeframe (daily and weekly). Were you ever successful in generating any code for this?

Thanks,

Tom Helget
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.