Well in keep this updated, messed about with this a long time ago, don't really have time at the minute (and was never vary good) but, in there you can add different options for the block, in this something like, limit by magic, or limit by symbol, etc, like what is in other standard FX, blocks. also
According to ChatGPT this is also used in FX custom code, but I wouldn't trust it all, some I have see used over the years of looking though. AI didn't know this when I was originally working with this code but now...
Commonly Used Tokens in FX Dreema
| | |
| ~next~ | | Refers to the next block in the execution chain
| ~prev~ | | Refers to the previous block
| ~value~ | | Used to fetch the current value of a variable or indicator
| ~custom~ | | Placeholder for user-defined values or expression
| ~time~ | | Refers to the current time or timestamp of a candle
| ~price~ | | Gets the current price (can be open, close, high, low depending on context)
| ~index~ | | Used in loops or array-like structures to refer to the current iteration index
| ~symbol~ | | Refers to the current trading symbol
| ~magic~ | | Refers to the magic number assigned to trades
| ~spread~ | | Gets the current spread value
These tokens are often used inside blocks like:
Modify Variables
Condition
Buy/Sell
Custom Code
Loops and Filters
🛠️ Why They're Useful
Modularity: You can reuse logic across multiple blocks without rewriting values.
Dynamic behavior: They adapt to changing market conditions or block sequences.
Cleaner logic: Avoids hardcoding and makes debugging easier.
If you're building session-aware or event-driven logic (like your NY session breakout detection), these tokens can help you create reusable, adaptive structures. Want to see how to use ~index~ or ~value~ in a looped candle scan or variable comparison? I can mock up a block chain or walk through a use case.