Need help creating custom indicators that will show me inventory for specific periods.

Login or Register

Please login or register in order to view and post in the Forum.

4 posts / 0 new
Last post
dmavro
Last seen: 2 weeks 6 days ago
Joined: 01/12/2023 - 19:41
Need help creating custom indicators that will show me inventory for specific periods.

Ive been trying to figure out correct way to write a few custom indicators in RTL. Ive successfully written a few things that im currently using but i cant seem to wrap my head around how to write 3 of the custom indicator ive been working on. The 3 im trying to write at moment are...
1. Indicator for weekly Inventory thats based off of prev weeks Day Session close.
2. Another for weekly inventory thats based off of prev weeks Day Session VPOC.
3. Indicator that shows WeekType somehow. I tried using DayTypes in custom indicator but then came to conclusion that the Token is called DayTypes for a reason and dont think it can be used for anything but Day types no matter how you try to use it in custom indicator or even if you add it to specific chart interval.

I only have 1 requirement that they need to adhere too. They all need to be able to store their values in variables so they can be exported.

I originally found examples on Linnsoft site that used Imbalance Token so thats what ive been trying to use in all my attempts. I also tried using what i found here https://www.linnsoft.com/charts/imbalancepriorclose-es as a template but i dont think any of my results were correct when i visually inspected the outcomes on my charts.

Any help would be greatly appreciated!

Thanks in advance.

0
cpayne
Last seen: 1 year 9 months ago
Joined: 03/30/2009 - 00:00
Weekly Inventory

Let's start by focusing on this one...

1. Indicator for weekly Inventory thats based off of prev weeks Day Session close.

What exactly do you mean by "Inventory" and how is the weekly close involved?  Do you want to know how much trading occurred, this week, above the prev day session close.....vs below it?

I think I can make this pretty easy on you.

There is an indicator called Volume Price Statistics that has a statistic result that should give you just what you need...

So add this to a chart set to periodicity of "Time Per Bar: 1 Week", and set to day session.

Here is the catch, you HAVE to have tick data on the symbol for the current week and previous week.  So you'll probably need to setup tick retention on that symbol to something like 12 or 14 days, and need to make sure you've downloaded the tick data for that period.

Let me know if that helps.

dmavro
Last seen: 2 weeks 6 days ago
Joined: 01/12/2023 - 19:41
Thanks Chad. Ill look at that

Thanks Chad. Ill look at that and see if it gives me what im looking for.

dmavro
Last seen: 2 weeks 6 days ago
Joined: 01/12/2023 - 19:41
There is no field to set a

I just realized that there is no field to set a variable and that this is just for volume above previous close. Would proper approach be to create a custom indicator which would then give me ability to set variable i believe? Then i would have to create another for the volume below and just subtract one from the other in my Excel sheet or set
Chart variables and do math in IRT?

Thanks again.