Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
ichibot-client-app
ichibot-client-app
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Ichimikichiki
  • ichibot-client-appichibot-client-app
  • Wiki
    • Home
  • Z Advanced Variable Examples

Last edited by Ichimikichiki Jan 06, 2021
Page history

Z Advanced Variable Examples

Task 1 - Automatically close position when profit over $9000.

  • wait pnl > 9000, sell 100%possize

Task 2 - Automatically convert half your uPNL every $400 from USD to BTC on spot and then take you back to BTC-PERP prompt.

  • let x pnl, let xy x+400, wait pnl >= xy, instrument btc/usd, buy 0.02, instrument btc-perp, repeat 10

Task 3 - Wait for the spoof $1m buy wall (62 BTC) to appear and snatch it.

  • wait bidsize >= 62, sell 62

Task 4 - Close your underwater short position with a chaser at breakeven.

  • wait price < breakeven, chase buy 100%possize max breakeven

Task Five - Make a command that loops 10 times, increases by +1 on each run

  • let x x+1, check value x, repeat 10

Task Six - Close all positions when account down 50%

  • let x accountvalue-50%, wait accountvalue < x, instrument *, close all

Task Seven - Close position when account up 100%

  • let x accountvalue+100%, wait accountvalue > x, close all

You can check the value of any variable buy doing check value. Eg check value breakeven, check value accountvalue, check value accountvalue-50% etc

Go Back To Main Wiki Page

Tip Jar:

  • BTC - 3L95ETWP3F8HLqUY4FD5CS8rkkFdpYjqKR
  • ETH - 0x6eb9A84CE93Cd61db02302f39B824AB155b69601
Clone repository

Get App:

  • MacOS
  • Linux
  • Windows
  • Web Console
  • Source Code

Instructions:

  1. Intro
  2. Setting up ichibot
  3. User Manual
    -- General Commands
    -- Alias System
    -- Trigger System
    -- Variable System
    -- Replace Feature
  4. Advanced Examples
  5. Trigger Examples
  6. Variable Examples
  7. Optional Stream Deck

  • Wiki Changelog

  • Discord Server
  • ichibot twitter
  • ichi's twitter