Watching a Trend Develop

April 22, 2022

Trading with Microsoft Excel spreadsheets (and eSignal intraday tabular price data).

Since we use 35 minute price data (Open, High, Low, Close), we are usually on top of the movement  and development of medium and short trends.   But, price changes can surprise and catch a trader who is off guard and not paying attention.

So, pay attention to your Microsoft Excel spreadsheet charts as you add prices during the trading day.

Here is the Emini S&P June 2022 contract as of mid-day:

4-22-2022 blog post

Explanation of the above chart:

Yellow dots are end-of-day markers.  Green dots are bullish momentum dots.  Gray dots are neutral momentum dots.  Red dots are bearish momentum dots.

Blue line is the blue Bill Williams Alligator line.  This is the 13 bar s.m.a. of the close, then smoothed by 8.

Red Line is the 29 bar s.m.a.  of the close.  This is our primary trend direction tool.

Using 35 minute price data.

Good luck to your trading!

USE VAMI for comparing systems

December 22, 2021

Excel and trading, (free MS Excel template is available BELOW).

VALUE ADDED MONTHLY INDEX (VAMI) (When to Use it?):   When you have different trading systems and you want to compare their performance, or if you have different versions of one system and you want to compare them, it is useful to normalize the monthly returns and then compare them with VAMI calculations.   Or, you can compare your results on a monthly basis with the performance of the emini S&P (or any other tradeable).

This way, when you are finished, you can compare apples to apples, rather than apples to oranges.   With VAMI results you can evaluate the 2 sets of performance results.

Here is an example that compares the S&P to a hypothetical trading system:

Which has performed better?

 

VAMI 1 pic

Here is the excel demonstration file for download (no VBA, no macros).

VAMI with formulas     <—DOWNLOAD HERE

Remember, there are many other ways to compare trading system results, such as cumulative equity comparisons,  Sharpe ratio comparisons, Gain-To-Pain ratios comparison, Tharpe system performance metrics, etc., etc.

Using VAMI is a good place to start, and so here are the calculations in Excel.

Good luck with your trading!

therivertradingsystem@gmail.com

Excel Trading System using End of Day Price Data

Trading With Excel spreadsheet and eSignal price data.  

December 18, 2021 

To show educationally How you might use Excel spreadsheet to calculate entry targets, losses and gains, including stop loss exits, and profit exits, monthly P/(L), and much, much more!

eminiways.com

Method:  Using two (2) simple moving averages and R.S.I. as a filter. 

Purpose: To show educationally How you might use Excel to calculate entry targets, losses and gains, including stop loss exits, and profit exits, monthly P/(L), and much, much more!  All Formulas are shown and A TEMPLATE (COMPLETE TRADING SYSTEM) IS INCLUDED FOR YOUR STUDY AND EDUCATION only).

 

image

BONUS !  !  BONUS!  !   Swing Line chart and calculations for making a swing line chart with Excel included ! ! 

image

 

HERE IS THE DOWNLOAD of THE MS EXCEL Spreadsheet (no VBA, no macros):

contact us at:

therivertradingsystem@gmail.com

What is the E-Mini Trend Today?

Trading with Microsoft Excel (Using 35 minute data or 12 bars a day).

End of Day January 7, 2022

The Daryl Guppy Multiple Moving Averages (GMMAs) give us a first look at the trend today.

GMMA jan 7 2022

At the far right above, the red dots (downward momentum) are BELOW the blue lines and BELOW the red lines, meaning an DOWNWARD TREND.

BELOW:  Another example of a trend indicator that we use is the 29 bar s.m.a. of the close (red line below) .  The second red line is the same moving average but smoothed.

The Army Green below is the Halfway Line (half way between the 3 day High and the 3 day Low).   It is shown with the 29 period s.m.a. of the close and its smoothed self both as red lines.  The Halfway line is an excellent trend indicator, and is a good trade signal as well.  We use it along with the 2 red lines as enhanced trend indication!

halfway Jan 7, 2022

Lastly, we present (below) a bit more complicated chart, which uses EMA Waves (exponential moving averages of the High, Low, and Close).  We use the 29 period e.m.a. of the High, Low and Close as our default.  (Raghee Horner, who originated these, uses the 34 e.m.a. of the High, Low, and Close.)

Please see our POST about the EMA Wave (with free Excel download) in the archives.

EMA wave Jan 7, 2022

Please see our Post about EMA Waves in our Archives.   There is a free download of a macro-free, no VBA Excel Spreadsheet available also.

SO, WHAT IS THE EMINI  TREND TODAY?

CONCLUSION: the trend is DOWN at the end of the Day, January 7, 2022.

