I need 86400 PreLoadBars
Forums › ProRealTime English forum › ProOrder support › I need 86400 PreLoadBars
- This topic has 5 replies, 5 voices, and was last updated 3 months ago by JS.
-
-
07/29/2024 at 5:43 AM #23587207/29/2024 at 5:53 AM #235875
Hello Teddy,
Maximum PreLoadBars is 10000.
But looking at your text, to me it seems that you are looking for something else, – or that there just is no problem;
86400 is obviously one day (assumed the instrument of concern is trading the full day) and asking for the price/bars prior to one day is a matter of looking back more days. However, for PRT Complete this is 200000 bars, in practice ~ 3 days. For PRT Premium you’d have 1M bars, thus 15 (working) days.Whether you’d still need PreLoadBars depends on what you want to calculate. Thus, if you need to calculate an average etc. which you actively use the full last day, and the math of that average requires 2 days more prior to that last day, then it would still work. If you require more, it would be best to slowly increase your TimeFrame length. Like 2 seconds. Still not enough ? then 3. And so on.
I hope this helps ?
Regards,
Peter1 user thanked author for this post.
07/29/2024 at 6:23 AM #235877Hello Peter, I would like to ask whether the previous day was positive or negative overall, and whether the period from 2:30 p.m. to 10 p.m. was positive or negative. That is the real task that needs to be solved. The position must be closed exactly at 090005, hence the time frame 1 sec. Best regards Peter 🙂
07/29/2024 at 8:12 AM #235879Your posts are a lot easier to read (for us) if you do not click on Quote before you type, or you not do whatever else you are doing which puts your posts inside that panel all stretched out etc?
1 user thanked author for this post.
07/29/2024 at 9:03 AM #235881To tell whether the day before was either Bullish or Bearish, you can use these two lines:
12Bullish = Dclose(1) > Dopen(1)Bearish = Dclose(1) < Dopen(1)to tell whether the time from 2:30 p.m. to 10 p.m was either Bullish or Bearish:
12345678IF Time = 143000 THENOpen230pm = openENDIFIF Time = 220000 THENClose10pm = closeENDIFBullishPM = Close10pm > Open230pmBearishPM = Close10pm < Open230pm07/29/2024 at 12:21 PM #235892If you want to know whether this period 14:30 – 22:00 was positive or negative yesterday, you can use the following…
Time Period Yesterday12345678910111213141516//Calculate if previous period between PM 02:30 and PM 10:00 is positive or negativeIf OpenTime=143000 thenPrevPM0230=PM0230PM0230=CloseEndIfIf OpenTime=220000 thenPrevPM1000=PM1000PM1000=CloseEndIfIf PrevPM1000>PrevPM0230 thenPrevPeriodPos=1elsePrevPeriodPos=0EndIf2 users thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on