ProRealCode - Trading & Coding with ProRealTime™
I think we’re approaching this from two different perspectives…
I’m only looking at the actual orders in the order book and how buyers and sellers interact…
I’m not concerned with the circumstances, motivations or conditions that led them to place those orders in the first place…
My focus is solely on the price formation process itself, not on the reasons behind the decisions of market participants…
I am not sure if we are really approaching it from different perspective, and since I am not “chatGPT” I rather disagree 😀
let me state my thoughts differently, taking your words: one can definitely remove “time” from presentation of market behavior, one can also remove volume. one can sure look at plain price changes without time and volume dimension (tick charts, point+figure or what ever). but one can not remove time and volume from price formation, as all three are interdependent. current transaction with it’s price/volume/time was influenced by previous one and has impact on next transaction. what magnitude of impact they have on each other it’s different and very difficult question, but my conviction is that they have.
not trying to convince you or anybody else on anything, just “printing” my thoughts 🙂
Good discussion Guys!
Like old times again … as we used to have lots of ‘in-depth chats’ going back a while!
Is it possible—or will it soon be possible—to trade automatically using, for example, a 100-tick chart on IG?
Currently, this isn’t possible because ticks are not time-based, whereas ProOrder only operates with time-based candles…
I strongly doubt this will ever change because the PRT architecture is built around time-based trading…
Madrosat wrote: a 100-tick chart on IG?
The 1-second chart is very similar to a 10-tick chart on DJI.
yep JS, in some crucial sense you don’t see “time” in order book (exchange does not display it on purpose) – in a sense that you don’t see time stamps on those limit orders in the book, and they have direct impact on price formation. yet you can see “time” as all changes of the book over time, looking at it right now when time is passing, and as well backwards – if you obtain historical order book data (for analysis and trading strategy development…). I mean if one does not see time in order book it does not mean that it does not exist or that it does not have impact.
do you see “demand and supply” in order book? you see “only” all limit orders (including their volume), which is just fraction of total willingness of market participants to buy/sell, you see permanent changes of order book and you see past transactions tick by tick. don’t see stop orders stored at the exchange (and their time stamps), don’t see market orders coming in (at least not directly), don’t see synthetic orders stored at broker’s side, don’t see readiness of market makers to act in whatever direction they want or need. so when you tell “algorithms based on supply and demand tend to be more robust, more stable, and less risky” (which is ultra-strong statement) yet what is that “demand” and “supply” for you? I mean you have to “tell” to your algo, what is demand/supply, in order to make it trade based on that.
cheers
justisan
That’s correct. I’ve found a way to tell my algo who the buyers and sellers are and where they are positioned…
I’ve already written quite a lot about it on the forum, but I’m not going to reveal exactly how it works, because that’s my edge…
As you’ve probably already figured out, the calculations are not dependent on a timeframe and goes a step further than subjective calculations based on a particular timeframe…
Perhaps I should clarify something about time: when you say “I see everything changing in the order book”, you’re talking about continuous time, time as we experience it…
In continuous time, everything is constantly changing…
Signals in continuous time need to be converted so that a computer can process them…
Continuous (analogue) signals must be digitised before they can be processed (analogue-to-digital conversion ADC)…
So continuous information is essentially being squeezed into a discrete period, or timeframe: a period consisting of fixed, equally spaced intervals…
And this is exactly where I think things go wrong…
Continuous information is processed within a timeframe, resulting in a temporal structure on a market whose dynamics are fundamentally event-driven…
JS, I see your points and agree with big parts of them, like that the squeeze of activity into time-frames is deliberate and that activity is (from very top perspective) event-driven. what I doubt is that there is something substantially wrong about squeeze of activity into time frames. because in my eyes activity is never time-independent. time is limiting condition under which everybody operates and it’s therefore driving/shaping operations, too. if an institution decides to acquire tons of shares their brokers will place the orders 1. not at random moment of the day and 2. not all at once, so we will see those footprints of consistently price changing activities at specific times of the day and those footprints will be evolving and be visible over specific time-period/s. well, if price moves 100 points during the night and it takes the market 4.5 hours to make that distance I might not conclude too much from that information and might not act based on it. but if the same happens within 45 minutes right after beginning of main trading hours I might conclude about significant pressure from demand or supply side, then act according my strategies which are designed to detect substantial pressure from one or another side of the market and bet on continuation of it or against it.
well, I have no clue about trading based on order book data. probably it’s very different concept, and possibly one simply does not need time-dimension for it and for that concept question of “time” is irrelevant. which for me / for other concepts does not make squeezing activities into time-frames wrong/useless approach, does not prove that price is not to some (relevant) extent function of time.
JS wrote: That’s correct. I’ve found a way to tell my algo who the buyers and sellers are and where they are positioned… I’ve already written quite a lot about it on the forum,
…no need to unlock your secret insights 😀 yet I was searching for your posts and not finding those which you mean by “I’ve already written quite a lot about it”. I would be glad if you copy here relevant links and/or hint to keywords to look for in the search function.
justisan, no problem, differences of opinion will always exist… 🙂
JS wrote: @GraHal, that’s true, it really hurt for a long time to see that once-celebrated community suddenly disappear without any explanation or communication whatsoever…
I think we can tell 1. “thank you ai” and 2. “thank you trump”.
reg 1.: if you check you see that 95% (not precise statistics, just belly feeling) of topics in the past were about “how I code this? how I code that?”. this is probably now solved by ai. even cheapGPT makes quite great job there, not talking about claude (so far I did not use ai integated into prorealcode itself). myself I use ai more and more for coding (not for creating the strategies) and I am exited about quality it delivers within seconds. so if my thinking is not totally wrong, those “95%” of topics simply disappeared from forum. maybe it’s not bad thing.
reg 2.: since trump started to capitalize on the financial markets by manipulating them by his multiple tweets per day, markets got really terrible, very short-term-erratic, especially since start of the war on Iran in spring, according my own observation. this lead myself to change some strategies / invent some new strategies not relying on longer term price moves (more than couple of hours or days), instead grabbing some shorter term profits and running away. funnily I see on my own trading that my very old long strategies suffer really, while short stragies perform as they did years ago.
new age kicked off…
Maybe this post appears twice, because the first posting went into nowhere.
Using a time frame implicitly represents price as a function of time…
In other words, time becomes the independent variable against which price is plotted…
But is price really a function of time?
From an economic perspective, price is not determined by time itself. Instead, it emerges from the continuous interaction between supply and demand in a free market. Time does not cause price changes; it merely provides a chronological order in which market events occur.
If price is fundamentally a function of supply and demand rather than time, then an important question arises: Is a time-based chart the most appropriate representation of market behavior, or is it merely a convenient projection of a more complex underlying process?
Time-based candlestick charts are undoubtedly useful because they provide a standardized and intuitive view of price evolution. However, they also impose a temporal structure on a market whose dynamics are fundamentally event-driven. This raises the question of whether traditional time charts reveal the true nature of the market or whether they create an illusion by suggesting that time, rather than market activity, is the primary organizing principle.
Hopefully this is useful :
Although I have never worked with time frames in the coding except for the shortest possible, I do use various charts for the same instruments, differentiated by TF. Each TF will give me an other perception of the market, just like Nasdaq might give me information (which starts with data) about the S&P.
But in program code ? no.
In program code I may only use it to be faster on calculations. And please note that I never use Indicators whatsoever, unless we decide that calculating an average by means of an internal means (named Indicator) is an Indicator. In the mean time I might use the average calculation for the price of the last 24 hours, by means of a 1 minute time trame and not via the 1 second TF I use for the chart the program code runs in.
That given … My take on this all :
The perceived temporal structure of Time for the program code we throw at it, can be made analogue via the highest granularity possible : Ticks.
Seemingly for PRT it stops here, because program code can not be used at the Tick level. Well, it actually can (just try it) but ProOrder won’t accept it. Still, just visualize :
Your program code is called per the tick (I don’t talk about Bid and Ask for this little saga) and there is thus no temporal phenomenon at all. One could attest “now what ?” as in : now I don’t know what to so at all, but this is a matter of getting used to.
Crucial : time is not eliminated at all, because the (milli) seconds still pass by, and you can still use that to suit (like an average over the last 1 hour or 1 minute or 3 seconds etc.). But, it is still another kind of approach because the average level of ticks (which normally is a price change) is to be projected to single price changes and this is not automatically done. Read : if 20 ticks pass by to form one price change, the average of that is not really x / 20 of some kind, because the 20 is actually one – it is your order of 20 lots. More complicated does it get, when we see that your one order of 20 lots is not filled in one go (now it spreads over y time).
I am most certainly not pretending that I work with special math for this (I am not good at that anyway, although AI will be and can be of great help for me), but at least I myself don’t work with time any more – at all. I work with ticks.
Because for many this could be too distant, try to envision that in-bar the ticks really exist and are also really used.
Watch out please : the try to envision for now is only a means to (attempt to) make clear what could happen. I can-not make that consistent for the PRT environment, because I don’t use that. Instead I use the tick level for real, but the saga comes down to the same …
If we envision pending orders acting upon price (we can’t do much more in PRT) and explicitly take care that all our orders have become pending orders (actually like Limit – not even Stop**) then we are in control of the price regardless of time. Compare this with at best checking the price once per 1 second (the best granularity of time PRT has to offer), then we (or at least I) can see that this leads to nowhere. Now all the remarks from JS and others regarding this, hold, or at least will make us think. And Yes, use Indicators and Time seems to become important, but as said, this is not how I work, and some others do not work like that too.
To make it more concrete : if the price rises 0.25 points (the best granularity of NQ and ES in IBKR terms) and I want to do something with exactly that, then it is a matter of catching that one tick difference (one tick change is 0,25 points in the NQ/ES case).
Point of course is : doing something per that one tick change is different from deciding what to do at each price level. In PRT we have no means for that, until someone finds out how to let Indicator code talk to us in this context (Indicator code works per tick). Side note : once we were quite on track of finding out, but the subject died out.
But, would we be able to decide on the per tick level – envision that our code is called per tick, and once again, try it because it already can outside of ProOrder – then such a world exists for real for PRT and we can start thinking along these lines.
**): A Stop Order is at the broker converted to a Market(able) Order. So this actually does not belong in the saga.
Now time is out, unless we want it in (each tick bears a time stamp at least up to the ms – even more granular at the exchange) and price change has become analogue. Or as per JS’ remark : event driven towards us. But also in the real world because the event (the tick / the price change – the filling of an order of someone in the world) is passed on to us. Thus, your order is filled and I see it instantly (at about the speed of light from your “computer” via the broker to the exchange and back to me via the data provider – with at each hop a small lag).
Is this important ? I think it is. I also think that JS thinks it is. It is another world;
No sampling. No aliasing. No noise. But warning : once you do this for real there will be another type of noise : the “sampling” rate we require to capture all ticks. Thus :
If 10000 ticks come to us each second (and with MNQ (Nasdaq Mini) this really occurs at the opening), we must be able to deal with those. This means : our program code is called 10000 times per second, and all what needs to happen is not allowed to run behind.
And here you have the immediate reason why PRT will never be able to do this, because with their server side approach this is never ever able to work (yea, with a complete data center behind it, but don’t tell). What I am saying here is : we have difficulty enough to let this happen on our best dedicated PC. But it can be done. And it needs to be done, because noise because of running behind is literally out of order; if I like to act upon a price change of 0.25 points, then I better have my order in before it has become 1.25 points or -0.5 points. And well, this happens anyway, so this all requires very special (new) attention and suddenly the term slippage becomes very relevant. Ah, within the current PRT we have to deal with slippage just the same, but hey, this is slippage upon a 1 second miss in the first place (if you use a TF of 1s to begin with).
But wait, because Limit orders can still be used this can’t be a problem ? … that depends largely on what you want to do. But generally : using Limit Orders may defeat the purpose because although you can be based on the price trigger you want, before your order is in, the price is reached already and it does not work out as intended. Or, or it works out the same as what can be done in PRT already : set it ahead of time largely (like 1s or 1m) but then you are not utilizing the timeless mechanism.
Thus Market Orders only ? well, that is how I think indeed.
So there we are. No Time any more. Now what could we do with that …
Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.
Is Price a Function of Time?
This topic contains 31 replies,
has 8 voices, and was last updated by sakofilgaze1994
23 hours ago.
| Forum: | General Trading: Market Analysis & Manual Trading |
| Language: | English |
| Started: | 08/05/2026 |
| Status: | Active |
| Attachments: | 10 files |
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR. For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.