As you can see, we have found that using Microsoft Excel is accurate, fun, and profitable!   We hope you enjoy our colorful charts, which make VISUAL TRADING so much easier.

Good luck with your trading!

contact us at:

therivertradingsystem@gmail.com

EMA waves and Excel spreadsheet

Using Microsoft Excel to Visualize Price Patterns

 

Simple Trading With Excel. 

Here is a LINE CHART with 29 period EMA bands.   We show 35 minute price data, with 29 EMA of High (green line), 29 EMA of Close (blue line), 29 EMA of Low (red line).  Note: with the Excel file, you can change the EMA period if you wish, and the price data of course, and also change the colors it you wish (in your own Excel file which you can DOWNLOAD below at the bottom of the page.)

35 minute Emini S&P price data shown in all charts, for the December 2021 contract.

image

HOW TO MAKE THE ABOVE CHART MORE USEFUL FOR TRADING? 

FIRST, CONVERT EACH PRICE POINT (the 35 minute closing prices) INTO A COLOR DOT, BASED UPON above the EMA lines, below the EMA lines, or between the EMA lines.   Here are the color dots, green, red, blue:

image

AND see below, put it all together and THIS  IS WHAT A CHART LOOKS LIKE WITH THE COLOR DOTS AND THE EMA WAVE lines:   Much better and easier to use, we think!

image

Note how green dots are ABOVE the EMA wave, red dots are BELOW the EMA wave, and blue dots are BETWEEN the EMA wave lines?

As an example of a simple trading strategy, you could Trade Long with green dots, Trade Short with red dots, and be Neutral or OUT with blue dots.

on next line- EMA waves Excel file below for download- click on “29 bar EMA waves” below (no macros, and no VBA code)

29 bar EMA waves                   

(DOWNLOAD is above)

Note: the original ideas for the EMA waves come from Raghee Horner in her book on Forex trading ( 1997 ?) .     She prefers to use the 34 bar EMA wave, and instead of dots she prefers to use Candle Stick bars with distinctive colors (red, blue, green).   Since we are not able to do the same thing with Microsoft Excel spreadsheets, this is our solution for the time being.   The key attribute of either method is better VISIBILITY/ VISUALIZATION of trends.       

Good luck with your trading!

Please view our archives for a wide variety of Excel related and trading related information.

therivertradingsystem@gmail.com

Example of an Excel Trading System

Using 35 Minute Price Data (12 bars a day)

Trading With Excel

Here is an example of how to trade with Excel, over 3+ years. Please remember all trading implies risk and monetary losses, so use the following template with caution. All traders must trade with adequate starting capital and be sure to use strict loss controls and strict and conservative sizing rules. This excel approach represents a possible approach, but does not propose to be complete or finished or exemplary in any way.

DO YOU WANT TO SEE AN EXCEL BACK-TESTING SYSTEM?

Here is a simple and non-complicated Microsoft Excel Trading System, which uses 35 minute price data for 2018, 2019, 2020, and most of 2021. Results are hypothetical and this system is presented for educational purposes only (no trading recommendations or advice is given). We offer it as a starting point for hypothesis, analysis, investigation, and statistical experimentation only, not as a completed product.

The system uses calculations for Directional Movement, developed by Welles Wilder, and the logic is explained in his book: New Concepts in Technical Trading systems.

One of the reasons for good performance is the long term bullish trend. We doubt that it would work so well in a 3-4 year ranging market with no long term trend.

(NO macros, NO VBA in the Excel spreadsheet download)

Also, please see in the archives our related post which is entitled:

“Excel Trading System Using End Of Day Price Data”

Good Luck with your trading!

Contact us at:

therivertradingsystem@gmail.com

Using the Halfway Line (between the Dips and Rallies)

Simple Trading With Excel.

This technical indicator (shown in GREEN below) is based upon recent dips in prices and/or recent rallies in prices.   It is the halfway line between the 3 day high price line (not shown) and the 3 day low price line (not shown).  A 29 bar s.m.a. of closes is shown, and a smoothed 29 bar s.m.a. of closes is shown along side the GREEN line.  They look like this:

D and R Line

Chart above is from mid-September 2021 to mid-October 2021 (35 minute Closes).

We use it to CONFIRM the Trend Direction.   Prices below all 3 lines are trending SHORT.  And prices above all three lines are trending LONG.   If prices are between the moving averages and the GREEN LINE, then this is a neutral area.

Try it.   Good luck with your trading!

contact us at:

therivertradingsystem@gmail.com

Create a Swing Line chart

Trading with 35 minute price data, and Microsoft Excel

