O!kurra
Chapter 13
Log in

Stop on Opposite

Tool version: O!kurra Capital Defense EA 2.05


13.1 What Stop on Opposite is

Stop on Opposite (SO) is a mechanism that reacts when a filter shows a signal opposite to the button’s direction. It is per filter — you have four independent filters (SAR / MMD / SR / OKUR), each with its own parameters, each enabled independently for each button.

In the button’s Activation & Exits section (chapter 9) each of the four filters has a separate reaction switch: React on opposite SAR signal, …MMD signal, …SR signal, …OKUR signal. Plus a single parameter Auto re-arm when all filters back (section 13.8). By default all are disabled — the button ignores Stop on Opposite signals.

Philosophy: SO says “the market context is starting to turn against us — react”. Unlike the entry filters (which only admit or block a new signal), SO acts on the button’s existing state and its positions.

An important change versus older descriptions. In earlier versions of the manual SO “only disabled the button, never closed positions”. That is no longer current — in the present version each SO filter offers a choice of three reactions: disabling the button, closing its positions (with the button disabled), or closing the positions while leaving the button active (section 13.2).


13.2 Reactions to an opposite signal

For each SO filter you choose how the button should react to an opposite signal. Four options:

No reaction (the default) — this filter is ignored.

Disable the button (stop button) — the button is disabled (it stops generating new signals), but existing positions live on, managed by SL/TP, per-button BE/TS, BEa, Target Lines, the account guardians. This is the “soft” reaction: we do not make things worse by suddenly closing at a loss, but we also do not deepen the situation with more positions. This reaction is latched — the button stays disabled until manually re-enabled or until the automatic return (Auto re-arm, section 13.8).

Close positions (close positions) — the button closes all of its positions (recognized by its magic number), cancels its pending orders and disables itself. This is the “hard” reaction — a deliberate exit when the context has reversed. This reaction also disables the button, but it is not subject to Auto re-arm (it is an intentional exit — re-enabling requires your decision).

Close positions, keep the button active (close, keep active) — the button closes all of its positions (by its magic number) and cancels its pending orders — exactly like “Close positions” — but it does not disable itself: it stays active and can re-enter on its next entry signal. This is a reaction in between “Disable the button” and “Close positions”: we clear the current exposure, but the strategy stays alive. Auto re-arm does not apply to it (the button is never disabled). On the panel the code of this option is CLOSE_KEEP_ON.

It fires ONCE per occurrence of the opposite signal (since EA 2.03 rev 0265). This matters with state sources — SAR and MMD say “the opposite holds” for as long as the state lasts, not at a single point. Up to rev 0264 the reaction had no latch, so with such a source it closed the button’s position on every tick of that state; in our own regression that produced 116 038 closes in two weeks, and the promised re-entry never got through once. Now the close happens once, and the next one only after the opposite signal clears and returns; the log shows CLOSE_KEEP_ENABLED: … (button stays active, will not re-close until the opposite signal clears) and later CLOSE_KEEP_ENABLED re-armed (opposite signal cleared). Clicking the button by hand also releases the latch — that is your decision to start fresh. With an event source (an SR zone break) nothing changes, because the event passes anyway.

Read the rest of this chapter

The chapter continues. Create a free account or log in to read it in full, with every diagram.