Please allow me to use the ValueAccumulator block as an exmaple of what I mean. If I add a ValueAccumulator block to the canvas and name it va1, I can open va1's formula and have the block reference itself by typing "@va1".

Now let's try the same thing with the Formula Block. If I add a Formula Block to the canvas and name it, for example, fb1, I cannot have the block refer to itself from within it's formula. If I open up fb1's formula and type "@fb1", I will get an error. Is there any way to accomplish having the Formula Block *directly* reference itself from within it's formula? (when I say directly, I mean without first saving fb1's value in another block, lets say named X, and then referencing X from within fb1's formula).

Comment

**Answer** by russelltromans-1
·
Sep 21 at 10:32 AM

This function is only possible within Discrete Blocks. The Formula Block is a continuous block which allows you to perform calculations in a single block rather than having your workings sprawled across the canvas using multiple blocks. When you self-reference a Discrete Block you are assessing the value which is currently stored within the block, this is not possible within the Formula Block as no value is actually stored within this block, it is simply outputting the result of its calculation at that moment in time. Much like the way it is not possible for a Math Block to consider it's present value within it's calculation.

Ask questions and share ideas about the TT^{®} and X_TRADER^{®} platforms.

First time here? See our Getting Started Guide and FAQs.

Follow
### Follow this Question

© 2017 Trading Technologies International, Inc. All rights reserved.

Powered by AnswerHub