Skip to main content

How to read a ready-made strategy block by block

Opening a ready-made template and finding thirty connected blocks is intimidating. But every Profectus bot follows the same four-layer structure, and once you see it, any strategy becomes readable.

This article teaches the method. Use it on any template from the Trading Bot Library.

The four layers

Read in this order, from top to bottom:

Layer

Question it answers

Typical blocks

1. When to run

How often does the bot think?

Run per Candle, Run per Tick, Run at Time, Run in Session

2. Conditions

What needs to be true to trade?

Trade Rule, Check Spread, On/Off

3. Execution

How is the order opened?

Buy Now, Sell Now, Buy/Sell Pending Order

4. Management

What happens after being positioned?

Select Trades, Modify SL/TP, Close Trades, Check Profit/Loss

Almost every template is a repetition of this pattern, sometimes twice, once for buys and once for sells.

The method, in six steps

  1. Find the starting points. Look for the "when to run" blocks. Each one initiates an independent chain. A template with three of these has three flows that run at different times. Read one at a time, from start to finish, before moving to the next.

  2. Open the Inputs & Variables panel (key I). This is the most valuable reading. The variable names tell the strategy's intention before you understand a single block. A variable named AsianHigh already reveals half of the logic.

  3. Separate filters from triggers. In the conditions, identify which ones use state operators (is greater than) and which ones use events (crosses above). The state ones are context filters; the event one is the entry trigger.

  4. Find the execution block. It is the heart of the strategy. Everything before it is "why enter"; everything after is "how to manage." Check the stop loss and take profit in it; that is where the strategy's risk is defined.

  5. Read the management from back to front. Start with Close Trades: understanding how the operation ends usually explains all the intermediate blocks.

  6. Write a sentence. If you can summarize the strategy in one sentence: "buy when the price breaks the Asian session high while above the 200 EMA, with a stop at 1.5 ATR and a target at 2R," you have understood it. If you cannot, go back to step 3.

Can I simply copy and use it?

Yes. Every template in the library can be loaded onto your canvas and used as is.

But before running it with real money, perform these three checks:

  • The instrument and the timeframe: A template designed for XAUUSD on the daily chart does not behave the same on EURUSD on the M15. Each template's article informs what it was built for.

  • The risk per trade: Check the risk input and adjust it to your account size. This is the field you need to understand before trading.

  • The backtest in your period: Run it yourself, on your instrument and your date range.

Altering a template is normal and expected. Just make one change at a time and test between them, so you know what caused the difference.

What if it still does not make sense?

Each template in the library has a dedicated article explaining the trading logic behind it. Start there, not with the canvas: understanding the idea makes reading the blocks much faster.

If a specific block remains unclear, the Block Documentation collection has a page for each one.

Did this answer your question?