Please read and acknowledge the following risks before trading on margin:
Amplified Losses: Leverage amplifies both gains AND losses. With 10x leverage, a 10% price move against you results in 100% loss of collateral.
Liquidation Risk: If your position's margin ratio falls below the maintenance threshold, your position will be automatically liquidated at a loss.
Interest Charges: Borrowed funds accrue interest over time, reducing your profits or increasing losses.
Volatility: Cryptocurrency markets are highly volatile. Sudden price movements can trigger liquidation before you can react.
No Guaranteed Stop Loss: In extreme market conditions, stop-loss orders may not execute at your specified price.
Only trade with funds you can afford to lose. Margin trading is not suitable for inexperienced traders.
Create New Strategy
Edit Strategy
Retrieve the starting balance of the strategy.Retrieve the current balance of the strategy.Retrieve the overall available (liquid) balance of the user.Retrieve the available balance allocated specifically to the strategy.Set the balance allocated to the strategy.Get the cumulative volume of filled or unfilled orders.Get the number of filled orders for this strategy.Get the number of unfilled orders for this strategy.Get the status of a named order.Get the number of active trades currently open by the strategy.Get the total number of trades executed by the strategy.Retrieve details of the most recent trade executed by the strategy.Retrieve the average entry price of all of this strategy's open positions.Retrieve the unrealized profit or loss of this strategy's current positions.Get the number of active trades across all strategies for the user.Convert an amount between assets. E.g., '10 USD in BTC' returns how much BTC equals $10.Check if a stop loss, take profit, or trailing stop was triggered.Reset a trigger flag after handling it.Get the type of the last trigger ('stop_loss', 'take_profit', or 'trailing_stop').Get the symbol that was closed by the last trigger.Get the price at which the last trigger occurred.Get the realized P&L from the last trigger.Get the time elapsed since the strategy started.Get the current market price of a specified symbol.Retrieve the current bid price for a specified symbol.Retrieve the current ask price for a specified symbol.Retrieve a specific part (Open, High, Low, Close) of the last candle from a given source.Choose the data feed source for the value.Compare two values using operators like >, <, ==.Logical AND of two conditions.Logical OR of two conditions.Check if a condition is false.Execute a Buy/Sell trade based on a condition with specified size and options.Set the time in force for the order (GTC, FOK, IOC).Set Stop Loss parameters for a trade.Set a trailing stop to lock in profits as the price moves favorably.Set Take Profit parameters for a trade.Set Limit price for a trade order.Set a trailing limit to ensure a limit purchase as the price moves favorably.Choose the target market for posting orders.Assign a custom name to the current order.Pause the strategy if the condition is true.Resume the strategy if the condition is met.Exit the strategy and close trades based on the condition.Set a maximum drawdown limit to pause or exit the strategy.Schedule a specific action to be executed after a certain time interval.Execute the enclosed statements if the condition is true.Send a notification message to the user.Enter a numerical value. Chain multiple for a list.Retrieve the value of a specified variable.Set a variable to a specific value.Set a flag to True or False based on a condition.Check if a specified flag is set to True.Set the default leverage for margin trades (1-10x). This only affects margin trading blocks, not spot trades. Safe to call every tick (idempotent).Retrieve the total margin (collateral) currently locked in margin positions.Open a margin position (long or short) with specified collateral. Uses the default leverage from Risk Management. Stop loss and take profit are optional. PAPER/LIVE MODE ONLY - not supported in backtest.Close the current margin position. Select percentage to close (100% = full close). PAPER/LIVE MODE ONLY.Add collateral to an existing margin position, increasing its size. Use for dollar-cost averaging or adding to a position. PAPER/LIVE MODE ONLY.Update the stop loss price for the current margin position. Use after adding to a position to adjust SL based on your new average entry.Update the take profit price for the current margin position.Returns true if there is an open margin position for the current trading symbol.Returns how far current price is from liquidation (0-100%). 100% = safe (at entry), 0% = at liquidation. Use to monitor position health and trigger safety exits.Returns the unrealized profit/loss for the current margin position in quote currency (e.g., USDT).Perform basic arithmetic operations between two values.Raise a number to the power of another number (x^y).Find the remainder after division of one number by another (x % y).Calculate the square root of a number.Get the absolute value of a number.Determine the maximum value among given numbers.Determine the minimum value among given numbers.Calculate the factorial of a number (x!).Calculate the logarithm of a number with base 10.Calculate the natural logarithm (base e) of a number.Calculate the sine/cos/tan of an angle (in radians).Calculate the mean (average) of a list of numbers.Calculate the median of a list of numbers.Calculate the standard deviation of a list of numbers.Round a number to the nearest integer or specified decimal places.Round a number down to the nearest integer.Round a number up to the nearest integer.Generate a random number within a specified range.Restrict a number within a specified range.
Generate Strategy with AI
Tip: Be specific about entry/exit conditions, position sizes, and risk management (stop-loss, take-profit).
Generating strategy... This may take a moment.
Add New Signal
New Signal Type
Add External Indicator
Configure an external API that provides historical data for backtesting.
Use placeholders: {start_date}, {end_date}, {limit}
JSONPath expression to extract array of numeric values
JSONPath expression to extract array of timestamps
Testing API...
Create New Indicator
SupportResistance
Volume
SMA
EMA
RSI
LREG
ATR
BOLBands
BOL%B
MACD
Supertrend
RollingHL
PivotDetector
Patterns▶
Properties:
CDL_DOJI
CDL_HAMMER
CDL_INVERTEDHAMMER
CDL_SHOOTINGSTAR
CDL_SPINNINGTOP
CDL_MARUBOZU
CDL_ENGULFING
CDL_HARAMI
CDL_PIERCING
CDL_DARKCLOUDCOVER
CDL_MORNINGSTAR
CDL_EVENINGSTAR
CDL_3WHITESOLDIERS
CDL_3BLACKCROWS
CDL_3INSIDE
CDL_2CROWS
CDL_3LINESTRIKE
CDL_3OUTSIDE
CDL_3STARSINSOUTH
CDL_ABANDONEDBABY
CDL_ADVANCEBLOCK
CDL_BELTHOLD
CDL_BREAKAWAY
CDL_CLOSINGMARUBOZU
CDL_CONCEALBABYSWALL
CDL_COUNTERATTACK
CDL_DOJISTAR
CDL_DRAGONFLYDOJI
CDL_EVENINGDOJISTAR
CDL_GAPSIDESIDEWHITE
CDL_GRAVESTONEDOJI
CDL_HANGINGMAN
CDL_HARAMICROSS
CDL_HIGHWAVE
CDL_HIKKAKE
CDL_HIKKAKEMOD
CDL_HOMINGPIGEON
CDL_IDENTICAL3CROWS
CDL_INNECK
CDL_KICKING
CDL_KICKINGBYLENGTH
CDL_LADDERBOTTOM
CDL_LONGLEGGEDDOJI
CDL_LONGLINE
CDL_MATCHINGLOW
CDL_MATHOLD
CDL_MORNINGDOJISTAR
CDL_ONNECK
CDL_RICKSHAWMAN
CDL_RISEFALL3METHODS
CDL_SEPARATINGLINES
CDL_SHORTLINE
CDL_STALLEDPATTERN
CDL_STICKSANDWICH
CDL_TAKURI
CDL_TASUKIGAP
CDL_THRUSTING
CDL_TRISTAR
CDL_UNIQUE3RIVER
CDL_UPSIDEGAP2CROWS
CDL_XSIDEGAP3METHODS
Trade Details
ID:
Owner:
Order type:
TIF:
Side:
Quantity:
Symbol:
3f23ff2323f423
exchange
Market
FOK
Buy
0.0041
BTCUSDT
Opening price:
Current price:
Opening Value:
Current Value:
Profit/loss:
P/L %:
Fees Paid:
27,765.00
24,765.00
500.00
600.00
100.00
87
12.00
Status:
Qty Filled:
Active
0.0012
Qty Settled:
Settled Price:
Settled Value:
0.0023
24,300
53,987
Edit Position: BTC/USDT LONG
Current Position
Size:0.1 BTC
Entry:$60,000
Collateral:$1,000
Leverage:6x
Liq. Price:$52,000
Health:85%
Unrealized P/L:+$150.00
Projected After Increase
Loading preview...
Projected After Reduce
Loading preview...
Adding collateral reduces leverage and lowers liquidation risk.
Projected After Add
Loading preview...
Removing collateral increases leverage and liquidation risk.
Max withdrawable:--
Projected After Remove
Loading preview...
Edit Indicator
Configure Exchanges
Account Settings
Email
Not set
Password
You haven't created a wallet yet.
Generate a wallet to deposit BTC and pay for premium strategies.
Two addresses will be created:
Fee Address - For strategy fees (we manage, limited to ~$50)
Sweep Address - Your personal address (only you control)
Deposit here for strategy fees. Max ~$50. Excess auto-sweeps.
Excess funds auto-sent here. Only you have the private key.
0BTC
Wallet disabled - balance over $50 cap. Funds will be auto-swept to your sweep address.
Reminder: Keep only funds you intend to use. Excess over ~$50 is auto-swept to your sweep address.
Recent Activity
Date
Type
Amount
Reference
No transactions yet
Setup Bitcoin Wallet
Terms of Service - Wallet Custody
Two-Address System:
Fee Address: We generate and store the private key for this address to manage strategy fee transactions. You will receive a copy of the private key for your records.
Sweep Address: Your personal wallet where excess funds are sent. You can provide your own address (e.g., from PayPal, Coinbase, hardware wallet) or we can generate one for you.
Balance Cap & Auto-Sweep:
The Fee Address has a ~$50 USD balance cap to limit liability.
Any amount exceeding this cap will be automatically transferred to your Sweep Address.
Your Responsibilities:
You are the sole custodian of both Bitcoin addresses.
You can deposit and withdraw from the Fee Address at any time.
Only keep funds you intend to use for strategy fees in the Fee Address.
Save your private keys securely - we cannot recover keys we don't store.
Disclaimers:
We are not responsible for blockchain transaction failures, delays, or fees.
While we strive to keep our systems secure, we are not responsible for losses due to security breaches. Do not store excess funds.
You grant us permission to withdraw strategy fees from the Fee Address and transfer excess funds to your Sweep Address.
Sweep Address
Where should excess funds (over ~$50) be sent?
Make sure this is a valid testnet address that you control.
Your Wallet Keys - SAVE THESE NOW
CRITICAL: Save these keys securely before closing this dialog.
The Sweep Address private key will NOT be stored and CANNOT be recovered.
Fee Address (We Manage)
Sweep Address (You Control - SAVE THIS KEY!)
Fee Address Keys
These are the keys for your Fee Address (managed wallet).
Note: Sweep Address private key is not stored. If you lost it, those funds are unrecoverable.
Withdraw BTC
Add Test Credit
This is for POC testing. Credits will be added instantly.