In today’s digital economy, knowing how to trade isn’t just a nice-to-have skill, it’s a competitive advantage.
If you're new to trading automation, building your first strategy can feel overwhelming. But with Profectus AI, it’s never been easier to bring your ideas to life, no coding required.
In this quick guide, you’ll learn how to build a fully automated trading strategy for GBPJPY on the 1-hour chart, complete with entry rules, trade filters, and trailing stop management, all in under 5 minutes.
Let’s dive in.
Start with the "Run Per Candle" block. This tells the algorithm to execute logic on every candle close — exactly once per hour. No repetition, no missed checks.
Use the "Run in Session" block to limit trading to the hours between 09:00 and 20:00, and only on Monday and Tuesday.
Now, let’s build the trading rule:
🔎 In candle logic, Candle ID 1 is the most recently closed candle. Candle ID 2 is the one before that, and so on. ID 0 refers to the current candle, which is still forming, we don’t use that for logic to avoid false signals.
Use the "Count Trades" block to check:
This avoids multiple positions stacking up and ensures clean, rule-based execution.
If all conditions pass:
Your core strategy is now fully functional.
Let’s enhance it with smart risk control:
Add another “Run Per Candle” block to manage trades every hour.
Use a block to select your currently open trade(s).
If the floating profit > 1%, it’s time to trail your stop.
Use the “Modify Trade” block to move your stop loss to:
This creates a dynamic trailing stop based on structure, giving your trades room to breathe while locking in gains when the move continues.
Now that your strategy is ready:
In just a few minutes, you've built:
You didn’t write a single line of code — and yet you created a trading algorithm powerful enough to run on the same infrastructure used by professional traders.
Profectus AI is built to turn your ideas into income.
Are you ready to build your next one?
Dive into a world of knowledge, trends, and industry updates on the Variable blog. Our curated content covers a spectrum of topics,