{"id":30,"date":"2026-11-25T22:35:49","date_gmt":"2026-11-25T22:35:49","guid":{"rendered":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/"},"modified":"2026-11-25T22:42:55","modified_gmt":"2026-11-25T22:42:55","password":"","slug":"write-a-rule","status":"publish","type":"docs","link":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/","title":{"rendered":"Write a rule in plain English"},"content":{"rendered":"<p>A rule is a sentence with a trigger, an action and optional limits. The builder writes that sentence for you while you click, which makes it easy to check before anything runs.<\/p>\n<h2>The blocks<\/h2>\n<table>\n<thead>\n<tr>\n<th>Block<\/th>\n<th>What it decides<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>IF<\/td>\n<td>Trigger condition<\/td>\n<td>price drops 5% in 24 hours<\/td>\n<\/tr>\n<tr>\n<td>AND \/ OR<\/td>\n<td>Extra filters<\/td>\n<td>RSI(14) below 30<\/td>\n<\/tr>\n<tr>\n<td>THEN<\/td>\n<td>Order to place<\/td>\n<td>buy $100 of BTC<\/td>\n<\/tr>\n<tr>\n<td>REPEAT<\/td>\n<td>How many times it may fire<\/td>\n<td>at most 3 times<\/td>\n<\/tr>\n<tr>\n<td>STOP<\/td>\n<td>When the bot gives up<\/td>\n<td>after 6 trades or 8% loss<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Available conditions<\/h2>\n<p>Price change, price cross, price range, RSI, MACD crossover, moving-average cross, volume change, Bollinger Bands, market cap and breakout \u2014 plus time-based DCA schedules. All of them are evaluated when a candle closes on your chosen timeframe (15m, 1h, 4h or 1d).<\/p>\n<h2>A worked example<\/h2>\n<p><em>IF BTC drops 5% in 24 hours AND RSI(14) is below 30, THEN buy $100 of BTC.<\/em> Add <strong>REPEAT at most 3<\/strong> so a long slide cannot turn into ten buys, and a stop-loss at 4% so a failed dip is capped.<\/p>\n<h2>Rules that will not fire<\/h2>\n<p>Two filters that contradict each other \u2014 &#8220;RSI below 30&#8221; and &#8220;price up 10% in the same window&#8221; \u2014 pass validation and never trigger. If a bot has been running for a week with no fills, check the rule monitor: it shows the current reading of every condition.<\/p>\n<p><!--rm-related-start--><\/p>\n<aside class=\"rm-related\" style=\"margin-top:48px;padding-top:24px;border-top:1px solid #E6E6F0;\">\n<h2 style=\"font-size:18px;margin:0 0 12px;\">Related reading<\/h2>\n<ul style=\"list-style:none;padding:0;margin:0 0 4px;display:grid;gap:8px;\">\n<li><a href=\"https:\/\/rulemancer.com\/blog\/first-if-then-crypto-rule\/\">How to write your first IF\/THEN crypto trading rule<\/a><\/li>\n<li><a href=\"https:\/\/rulemancer.com\/blog\/grid-dca-momentum-strategies\/\">Grid, DCA and momentum: three strategies and when each one breaks<\/a><\/li>\n<\/ul>\n<p style=\"margin:12px 0 0;font-size:14px;color:#5B5B72;\"><a href=\"https:\/\/rulemancer.com\/blog\/docs\/\">All documentation<\/a> &nbsp;\u00b7&nbsp; <a href=\"https:\/\/rulemancer.com\/register\">Start free<\/a><\/p>\n<\/aside>\n<p><!--rm-related-end--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A rule is a sentence with a trigger, an action and optional limits. The builder writes that sentence for you while you click, which makes it\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[5],"doc_tag":[],"class_list":["post-30","docs","type-docs","status-publish","hentry","doc_category-bots-and-rules"],"year_month":"2026-11","word_count":224,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/rulemancer.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"Bots & rules","term_url":"https:\/\/rulemancer.com\/blog\/docs-category\/bots-and-rules\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Write a rule in plain English - Rulemancer Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Write a rule in plain English - Rulemancer Blog\" \/>\n<meta property=\"og:description\" content=\"A rule is a sentence with a trigger, an action and optional limits. The builder writes that sentence for you while you click, which makes it\u2026\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/\" \/>\n<meta property=\"og:site_name\" content=\"Rulemancer Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T22:42:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/write-a-rule\\\/\",\"url\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/write-a-rule\\\/\",\"name\":\"Write a rule in plain English - Rulemancer Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-25T22:35:49+00:00\",\"dateModified\":\"2026-11-25T22:42:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/write-a-rule\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/write-a-rule\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/write-a-rule\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Write a rule in plain English\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/\",\"name\":\"Rulemancer Blog\",\"description\":\"Guides for rule-based crypto trading bots\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Write a rule in plain English - Rulemancer Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/","og_locale":"en_US","og_type":"article","og_title":"Write a rule in plain English - Rulemancer Blog","og_description":"A rule is a sentence with a trigger, an action and optional limits. The builder writes that sentence for you while you click, which makes it\u2026","og_url":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/","og_site_name":"Rulemancer Blog","article_modified_time":"2026-11-25T22:42:55+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/","url":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/","name":"Write a rule in plain English - Rulemancer Blog","isPartOf":{"@id":"https:\/\/rulemancer.com\/blog\/#website"},"datePublished":"2026-11-25T22:35:49+00:00","dateModified":"2026-11-25T22:42:55+00:00","breadcrumb":{"@id":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rulemancer.com\/blog\/docs\/write-a-rule\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/rulemancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/rulemancer.com\/blog\/docs\/"},{"@type":"ListItem","position":3,"name":"Write a rule in plain English"}]},{"@type":"WebSite","@id":"https:\/\/rulemancer.com\/blog\/#website","url":"https:\/\/rulemancer.com\/blog\/","name":"Rulemancer Blog","description":"Guides for rule-based crypto trading bots","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rulemancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":1,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/30\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/30\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/doc_category?post=30"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}