Browsing category

Introduction

Don’t Be Afraid of Classes in Python (using TS-18 Indicators)

Many of TS-18 Indicators are Class Based and Here is Why! Many indicators need their prior bar’s value to calculate the current bar’s value.  In Python, external modules or functions that calculate these values have amnesia; they can’t even remember what their prior output was.  In TS-18, all indicators and their associated classes and functions […]

READ MORE

Trend Following Systems Update and New Release of TS-18 Coming Soon

Hello to All! I have provided an update to the continuous contract data that I was filtering from the Quandl’s free Chris database or WikiFutures.  Unfortunately, like many of the data streams from Quandl that database has been deprecated.  So I will see if I can find some other free data.  However, the data from […]

READ MORE

Set Your Own Slippage Dynamically

WowsssadfSlippage Can Vary Throughout the Life of a Back-Test Many testing platforms allow you to set a slippage and commission fee on a trade by trade basis.  The only problem is that it is fixed for the life of the back test.  You can always set a high amount to err on the side of […]

READ MORE

The Enigmatic Turtle Trading System in Python

Correction to Original Post!  Turtle Intro [Corrections in bold and results –  August 6, 2020] My favorite book on the Turtle Trading System is Curtis Faith’s “Way of the Turtle.”  I like this book because of the thorough explanation of the rules as told by Curtis.  Having been in this industry for a very long […]

READ MORE

Programming An End Of Month Stock Index System in TS-18

This video shows you how to program a simple system that buys the stock market at closing price of any month whenever that closing price is greater than the 50-day moving average.  Long positions are exited on the fourth day, following entry, at the close. During those four days, the system will exit on a […]

READ MORE

An Explanation of the numPosCurrentSector function

Here is some code and visual aid to help understand how TradingSimula-18 figures out how many current positions are in the same sector as the market that is currently being tested. Now that I know the sector the current market belongs to I can use that information to extract the total positions in that sector. […]

READ MORE