Hi,
Since PRT has no possibility of grabbing data and using that feature for instance for a calendar, I have been building one that converts data from a common site to a PRT code. This offers the possibility to enable / disable specific events based on currency, impact and dates.
There are some issues though that I’ve tried to circumvent. In this method I have a MAIN indicator that updates on lastbar and only if it is truly the lastbar listed through a date check.
The limitation in PRT is 10.000 rows per indicator. As you can not use STRINGS in PRT, I can’t just shuffle around data and read it as strings. So all data must be formatted with PRT code (IF conditions) and split into months . This reaches about 5.000 lines to be able to enable / disable currencies, dates and based on market impact.
My problem is that I want to create a seamless calendar. Meaning that Month1 and Month2 will just keep flowing.
My first problem is that if I try to use the CALL command from the MAIN indicator and pass shown number of events in calendar for Month1 (lets say 20) to calendar for Month2 so it continues from row 21, only calendar Month2 will plot. Not calendar for Month1.
MAIN -> ROWS = CALL “MONTH1″[ROWS]
MAIN -> ROWS = CALL “MONTH2″[ROWS] —-> Only this will plot in the indicator from the row that is passed from MONTH1.
If I turn MONTH1 and MONTH2 around, only the latter, MONTH2 will plot.
Second problem is if I try to CALL MONTH2 from MONTH1 and just pass on ROW:
MAIN – > CALL “MONTH1″[0]
MONTH1 – > CALL “MONTH2″[ROWS]
The same problem arises. Only data listed in MONTH2 is shown.
A simple test with CALL command and only one DRAWTEXT in MONTH1 and MONTH2 seems to work fine. It is only when you start loading up more DRAWTEXT data in both MONTH1 and MONTH2 that it stops working and only shows MONTH2 data.
Can someone explain what is going on? I would very much like to integrate a calendar function that I don’t have to swap every month, but works seamless.
Thanks.