{"id":2066,"date":"2025-04-09T10:03:27","date_gmt":"2025-04-09T10:03:27","guid":{"rendered":"https:\/\/news.algobuilderx.com\/?p=2066"},"modified":"2025-04-09T10:03:28","modified_gmt":"2025-04-09T10:03:28","slug":"new-feature-on-algobuilderx-on-position-event","status":"publish","type":"post","link":"https:\/\/news.algobuilderx.com\/?p=2066","title":{"rendered":"New Feature on AlgoBuilderX: On Position Event"},"content":{"rendered":"\n<p>In February 2025, we introduced a new feature that significantly expands the possibilities for creating automated trading strategies in <strong>AlgoBuilderX<\/strong>: the <strong>On Position event<\/strong>.<\/p>\n\n\n\n<p>This feature, located in the <strong>Event Selection<\/strong> section at the top left of the builder, is based on the activation of two <\/p>\n\n\n\n<p>specific blocks: <strong>Trade Event<\/strong> and <strong>Order Event<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright size-full is-resized\"><img decoding=\"async\" width=\"821\" height=\"726\" src=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-3.png\" alt=\"\" class=\"wp-image-2077\" style=\"width:448px;height:auto\" srcset=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-3.png 821w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-3-300x265.png 300w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-3-768x679.png 768w\" sizes=\"(max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<p>The <strong>On Position event<\/strong> is particularly useful in situations where a trigger is needed in response to changes in an <strong>active trade<\/strong> or a <strong>pending order<\/strong>. This includes events such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Opening or closing of a trade<\/li>\n\n\n\n<li>Modification of an existing position<\/li>\n\n\n\n<li>Cancellation of a pending order<\/li>\n<\/ul>\n\n\n\n<p>This new feature joins the list of events already available in AlgoBuilderX \u2013 such as <strong>OnTick<\/strong>, <strong>OnBar<\/strong>, etc. \u2013 and completes the logical framework available to traders, enabling the creation of more <strong>structured<\/strong>, <strong>responsive<\/strong>, and <strong>optimized<\/strong> strategies.<\/p>\n\n\n\n<p>If you\u2019d like to learn more about the existing events in AlgoBuilderX, check out this video: <strong><a href=\"https:\/\/www.youtube.com\/watch?v=ExpXt47TuJc\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=ExpXt47TuJc\" target=\"_blank\" rel=\"noopener\">Understanding Events<\/a> <\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-the-on-position-event\">What is the On Position event?<\/h2>\n\n\n\n<figure class=\"wp-block-image alignleft size-full is-resized\"><img decoding=\"async\" width=\"452\" height=\"278\" src=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-7.png\" alt=\"\" class=\"wp-image-2085\" style=\"width:293px;height:auto\" srcset=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-7.png 452w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-7-300x185.png 300w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/figure>\n\n\n\n<p>The <strong>On Position event<\/strong> allows you to trigger a strategy only when specific <strong>trading-related events<\/strong> occur. The bot reacts in <strong>real time<\/strong> to changes in <strong>open positions<\/strong> or <strong>pending orders<\/strong>, enabling the development of more <strong>intelligent and responsive automated systems<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To support this feature, AlgoBuilderX includes two dedicated blocks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Trade Event<\/strong><\/li>\n\n\n\n<li><strong>Order Event<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"trade-event-reacting-to-trade-activity\">Trade Event: Reacting to trade activity<\/h2>\n\n\n\n<p>The <strong>Trade Event<\/strong> block lets you define actions in response to trade-related events. Available options include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Trade Created<\/strong>: triggers when a new trade is opened<\/li>\n\n\n\n<li><strong>Trade Modified<\/strong>: triggers when an existing trade is modified (e.g., stop loss, take profit, volume)<\/li>\n\n\n\n<li><strong>Trade Closed<\/strong>: triggers when a trade is closed, with the option to specify the reason<\/li>\n<\/ul>\n\n\n\n<p><span style=\"text-decoration: underline;\"><strong>Note<\/strong>: This block must be placed at the beginning of the sequence to ensure correct execution of the strategy.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-dynamic-take-profit-based-on-rsi\">Example \u2013 Dynamic Take Profit Based on RSI<\/h3>\n\n\n\n<figure class=\"wp-block-image alignright size-full is-resized\"><img decoding=\"async\" width=\"1002\" height=\"390\" src=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-5.png\" alt=\"\" class=\"wp-image-2080\" style=\"width:512px;height:auto\" srcset=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-5.png 1002w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-5-300x117.png 300w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-5-768x299.png 768w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/figure>\n\n\n\n<p>You can use the <strong>Trade Created<\/strong> block to dynamically set the <strong>Take Profit (TP)<\/strong> based on the <strong>Relative Strength Index (RSI)<\/strong> at the moment the trade is opened: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If RSI > 70 \u2192 set TP to 20 pips<\/li>\n\n\n\n<li>If RSI &lt; 30 \u2192 set TP to 10 pips<\/li>\n<\/ul>\n\n\n\n<p>This approach allows the strategy to adapt exit conditions to current market behavior, potentially improving profitability.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"order-event-managing-pending-orders-dynamically\">Order Event: Managing pending orders dynamically<\/h2>\n\n\n\n<p>The <strong>Order Event<\/strong> block enables intelligent, real-time management of pending orders, allowing the strategy to respond to specific order-related events:<\/p>\n\n\n\n<figure class=\"wp-block-image alignright size-full is-resized\"><img decoding=\"async\" width=\"747\" height=\"745\" src=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-6.png\" alt=\"\" class=\"wp-image-2081\" style=\"width:367px;height:auto\" srcset=\"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-6.png 747w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-6-300x300.png 300w, https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/image-6-150x150.png 150w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Order Created<\/strong>: triggers when a new pending order is placed<\/li>\n\n\n\n<li><strong>Order Canceled<\/strong>: triggers when a pending order is canceled, with the option to specify the cancellation reason<\/li>\n<\/ul>\n\n\n\n<p><span style=\"text-decoration: underline;\"><strong>Note<\/strong>: Like the Trade Event block, this must be placed at the beginning of the sequence.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-automatic-logging-of-canceled-orders\">Example \u2013 Automatic Logging of Canceled Orders<\/h3>\n\n\n\n<p>Using the <strong>Order Canceled<\/strong> block, it\u2019s possible to automatically log each cancellation, including details such as:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Order type<\/li>\n\n\n\n<li>Direction (buy\/sell)<\/li>\n\n\n\n<li>Reason for cancellation<\/li>\n<\/ul>\n\n\n\n<p>This improves order tracking and helps fine-tune strategy logic by analyzing order behavior.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>With the introduction of the <strong>On Position event<\/strong>, it is now possible to build trading strategies that are more <strong>precise<\/strong>, <strong>flexible<\/strong>, and <strong>intelligent<\/strong>, tailored to your specific operational needs.<\/p>\n\n\n\n<p>To explore all the new features introduced in February, visit the full article on our website:<strong><a href=\"https:\/\/news.algobuilderx.com\/?p=1182\" data-type=\"link\" data-id=\"https:\/\/news.algobuilderx.com\/?p=1182\"> Monthly Highlights \u2013 February 2025<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In February 2025, we introduced a new feature that significantly expands the possibilities for creating automated trading strategies in AlgoBuilderX: the On Position event. This feature, located in the Event Selection section at the top left of the builder, is based on the activation of two specific blocks: Trade Event and Order Event. The On [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2075,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","inline_featured_image":false,"footnotes":""},"categories":[19],"tags":[162,163,161],"class_list":["post-2066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-event","tag-newfeatures","tag-onposition"],"featured_image_src":"https:\/\/news.algobuilderx.com\/wp-content\/uploads\/2025\/04\/Copertina-youtube-4.png","author_info":{"display_name":"Alessandro","author_link":"https:\/\/news.algobuilderx.com\/author\/ale"},"_links":{"self":[{"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=\/wp\/v2\/posts\/2066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2066"}],"version-history":[{"count":0,"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=\/wp\/v2\/posts\/2066\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=\/wp\/v2\/media\/2075"}],"wp:attachment":[{"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news.algobuilderx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}