""" { "name": "fff", "strategy_json": { "type": "strategy", "statements": [ { "type": "execute_if", "inputs": { "CONDITION": { "type": "comparison", "operator": "<", "inputs": { "LEFT": { "type": "risk_ratio", "inputs": {} }, "RIGHT": { "type": "dynamic_value", "values": [ { "type": "current_balance", "inputs": {} } ] } } } }, "statements": { "DO": [ { "type": "max_position_size", "inputs": { "MAX_SIZE": { "type": "available_balance", "inputs": {} } }, "next": { "type": "execute_if", "inputs": { "CONDITION": { "type": "is_false", "inputs": { "condition": { "type": "order_status", "inputs": { "order_name": "order_name", "status": "filled" } } } } }, "statements": { "DO": [ { "type": "execute_if", "inputs": { "CONDITION": { "type": "comparison", "operator": ">", "inputs": { "LEFT": { "type": "dynamic_value", "values": [ { "type": "last_candle_value", "inputs": { "source": {}, "candle_part": "open" } } ] }, "RIGHT": { "type": "dynamic_value", "values": [ 44 ] } } } }, "statements": { "DO": [ { "type": "trade_action", "trade_type": "buy", "inputs": { "size": { "type": "math_operation", "inputs": { "operator": "divide", "left_operand": { "type": "starting_balance", "inputs": {} }, "right_operand": 15 } } }, "trade_options": [ { "type": "name_order", "inputs": { "order_name": "order_name" } }, { "type": "target_market", "inputs": { "time_frame": "15m", "exchange": "binance", "symbol": "ETH/BTC" } } ] } ] } } ] } } }, { "type": "execute_if", "inputs": { "CONDITION": { "type": "is_false", "inputs": { "condition": { "type": "order_status", "inputs": { "order_name": "order_name", "status": "filled" } } } } }, "statements": { "DO": [ { "type": "execute_if", "inputs": { "CONDITION": { "type": "comparison", "operator": ">", "inputs": { "LEFT": { "type": "dynamic_value", "values": [ { "type": "last_candle_value", "inputs": { "source": {}, "candle_part": "open" } } ] }, "RIGHT": { "type": "dynamic_value", "values": [ 44 ] } } } }, "statements": { "DO": [ { "type": "trade_action", "trade_type": "buy", "inputs": { "size": { "type": "math_operation", "inputs": { "operator": "divide", "left_operand": { "type": "starting_balance", "inputs": {} }, "right_operand": 15 } } }, "trade_options": [ { "type": "name_order", "inputs": { "order_name": "order_name" } }, { "type": "target_market", "inputs": { "time_frame": "15m", "exchange": "binance", "symbol": "ETH/BTC" } } ] } ] } } ] } } ] } } ] }, "workspace": "Execute the enclosed statements if the condition is true.<Compare two values using operators like >, <, ==.Calculate and retrieve the current risk ratio.Retrieve the current balance of the strategy.Set a maximum limit on the number of positions the strategy can hold.Retrieve the overall available (liquid) balance of the user.Execute the enclosed statements if the condition is true.Check if a condition is false.order_namepartialGet the status of a named order.Execute the enclosed statements if the condition is true.>Compare two values using operators like >, <, ==.openRetrieve a specific part (Open, High, Low, Close) of the last candle from a given source.44Enter a numerical value. Chain multiple for a list.buyExecute a Buy/Sell trade based on a condition with specified size and options.DIVIDEPerform basic arithmetic operations between two values.Retrieve the starting balance of the strategy.15Enter a numerical value. Chain multiple for a list.order_nameAssign a custom name to the current order.15mbinanceETH/BTCChoose the target market for posting orders." } """