Is there a complete list of builtin functions, indicators, constants, operators, keywords etc?
I have seen https://www.prorealcode.com/prorealtime-documentation/ but it’s not complete if you compare to inside PRT.
On PRC, if you go to [Help], choose [ProRealTime help center], then at the top, the [Manual] pull down menu, there are a number of manuals.
The last three are pdf’s, and have a related glossary of keywords at the end of each.
I think these were updated in line with changes around the introduction of V12.
That be a good start point.
This may be of interest as well since some of the V12 features were introduced in the middle of V11.
Mainly, Arrays and Anchor’ed drawing.
https://www.prorealcode.com/topic/prtv11-new-programming-commands/
Excellent, thank you very much. ChatGPT extracted them nicely for me 🙂
What were the ones you found that are not covered by the links above.
I thought it was complete. But so far I’ve found two that are in PRT, but not in the PDF
AT: (BUY 1 CONTRACT AT MARKET)
TomorrowOpen
TomorrowOpen appears under the proBacktest section in your PRC documentation link, but not the manual
‘AT’ seems to be used similar to ‘DO’ with loops. Not aware of any other underlying meaning.
I did come across ‘BY’ somewhere, but not able to use it.
Maybe a defunct keyword from the past.
I don’t use the screener, might be usable in there.
TomorrowOpen is an obsolete keyword, as since many years that’s always the case because trades are always opened at the opening of the next bar (as strategies are executed at the closing of each bar). It’s still in the list, like a few more keywords, for backward compatibility with old code using it. It’s simply meaningless now.
BUY 1 CONTRACT AT MARKET is correct and has always been used as such.
I found a few more. One was in the text, but not in the gloassary, so I’m going through PRT’s list instead so I don’t miss anything
IsLastBarUpdate
OpenDate (in text but not in glossary)
OpenWeek (in glossary but not in PRT)
It’s for a language plugin for Visual Studio Code. Versioning and automatic backups you know 🙂
I came across ‘ CONTINUE’ last night by accident. Not seen any reference to it at all.
Took me a bit of time to work out were it worked and why.
Using ‘BREAK’, can be used to terminate a loop.
‘CONTINUE’, used in a similar way, can be used to terminate the current iteration of a loop.
Therefore, any unexecuted code, in the current loop iteration, after the execution of ‘CONTINUE’, is ignored. Execution restarts at the start of the next iteration, if there is one.
In example, the ‘DRAWTEXT(…)’ statement falls after ‘CONTINUE’. If ‘CONTIUE’ executed, the text for i=5 is not printed. Loop ‘BREAK’s at i=8.
defparam drawonlastbaronly = true
if islastbarupdate then
for i = 0 to 10
if i = 5 then
continue
endif
if i = 9 then
break
endif
drawtext(i,0,-30-i*15)anchor(top,xshift,yshift)
next
endif
return
Also you have ‘TRUE’ and ‘FALSE’, used with ‘DEFPARAM’ keywords like, drawOnLastBarOnly = , CumulateOrders =.
Found a reference to ‘CONTINUE’ in the the editor function list (fx) under keywords.
Noticed this keyword is not highlighted ‘blue’ in above posted code in PRC code feature, but does in PRT editor.
Don’t think I’ve ever noticed used, out of sight, out of mind.
I used the function lists in the editor and together with the PDF’s I think I got it quite complete. BUT, the coloring is off compared to PRT. Functions listed under for example Trading System Commands has multiple colors in PRT, so the coloring convention is not based on that.
I think PRC’s coloring is better, hello
@Nicolas 🤓
The current PRC syntax highlighting is the old one, new website to come (don’t ask ETA please) already got the new way of coloring (see attached).