ProRealCode - Trading & Coding with ProRealTime™
Every time you send a message, the assistant re-reads the recent conversation before answering.That’s how it stays coherent — it remembers the code it wrote you three messages ago. But it also means the longer a chat gets, the more each new message costs. Message #1 in a fresh chat is cheap. Message #20 in a thread stuffed with three different strategies, two pasted backtests and a debugging session can easily cost ten times more — for the exact same question. Credits are consumed by actual usage, not per message. A short question with a short answer costs very little. A long conversation with long code blocks costs a lot. You control that.
TIMEFRAME works? New chat, ask, done.make me a RSI strategyThen 6 messages of “which timeframe?”, “which instrument?”, “long only?”, “what stop?”… Strong:
Trading system for DAX, 15-min, long only. Entry: RSI(14) crosses above 30 and price is above the 200-period MA. Exit: RSI crosses below 70, or a 1.5% stop loss. One position at a time, market orders. Add DEFPARAM for the position size.One message, one answer, working code. Roughly a fifth of the cost of the same thing dragged out over ten messages.
Code only, no explanation. Just give me the modified lines, not the full listing.When you’re learning, ask for explanations — that’s what they’re for. When you’re on your fourth iteration of the same trailing stop, don’t pay to be re-taught what a trailing stop is.
Build me a complete trading system for the Nasdaq, 1-hour chart. Idea: buy pullbacks in an uptrend. Uptrend = price above the 200 EMA. Pullback = RSI(14) below 40, then turning back up. Exit on a 2 ATR target or a 1 ATR stop. Max one position. Add DEFPARAM so I can optimize the RSI level and the ATR multiples.You get compiling code you can paste straight into ProBuilder and backtest. Then iterate: “Add a filter to skip trades between 12:00 and 14:00”, “Make the stop a trailing stop that moves to breakeven at 1 ATR”.
This screener doesn’t compile. ProRealTime says “Syntax error line 12”. Here’s the code: [paste]You get the fix, and an explanation of what was actually wrong — reserved words, a missing
ENDIF, a function that doesn’t take that many arguments, a variable used before it’s assigned.
This system compiles but it never takes a short trade. It should short when the conditions are mirrored. What’s wrong? [paste code] My indicator plots a flat line after the first 200 bars. [paste code] My backtest shows 3000 trades on 6 months of 1-min data — I think it’s re-entering on every bar. How do I make it enter once per signal?
Add a proper trailing stop to this system, with a breakeven move at +1R. Add money management: risk 1% of capital per trade based on the stop distance. This only trades long. Add the symmetrical short side. Add a session filter so it only trades the European session. Make this work on any timeframe instead of being hardcoded for 5-min.
Here’s my custom indicator. Turn it into a screener that scans my watchlist for the bars where it triggers. [paste] Here’s my screener condition. Turn it into an indicator so I can see historically where it would have fired on the chart.
I read about a “3 bar reversal” pattern: bar 1 makes a new 20-bar low, bar 2 closes below bar 1’s low, bar 3 closes above bar 2’s high. Code me a screener for it.
Explain what this code does, step by step. Is there anything in it that would repaint, look ahead, or behave differently in live trading than in backtest? [paste]That question alone can save you a lot more than the credits it costs.
What’s the difference between ONMARKETONLY and NOTONMARKETONLY? How does DEFPARAM CumulateOrders actually work? Why does my backtest give different results than my live results on the same system? What’s the difference between running a system on close versus tick by tick, and which should I use for a breakout strategy? How do I handle spread and commission properly in a backtest so the results aren’t fantasy?
I want to optimize this system. Which parameters should I actually expose, and which should I leave fixed to avoid over-fitting? Restructure this code so I can run a walk-forward test on it properly. My optimizer found a set of parameters with a 92% win rate. How do I check whether that’s real or curve-fitted?
Explain position sizing based on ATR, with a concrete example on the DAX with a 10,000€ account. My strategy worked for two years and stopped in January. What are the usual causes, and how do I test which one it is? What’s a realistic expectation for a trend-following system on the DAX — win rate, drawdown, profit factor?
Explain this code to me line by line, as if I’ve never coded before. [paste] Teach me how loops work in ProBuilder, with a small concrete example. Show me three ways to write the same condition, from beginner to compact, and explain the trade-offs.
Syntax error line 12 gets you the answer immediately.
Iterate in small steps. “Now add the trailing stop” beats “rewrite everything with these 6 new features” — smaller changes, less to review, and you can spot exactly where a regression came from.
Ask why. “Why did you use summation instead of a loop?” — this is where the tool becomes a teacher instead of a vending machine.
when the cycle turns
When does the cycle turn?
1st of the month, so same for everybody?
Or some other cycle turning date / point?
How the free monthly credits work
Every account gets 150 free credits every 30 days. A few details that come up often:
It’s a rolling 30 days, not the 1st of the month. The clock starts from your last refill, so each account has its own cycle. If your credits came in on the 12th, the next ones are due around the 11th of the following month — there’s no global reset date.
It’s a top-up to 150, not +150. The refill brings your balance up to 150 rather than adding 150 on top. If you still have 120 credits left, you’ll receive 30. If you’re at 0, you get the full 150. Credits you’ve purchased count toward that balance, so if you’re already above 150 the free refill has nothing to add — your paid credits simply stay where they are.
It lands when you come back. The top-up is applied the next time you open the app, not by a scheduled job at midnight. If you don’t log in for three months, you get one refill on your return, not three — the free credits don’t stack up while you’re away.
I get the message below when I ask the AI a question…
There are still 22 credits on the balance sheet and the question was simple…?
Hi JS, thank your for the report.
Is the question was a new message in an ongoing discussion? or a fresh new one?
It was a new question in an ongoing discussion (only one question before…)
Ok thank you.
I think the reply needs to consume more of your available credits and therefore block the system from going further.
I am planning an update this afternoon, I’ll see to add a fix for this situation to not happen again.
I asked the AI how the use of anchor works again…
In the first response, it included the following comment:
The validator does not recognize anchor as a built-in function, but the forum clearly confirms that it is a valid PRT v11 instruction (with extensive official documentation and working examples from the PRT developers themselves). The validator is therefore not up to date with this newer PRT v11 syntax…It therefore seems that the AI is trying to validate the code it cannot find against the forum… (consuming a lot of credits?)
No, this is 2 different issue I will address this afternoon. I’ll keep you updated.
The new version is online, it includes the related fixes, thank you for reporting them! 😉
A new short tutorial has been added in the app. Five easy steps to introduce the best way to use it and to get the most of it.
Good morning,
Many users have been able to take advantage of ProRealAI to improve their codes and design new ones, I am happy that it can be useful, after all this work.
Thanks to feedback, many improvements have been made to the tool in the last two weeks, and I hope to do even better in the coming weeks, perhaps even adding technical analysis services? I’ve had some requests about that 🙂
Feel free to provide feedback here or via the contact form, I am here to listen.
See you soon.
Oh, and some details about the free credits
Every account gets 150 free credits every 30 days. A few details that come up often:
Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.
This topic contains 13 replies,
has 3 voices, and was last updated by
Nicolas
4 weeks, 1 day ago.
| Forum: | ProRealAI — Your AI Coding Assistant for ProBuilder & ProRealTime Forum |
| Started: | 08/13/2026 |
| Status: | Active |
| Attachments: | 2 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.