In our recent post on a function unique to TradersStudio which makes it easy to Disabling Signals after being stopped out. In that last article we focused on the DisableAfterExit function. However there are other “on/off” or disable functions that can be valuable in implementing systems. For example, if you’re developing an equity curve feedback or a Donchian breakout system, you may want to disable entry for a few bars after a large winner. This post will briefly cover a few functions that are included in TradersStudio for just that.
The following functions are used in system management to disable entry or exit signals.
OnOff is a binary true or false. As we discussed earlier, suppose we were developing a Donchian channel breakout system. After a large winning trade, you would want to make it harder to get back into this position. As such, what you might do is something like a 20 bar breakout, and then disable that signal after a large winner. Then you could allow failsafe entry at 55 bars.
This little snippet of code would disable EntryName until 20 bars after the exit. At this point in time, the signal would be turned on for the precise bar you want it to be turned on. This is unlike other systems whereby the flags need to be set and unset in the bar, and the system doesn’t get enabled/disabled until the bar after.
You can also check to see if a signal is disabled or not. The above code will check to see if SignalName is enabled or disabled. If it is disabled, it will return true. If it is enabled, it will return false.
As you can see, TradersStudio has some powerful tools for managing signals. This is by no means extensive coverage of these functions, however, we will follow up this post with one in which we will implement a system using this concept. The idea behind the system will be we will disable a 20 bar breakout and allow a 55 bar breakout concept from the Turtle system after a large winning trade. Indeed, TradersStudio can help you develop, backtest, and execute winning systems! nike air max damen nike air max damen