Since we are long term followers of Ira Epstein in Chicago, we thought we’d try to invent a swing line chart similar to his.

Using Excel, we have done this, and although there may be minor differences, we like these calculations so much that we have started incorporating them in our end-of-day analysis of price action.

Connect the Swing Lines To See Price Action

If you wish to see how this is done in Excel, download our “example of trading system with swingline chart” in the archives.

See archives for excel demonstration of Swing Line calculations.

You can apply this to Daily Prices as well (end of day prices) with your Excel spreadsheet (see below):

End-of-Day prices with Swing Highs and Swing Lows- Oct 29, 2021

see our ARCHIVES for the post on EMA Waves (the green, blue, red lines above).

here’s the link:

https://eminiways.com/2021/10/19/ema-waves-and-grab-dots/

contact us at:

therivertradingsystem@gmail.com

Risk of Ruin Calculations

How Good is your trading strategy? Find out what your probability of “Ruin” is.

(Excel spreadsheet below available for download. No macros, no VBA.)

HERE’S THE FIRST WAY (which does NOT rely upon win % to calculate).

David E. Chamness had an article in Futures magazine (August 2009) entitled, “Minimizing Your Risk of Ruin”, and his formulas are independent of win%.

We will plug in our values….

  1. Percent of the account that we are willing to lose and define as “ruin”,  (let us say 50%).  Some folks prefer to use 30% as their definition of ruin.

2. The Average of all our Monthly Returns (gains and losses) in percent,  say 7.68%.

3. The Standard Deviation of all our Monthly Returns (gains and losses) in percent, say 11.6%.

Excel Formula:   EXP((-2*(Average of Monthly Returns)*Percent of the account that we are willing to lose and define as “ruin”)/(Standard Deviation of Monthly Returns*Standard Deviation of Monthly Returns))

example with values from above entered:   EXP((-2*(.0768)*0.50) / (0.116 * 0.116)) =  0.34% RISK OF RUIN

HERE’S ANOTHER WAY TO CALCULATE RISK OF RUIN using other trade data:

Nauzer J. Balsara’s text, Money Management Strategies for Futures Traders, (John Wiley, 1992) presents a widely respected formula.

And Brent Penfold’s book, The Universal Principles of Successful Trading, presents the same formula very well.

The  Equation: ((1-(%Win-%Losses))/(1+(%Wins-%Losses)))^(RiskCapital/Max Loss).   This formula is easily plugged into Excel.

Example:  Assuming  %Win = .59   and    %Losses = (1-.62) = 0.41,  Risk Capital = $50,000,        Max Loss = Historic Max Loss To Date = $6,050

 Equation:    ((1- (.59 – .41)) /      (1+ (.59 – .41)))^(50,000/6,050)

                  = 4.94%   RISK OF RUIN

DOWNLOAD EXCEL EXAMPLE: (NO VBA, NO MACROS) here……………

contact us at:

therivertradingsystem@gmail.com

Make a Monte Carlo simulation with Excel

 

Make a Monte Carlo simulation of your trading records!

The purpose of constructing a Monte Carlo simulation of your trading results is so that you can VARY THE SEQUENCE of trades.  By doing this, you obtain different outcomes in your system performance statistics.  Varying the sequence of trades does not change the ending equity amount, because you are using the same trades as originally but in a different order.

Perhaps your highly esteemed trading system’s performance data is the result of having a lucky sequence of trades, where the drawdown was minimal and the stress on equity balance was mild.   If you run a Monte Carlo simulation of your trading results (all wins and all losses), you will have a different sequence (or another 100 different sequences, or even thousands of different sequences), and you can compare outcome to determine just how lucky your original sequence of trades actually was.

A Monte Carlo simulation of your trading results helps to answer these questions:  What are the chances of my starting equity level being eroded by 30% ?  And what is my limit on the amount of equity drawdown I could tolerate?   What if I received 7 losses in a row, or more, in a randomized sequence?  How large are the peak-to-valley drawdowns in this particular trading strategy, in $ amounts and in % amounts?  And what amount of starting equity will help to ensure long term survival and my ability to “live to trade another day”.

We feel that the most important information to be gained from Monte Carlo simulation is the picture of estimated drawdowns of your trading capital.

In our simulator, we ran 2500 Monte Carlo simulations using a hypothetical $25,000 starting equity amount.  Would this starting level of equity be enough in order to avoid a 30% drawdown (which would bring our equity level down to $17,500?)

Here’s a picture from our Monte Carlo Trade Simulator after running 2500 iterations:

clip_image003.jpg

These are the results from studying trades from ONE CONTRACT emini S&P 500.

