Status: Per-family deep reference (companion to the consolidated Fusion AI Studio & ONNX User Guide) Audience: first-time AI Studio user Answer family: ATR Stop / Target Race Prediction style: Classification
ATR Stop / Target Race asks:
“Starting from this bar, which gets hit first within the next N bars: an ATR-sized upside target or an ATR-sized downside stop?”
This is one of the most trader-shaped answer families in AI Studio because it does not ask:
It asks a much more tactical question:
“Which side wins first before the timeout?”
Example:
Target_ATRBarrierDirection_H20_ATR14_M1p0Meaning:
H20 = look forward up to 20 bars
ATR14 = use ATR(14)
M1p0 = barriers are 1.0 ATR away
Fusion builds two future barriers from the current close:
upper barrier = Close[t] + 1.0 * ATR14[t]
lower barrier = Close[t] - 1.0 * ATR14[t]
Then it looks forward up to the time limit and assigns:
+1 if the upper barrier is hit first-1 if the lower barrier is hit first0 if neither barrier wins before the time limitPlain-English translation:
+1 = upside target won the race-1 = downside stop won the race0 = no winner in timeThis family is event-based, not score-based.
That means it is not trying to predict:
It is trying to predict:
“Which event happens first?”
That is why many traders may find it easier to reason about than raw Future Return.
This is the family where the Step 1 ATR section matters directly.
The controls are:
Enable ATR Stop / Target Race AnswersATR Race Time Limit (bars)ATR Race Distance (x ATR)ATR LengthFor this family:
Fixed-Horizon Windows (bars) does not control the answerDirection Neutral Band does not control the answerThose belong to other answer families.
This is one of the places where users can get confused today, because all the bar-count fields live in the same Step 1 area.
If you enable this family and enter:
ATR Race Time Limit (bars): 10,20ATR Race Distance (x ATR): 1.0,1.5ATR Length: 14Fusion can create:
Target_ATRBarrierDirection_H10_ATR14_M1p0Target_ATRBarrierDirection_H10_ATR14_M1p5Target_ATRBarrierDirection_H20_ATR14_M1p0Target_ATRBarrierDirection_H20_ATR14_M1p5So the workflow is:
Step 1: create several possible ATR race answer columns
Step 2: choose exactly one of them for one model
This is a classification family.
The correct trader meaning is:
+1 = upper barrier / long side wins first
0 = no winner before timeout
-1 = lower barrier / short side wins first
The model outputs an encoded class id (+1 / 0 / -1). The AI Studio model card and this guide tell you what each id means, so you read it as the barrier outcome directly.
So the correct mental model is:
treat this family as +1 / 0 / -1 event outcomes
not:
treat the raw plotted encoded number like a continuous score
0 Means HereThis is one of the most important clarifications.
For ATR Stop / Target Race, 0 does not mean:
It means:
And in one special case, it can also mean:
So 0 here means:
“No clean winner.”
That is very different from the meaning of 0 in:
Future ReturnATR-Normalized ReturnFuture Log ReturnThis family often matches how traders already think:
That makes it more concrete than:
If your trading logic is already built around stop/target ideas, this family is often easier to understand than raw regression.
This family depends on:
CloseHighLowIn practice, the safest rule is:
OHLCV on in ExportIf High, Low, or Close are missing from the captured export, this family cannot be created correctly.
These two families can sound similar, but they answer different questions.
Direction (3-Class)Asks:
“Was the forward move down, flat, or up by the end of the horizon?”
ATR Stop / Target RaceAsks:
“Which ATR-sized barrier got hit first before the timeout?”
That means Direction (3-Class) cares about the final directional outcome, while ATR Stop / Target Race cares about the first barrier event.
That is a major conceptual difference.
Open Export and make sure:
OHLCV is checkedIn AI Studio Step 1:
Enable ATR Stop / Target Race AnswersATR Race Time Limit valuesATR Race Distance (x ATR) valuesATR LengthExample first pass:
ATR Race Time Limit (bars): 10,20ATR Race Distance (x ATR): 1.0ATR Length: 14Click Create New Capture.
Now Fusion creates one or more answer columns such as:
Target_ATRBarrierDirection_H10_ATR14_M1p0Target_ATRBarrierDirection_H20_ATR14_M1p0This is where the future event labels are built.
In Step 2:
Prediction Style: ClassificationAnswer Column Source: Generated Answer ColumnsGenerated Question Family: ATR Stop / Target RaceExample:
ATR Stop / Target Race (20 bars, 1 ATR, ATR14)Now the model is learning one specific event rule, not every ATR setup at once.
Pick the inputs that may help answer:
“Which side gets hit first?”
Useful first feature types often include:
Good first rule:
Choose:
Good first algorithms:
LightGBM Classifier if availableRandom Forest ClassifierKeep tuning off on the first pass unless you already have a stable workflow.
Think of the output as an event decision:
+1 = upside barrier wins first
0 = no winner in time
-1 = downside barrier wins first
Do not read it like a smooth oscillator centered around zero.
If you want a clean first experiment with this family:
Enable ATR Stop / Target Race AnswersATR Race Time Limit (bars): 10,20ATR Race Distance (x ATR): 1.0ATR Length: 14Prediction Style: ClassificationAnswer Column Source: Generated Answer ColumnsGenerated Question Family: ATR Stop / Target Race20 bars, 1 ATR, ATR14Algorithm: LightGBM ClassifierRandom Forest ClassifierThis gives one of the clearest “which side wins first?” workflows in AI Studio.
Look-ahead Windows creates these labelsThis family uses the ATR race section, not the normal look-ahead list.
0 means centerlineHere, 0 means no winner or ambiguous same-bar touch.
This is a classification/event family. The class meaning matters more than the raw plotted encoded number.
It answers “which barrier wins first,” which is a different question.
These are the product improvements this guide exposes.
Suggested note:
“These settings create ATR Stop / Target Race answer columns only. They do not control Future Return or ATR-Normalized Return.”
0 directlySuggested note:
“For ATR Stop / Target Race, 0 means neither barrier wins before the timeout. If both sides would be touched in the same bar, Fusion also keeps that row neutral because OHLC does not reveal intrabar order.”
For example:
“Current training answer: Target_ATRBarrierDirection_H20_ATR14_M1p0”
That would make the choice feel concrete instead of abstract.
ATR Stop / Target Race means:
“Predict whether the upside ATR barrier, the downside ATR barrier, or neither one wins first before the time limit.”