Rule summary
Buy $100 of SQQQ whenever the portfolio holds no SQQQ.
Buy $100 SQQQ Position market value (SQQQ) = Constant 0
Buy 100% of the current SQQQ position whenever the portfolio holds SQQQ and days since the last filled buy order of SQQQ is above 28.
Buy SQQQ Position market value (SQQQ) > Constant 0 and # of Days Since the Last Filled Buy Order of SQQQ > Constant 28
Sell 40% of the current SQQQ position whenever the portfolio holds SQQQ and the gain or loss on the SQQQ position (%) is at or above 10.
Sell SQQQ Position market value (SQQQ) > Constant 0 and Position P&L % (SQQQ) ≥ Constant 10
What this recipe does
Short the tech market with SQQQ and double down until you make a profit
Exact strategy rules
These are the library's actual rule definitions. Conditions, assets, position sizing and order actions are shown together so the strategy can be inspected before it is copied.
[
{
"_id": "6aca33ee8b1862f84f25e836",
"name": "Buy $100 of SQQQ whenever the portfolio holds no SQQQ.",
"userId": null,
"active": true,
"condition": {
"lhs": {
"compound": false,
"targetAssets": [
{
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
}
],
"form": {
"fields": [
{
"fields": [
{
"helperText": "Ticker name (ex. SPY, BTC)",
"name": "targetAssets.name",
"label": "Asset Name",
"required": true,
"fieldType": "text",
"value": "SQQQ"
},
{
"helperText": "Ticker type (ex. Stock, Crypto)",
"name": "targetAssets.type",
"label": "Asset Type",
"required": true,
"fieldType": "select",
"values": [
"Stock",
"Cryptocurrency"
],
"value": "Stock"
}
],
"multiple": true,
"deletable": false
}
]
},
"type": "PositionValue",
"name": "Position market value (SQQQ)"
},
"rhs": {
"compound": false,
"targetAssets": [],
"value": 0,
"form": {
"fields": [
{
"fields": [
{
"helperText": "Constant value",
"name": "value",
"label": "Value",
"required": true,
"fieldType": "number",
"value": 0,
"min": -100,
"max": 100,
"globalMin": -1000000,
"globalMax": 1000000,
"isInteger": false
}
],
"multiple": false,
"deletable": false
}
]
},
"type": "Value",
"name": "Constant 0"
},
"name": "Position market value (SQQQ) = Constant 0",
"_id": "6aca33eef2b51b63627e4cc0",
"comparison": "equal",
"type": "Base",
"description": "Left-Hand indicator (comparator) Right-Hand Indicator",
"example": "If the Rate of Change of Apple's price is > the Value 0."
},
"createdAt": "2026-10-10T12:47:42.608Z",
"action": {
"type": "Buy",
"targetAsset": {
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
},
"amount": {
"type": "dollars",
"amount": 100
}
},
"orderExecution": {
"type": "Market"
},
"automaticOrderApproval": false
},
{
"_id": "6aca33ee8b1862f84f25e838",
"name": "Buy 100% of the current SQQQ position whenever the portfolio holds SQQQ and days since the last filled buy order of SQQQ is above 28.",
"userId": null,
"active": true,
"condition": {
"name": "Position market value (SQQQ) > Constant 0 and # of Days Since the Last Filled Buy Order of SQQQ > Constant 28",
"_id": "6aca33eebc04c74ffdc01853",
"type": "And",
"description": "All conditions must be true",
"example": "If Apple's price is up today but down for the week.",
"conditions": [
{
"lhs": {
"compound": false,
"targetAssets": [
{
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
}
],
"form": {
"fields": [
{
"fields": [
{
"helperText": "Ticker name (ex. SPY, BTC)",
"name": "targetAssets.name",
"label": "Asset Name",
"required": true,
"fieldType": "text",
"value": "SQQQ"
},
{
"helperText": "Ticker type (ex. Stock, Crypto)",
"name": "targetAssets.type",
"label": "Asset Type",
"required": true,
"fieldType": "select",
"values": [
"Stock",
"Cryptocurrency"
],
"value": "Stock"
}
],
"multiple": true,
"deletable": false
}
]
},
"type": "PositionValue",
"name": "Position market value (SQQQ)"
},
"rhs": {
"compound": false,
"targetAssets": [],
"value": 0,
"form": {
"fields": [
{
"fields": [
{
"helperText": "Constant value",
"name": "value",
"label": "Value",
"required": true,
"fieldType": "number",
"value": 0,
"min": -100,
"max": 100,
"globalMin": -1000000,
"globalMax": 1000000,
"isInteger": false
}
],
"multiple": false,
"deletable": false
}
]
},
"type": "Value",
"name": "Constant 0"
},
"name": "Position market value (SQQQ) > Constant 0",
"_id": "6aca33ee5346163c3bf5b7ba",
"comparison": "greaterThan",
"type": "Base",
"description": "Left-Hand indicator (comparator) Right-Hand Indicator",
"example": "If the Rate of Change of Apple's price is > the Value 0."
},
{
"lhs": {
"compound": false,
"targetAssets": [
{
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
}
],
"side": "Buy",
"form": {
"fields": [
{
"fields": [
{
"helperText": "Matches order events with this side (buy or sell)",
"name": "side",
"label": "Order side",
"required": true,
"fieldType": "select",
"values": [
"Buy",
"Sell"
],
"value": "Buy"
}
],
"multiple": false,
"deletable": false
},
{
"fields": [
{
"helperText": "Matches order events with this status",
"name": "orderStatus",
"label": "Order Status",
"required": true,
"fieldType": "select",
"values": [
"Pending",
"Accepted",
"Pending User Approval",
"Canceled",
"Filled",
"Partially Filled"
],
"value": "Filled"
}
],
"multiple": false,
"deletable": false
},
{
"fields": [
{
"helperText": "Ticker name (ex. SPY, BTC)",
"name": "targetAssets.name",
"label": "Asset Name",
"required": false,
"fieldType": "text",
"value": "SQQQ"
},
{
"helperText": "Ticker type (ex. Stock, Crypto)",
"name": "targetAssets.type",
"label": "Asset Type",
"required": false,
"fieldType": "select",
"values": [
"Stock",
"Cryptocurrency"
],
"value": "Stock"
}
],
"multiple": true,
"deletable": false
}
]
},
"type": "DaysSinceOrder",
"orderStatus": "Filled",
"name": "# of Days Since the Last Filled Buy Order of SQQQ"
},
"rhs": {
"compound": false,
"targetAssets": [],
"value": 28,
"form": {
"fields": [
{
"fields": [
{
"helperText": "Constant value",
"name": "value",
"label": "Value",
"required": true,
"fieldType": "number",
"value": 28,
"min": -100,
"max": 100,
"globalMin": -1000000,
"globalMax": 1000000,
"isInteger": false
}
],
"multiple": false,
"deletable": false
}
]
},
"type": "Value",
"name": "Constant 28"
},
"name": "# of Days Since the Last Filled Buy Order of SQQQ > Constant 28",
"_id": "6aca33eea3ebcde4168549a4",
"comparison": "greaterThan",
"type": "Base",
"description": "Left-Hand indicator (comparator) Right-Hand Indicator",
"example": "If the Rate of Change of Apple's price is > the Value 0."
}
]
},
"createdAt": "2026-10-10T12:47:42.608Z",
"action": {
"type": "Buy",
"targetAsset": {
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
},
"amount": {
"type": "percent of current positions",
"amount": 100
}
},
"orderExecution": {
"type": "Market"
},
"automaticOrderApproval": false
},
{
"_id": "6aca33ee8b1862f84f25e83a",
"name": "Sell 40% of the current SQQQ position whenever the portfolio holds SQQQ and the gain or loss on the SQQQ position (%) is at or above 10.",
"userId": null,
"active": true,
"condition": {
"name": "Position market value (SQQQ) > Constant 0 and Position P&L % (SQQQ) ≥ Constant 10",
"_id": "6aca33ee7a72e38a880d2e3e",
"type": "And",
"description": "All conditions must be true",
"example": "If Apple's price is up today but down for the week.",
"conditions": [
{
"lhs": {
"compound": false,
"targetAssets": [
{
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
}
],
"form": {
"fields": [
{
"fields": [
{
"helperText": "Ticker name (ex. SPY, BTC)",
"name": "targetAssets.name",
"label": "Asset Name",
"required": true,
"fieldType": "text",
"value": "SQQQ"
},
{
"helperText": "Ticker type (ex. Stock, Crypto)",
"name": "targetAssets.type",
"label": "Asset Type",
"required": true,
"fieldType": "select",
"values": [
"Stock",
"Cryptocurrency"
],
"value": "Stock"
}
],
"multiple": true,
"deletable": false
}
]
},
"type": "PositionValue",
"name": "Position market value (SQQQ)"
},
"rhs": {
"compound": false,
"targetAssets": [],
"value": 0,
"form": {
"fields": [
{
"fields": [
{
"helperText": "Constant value",
"name": "value",
"label": "Value",
"required": true,
"fieldType": "number",
"value": 0,
"min": -100,
"max": 100,
"globalMin": -1000000,
"globalMax": 1000000,
"isInteger": false
}
],
"multiple": false,
"deletable": false
}
]
},
"type": "Value",
"name": "Constant 0"
},
"name": "Position market value (SQQQ) > Constant 0",
"_id": "6aca33ee7a5583ed9ee397fd",
"comparison": "greaterThan",
"type": "Base",
"description": "Left-Hand indicator (comparator) Right-Hand Indicator",
"example": "If the Rate of Change of Apple's price is > the Value 0."
},
{
"lhs": {
"compound": false,
"targetAssets": [
{
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
}
],
"form": {
"fields": [
{
"fields": [
{
"helperText": "Ticker name (ex. SPY, BTC)",
"name": "targetAssets.name",
"label": "Asset Name",
"required": true,
"fieldType": "text",
"value": "SQQQ"
},
{
"helperText": "Ticker type (ex. Stock, Crypto)",
"name": "targetAssets.type",
"label": "Asset Type",
"required": true,
"fieldType": "select",
"values": [
"Stock",
"Cryptocurrency"
],
"value": "Stock"
}
],
"multiple": true,
"deletable": false
}
]
},
"type": "PositionPercentChange",
"name": "Position P&L % (SQQQ)"
},
"rhs": {
"compound": false,
"targetAssets": [],
"value": 10,
"form": {
"fields": [
{
"fields": [
{
"helperText": "Constant value",
"name": "value",
"label": "Value",
"required": true,
"fieldType": "number",
"value": 10,
"min": -100,
"max": 100,
"globalMin": -1000000,
"globalMax": 1000000,
"isInteger": false
}
],
"multiple": false,
"deletable": false
}
]
},
"type": "Value",
"name": "Constant 10"
},
"name": "Position P&L % (SQQQ) ≥ Constant 10",
"_id": "6aca33ee47fea58d82a180d4",
"comparison": "greaterThanOrEqual",
"type": "Base",
"description": "Left-Hand indicator (comparator) Right-Hand Indicator",
"example": "If the Rate of Change of Apple's price is > the Value 0."
}
]
},
"createdAt": "2026-10-10T12:47:42.608Z",
"action": {
"type": "Sell",
"targetAsset": {
"name": "SQQQ",
"type": "Stock",
"symbol": "SQQQ"
},
"amount": {
"type": "percent of current positions",
"amount": 40
}
},
"orderExecution": {
"type": "Market"
},
"automaticOrderApproval": false
}
]Before testing
Open the library, find this recipe by its title and preview the rules. Choose Use template for a built-in entry, or Add to portfolio for a saved entry. Review the copied rules and customize their thresholds and allocations before testing. Choose a historical period and starting capital in the portfolio backtester. Check trade count, drawdown, costs and a benchmark before enabling a paper portfolio. A recipe is a configuration, not a performance result.
A completed test should show the selected period, orders and portfolio statistics. If it records no trades, inspect the entry conditions and selected assets before loosening rules. If market data is missing or the run fails, keep the error and fix the coverage issue before comparing results. Changing a threshold or allocation changes the strategy. Keep the original definition and compare changes on a separate period rather than selecting settings from one favorable result.