Out of 2500 shufflings of our original trades (wins and losses) (which is what Monte Carlo simulations do), we will suffer from the inevitable periods of drawdown.   But, starting with a hypothetical $25,000, what exactly are the chances of this happening?

Here is where Monte Carlo simulations are useful!  Answers to those questions!  The risk of an equity drawdown to $17,500 while trading (which is a 30% drawdown of starting equity) with our system would be 0.3%, which is very low.  Less than 1% !!   From our sample of 62 trades, with approximately 24 trades a year historically yielded these results. As our Excel Monte Carlo simulator demonstrated, the “Ruin” level of drawdown happened only 6 times in 2,500 iterations of the reordering of sequences.

This level of risk is quite low.     We generally prefer a Risk of Ruin (determined by us to be an equity drawdown of 30%) of less than 5%, best to be below 2%.   Our Monte Carlo simulation demonstrates a level of risk below both of those benchmarks.     Theoretically, and based on the Monte Carlo simulation, it is possible that we could trade safely with less money, perhaps 20,000, or 15,000 as start equity.   All we need to do is plug that number into the spreadsheet and see.  Let’s find out:

Second Monte Carlo Test, using $20,000 as start equity.  The results were still quite comfortably within our risk limits.

clip_image002

Let’s go even lower with our start equity amount:  Here is the Third Test, using a start equity amount of $15,000.    It looks like this:

clip_image003

Still our risk of ruin (30% drawdown in Start Equity) is only 3.5% in our Monte Carlo trade simulations, and still our risk of a possible Peak-to-Valley drawdown of as much as $10,000 is low at only 0.5% .  This satisfies our own important criteria for risk aversion.  We can conclude that statistically, our chances of being wiped out are very low, and that we can start trading with $15,000 allocated to each single contract (trading the emini S&P 500).     Without a Monte Carlo simulator we would not know this.

We’d like to make a distinction in drawdown types.   (Yes, there are a couple different types of drawdown.)

The first type of drawdown is the Peak to Valley drawdowns that occur over the course of your trading activities.   One week you’re at a high point in your ever-growing equity curve, and the next week you’re in a valley after suffering a single serious loss, or more likely, a series of losses over time.  These are the drawdowns that are colored in light yellow and pink, above in the tables from our simulator.

In our experience, it is rare not to have drawdowns of $5000, $7,500, and even $10,000 upon occasion, and the table tells you how frequently this occurs in simulations on a percentage probability basis.  When evaluating a system, this is a secondary level of risk for us, and we like to look for systems that experience $10,000 drawdowns (from peak to valley) infrequently.    Remember, these results are calculated for a 1 contract only simulation.   A $10,000 drawdown with 1 contract is one thing, but when 4 or 6 contracts are on the table, that can create some anxiety.

The second type of drawdown is the one that hits your starting equity.   This is called “Under Water Drawdown”, for lack of a better term.  A drawdown below the starting equity level.   This is much more serious, and is most likely to happen in the beginning weeks or months of your trading when your accumulated equity cushion is not as high as you’d like it to be.   This is the one that is most serious, because it is the drawdown that will wipe you out.   You have to maintain enough capital to trade again, trade again, trade again!

So, it looks like from an analysis of 2500 random sequences, the statistics are on our side!   We have enough starting equity to ensure little or no risk of ruin (statistically speaking, that is!)   If we started with less money, then our Risk of Ruin and the peak-to-valley drawdowns would be greater over all.

Remember, in trading, anything is possible, but with mathematics (or a Monte Carlo simulation of your trading numbers) on your side, you will be able to estimate the probability of your being ruined by a series of losing trades.

We find that the ability to perform a Monte Carlo simulation on a sample of any of our trading systems is an absolutely essential and crucial concept for our trading. There is never a perfect defense in the world of trading, but having a better understanding of your risk of being ruined is a good start!

So, here is an easy to build Excel version of Monte Carlo simulation (without macros) (and without VBA).  If you follow these steps, you will have a simple but effective MC simulator, which will be able to re-order your trades with the push of a computer keyboard button (F9).  And it will show you drawdown levels and peaks, too.  You can add as many features as you wish, such as a method of tracking losses-in-a-row.

How to make a Monte Carlo simulation in Excel follows, in step by step description.   THIS IS HOW TO CREATE IT YOURSELF. 

Here is a step by step description of how to build your own NO MACROS Monte Carlo Simulation worksheet.  (In the descriptions that follow for cell formulas please note that when you put the formulas in the cell, you do not include the quotation marks.)

1. Column A is blank

2. Column B will be numbered from 1 to however many trades you have.   Call this column “original trade #”.

3. In column C, paste your trade list (your wins and losses) in a list in any order.

4. call that column “original trade list”.

5. Next column to the right, which is column D, is blank.

6. Next column to the right is column E, named “RAND”, and is filled from the first cell downward with “= RAND ( )” as the cell value.  So, Cell E3 is “=RAND( )”.

7. Next column to the right, which is column F, named “RANK”.  The formula for cell F3 is “=RANK(E3, E$3:E$71)

8. Next column to the right, which is column G, named “Shuffled trd list”.   The formula for cell G3 is “=VLOOKUP(F3, B$3:C$71,2).    All the cells below G3 use the same formula too.

It will look like this:

§ clip_image004Next column to the right, which is column H, named “cumulative equity”.  Begin this column in cell H3 with this formula:   “=$J$1+G3″   Now, the next cell below this, which is cell H4, has a different and unique formula and you should enter cell H4 with this: “=G4+H3″.    All the cells below this use this formula also.

§ Next column to the right, which is column I, named “troughs”.  The formula in cell I 3 should be “=$J$1”.   And to make sure that this formula works ( ! ), be sure to enter the Start Equity amount in cell J1, above J3.        Let’s turn to the cell below J3 now, which is cell J4.

§  Cell J4 has a different and unique formula which is the following:         =IF(AND(H4>H3, H4>=H5, H4>J3), H4, J3)

clip_image005

§ Next column to the right is column K, and is named “sim DD $”.  This is the column where your drawdown in $ amounts will show up.   Cell K3’s formula is: “=IF(ISNUMBER(I3), J3-I3,0)”

§ Next column to the right is column L, and named “sim DD %”.  The formula for cell L3 is:  ” =IF((K3/J3)>0,K3/J3,0)”

clip_image006

The end result of these step by step directions is this, and here’s how it should look:

clip_image007

§     Make sure you have the correct formulas in row 3 and row 4, because some of the cells in row 4 are different from those in row 3.

§   You are almost finished!     Pull all the rows down from row 4 down far enough to include all of your potential trades.

Paste your trades into column C, beginning at row 3, and make sure that all the columns to the right of your last trade at the bottom do not extend down below that last trade’s row.

§   IMPORTANT:   Since you are the builder of this Excel spreadsheet, you’ll need to complete it on your own, and provide column totals, at the bottom below the last row, (the equity curve begins at the top in column H and extends downward to the end where your last trade is seen.)

This is what the last rows (the bottom) of your Monte Carlo Performance Analysis spreadsheet can look like, after you enter the appropriate formulas for Sums in each appropriate column:

clip_image008

The next step:   With all of your trade records entered into this spreadsheet, you will be able to shuffle the order of the trades instantly!   THERE ARE NO MACROS INVOLVED WITH THIS EXCEL MONTE CARLO SIMULATOR.   Calculations are performed with the F9 button, where you have single iterations one after another.  You’ll probably want to see how your system performs in 5 simulations, boom, boom, boom.   See how you do with 10. By altering your basic start equity, you can change your risk parameters.  IT IS A STARTING POINT FOR YOUR TAKING CONTROL OF YOUR RISK.

With each calculation, you’ll have the same ending equity levels (since you are always using the same trades, just in different order), and you can see what your drawdown is, and what peaks and valleys in your equity level to expect.   You will need to do many iterations to get a sense of what your Risk of Ruin is.

We recommend that you create a chart, insert it on top of this spreadsheet in a small corner, and attach it to your equity column values in column H.   This way you can get a new chart generated with every iteration, when you press F9, ,and you can see how your equity curve changes during the course of a trading campaign.

clip_image009

Realistically, what you can learn from this exercise, beyond the building of it, is whether or not you have a sound trading system.  But this Excel Monte Carlo shuffler-of-trades only goes so far.

Most significantly, you can only perform one iteration at a time, unless you add a more sophisticated control system in the form of a macro by using VBA (Visual Basic for Applications).

That’s when you can extrapolate your Risk of Ruin after 2500 simulations!  Or 10,000!  Have fun!

IF YOU JUST WANT THE EXAMPLE GIVEN TO YOU,

you may download it below:

here is a Monte Carlo Excel Spreadsheet—it has MACROS-  this will perform 2500 simulations at the push of a button.  Two worksheets with the same calculations, one arranged horizontally and the other vertically.  Enjoy

put link here <—(NOT AVAILABLE AT THIS TIME) this has MACROS for running 2500 simulations.   There is no spreadsheet available as an example for downloading at this time. 

Helpful Hint:   There is a trading related website which has a Monte Carlo spreadsheet, and many other very good resources.   Please visit this website at this web address:    

https://kjtradingsystems.com/articles.html