Search This Blog

Saturday, April 18, 2015

Using the Slope of an Indicator to define the Trend

Using the Slope of an Indicator to define the Trend

One of the most used techniques to define the Trend of a Market is looking at the Slope of an Indicator.

Usually a Moving Average like HMA, EMA, SMA provide a good idea of the trend, having the first one ( HMA ) the fastest, and the last one ( SMA ) the slowest reaction.

On this Chart we can see an example of 3 Indicators using the same Period :


If we look at the Trend Changes, then the signals on each Indicator happens on the shown points :

We can even look at combinations of Indicators to define the trend.
For example, looking at a fast EMA to produce the quickest results may also produce too much signals, most of them not good, as we can see on this Chart :

Here I apply an HMA(8) to get the fastest response :

But to avoid so many signals, we can Average this line, using an EMA(8) of the HMA(8) and it looks like this :

On all type of moving average types, using a small period offers more response, less delay but more fake signals, so it is always a good idea to average the line several times using a small period ; Example : EMA(EMA(Close)) 

The Donchian Channel is also very useful, it has 3 lines : the upper, the lower and the median ( average between upper and lower ).

On this example I will use the Median of a 12 Bars Donchian:

These example Charts were generated with the TIS_Slope_Color Indicator for Ninjatrader, which allows to detect the Slope of any Indicator or combination of them as seen on this YouTube Video :


Hope you find these basic concepts useful to add or enhance your Trade Setups.

Please share and post any questions !

Best Regards,
Pablo Maglio

photo
Skype Skype id : pmaglio
      

Tuesday, March 31, 2015

Defining a Trade Setup using Crossovers with Ninjatrader

Hello Traders !

Today we are reviewing several Indicators that can be used to define a Crossover Trade Setup.

There are some Indicators that produce only one line, like EMA, SMA, HMA, etc.

Then we can use 2 Instances of same Indicator with different settings and check its Crossovers.

Examples : 

Crossovers of an EMA(14) vs EMA(7)

Note : The places where the Blue Line crosses above the Cyan Line there is a Long Entry Signal. Where the Blue Line crosses below the Cyan Line there is a Short Entry Signal.

On these type of Setups the Best Results can be obtained with faster Indicators like the HMA. 
The HMA produces faster and less lagged results as we can see on this Chart

Crossovers between an HMA(26) and an HMA(12) :

Note : On this example the Crossovers are indicated with Arrows using the Custom Indicator TIS_HMA_XO
The Entry Signals produced by the TIS_HMA_XO Indicator can be automated using the The Markers System.


Some other Indicators produce 2 lines like MACD, RSI, Stochastics, etc.
On those cases we can check the Crossovers of the 2 Lines produced by the Indicator.

Examples using 2 lines Indicators :

On this Chart we can see the Stochastic, MACD and RSI on the lower panes


Stochastic and RSI are Indicators that plot its lines in a defined range from 0 to 100, so we can define overbought and oversold zones.
MACD has no defined limit for its plots, so not suitable for overbought/oversold analysis but we can use it to trigger signals when the MACD crosses the AVERAGE lines as we can see on this Chart :

MACD Crossover ( MACD vs Average Line ) :


The Blue and Red Arrows indicate where the Macd crosses the Average Line.
These arrow signals can be painted by the Custom Indicator TIS_MACD_XO and automated using the The Markers System.

More info on this YouTube Video
 


RSI Crossover ( RSI vs Average Line )


As we can see the RSI produces a good amount of signals but it is very fast without lag. 
The values of RSI are limited between 0 and 100, so if we optimize its settings we can take only longs on the oversold area and only shorts on the overbought area. But the overbought/oversold level on RSI is not its best feature.
It should be used with some additional filter to select only Longs or Shorts depending on the trend. The trend can be defined by the last signal produced by some of the previously seen indicators, like the EMA's Crossover.
The Arrows signals shown on this chart are produced by the custom Indicator TIS_RSI_XO and can be automated using the The Markers System.


Stochastics Crossover ( K vs D Line )


The Stochastic has a very fast response and also a very precise determination of overbought and oversold levels so we can look at K vs D line Crossovers only on the OverBought and OverSold Areas.
On this example Chart, the  OverSold level is 10 and Overbought is 90, so a Blue Arrow ( Long Entry Signal ) is shown when K lines crosses above the D line and its was coming from below 10.
Red Arrows ( Short Entry Signals ) are shown when K line crosses below the D line and it comes from above 90.
These signals are produced by the TIS_STO_XO Custom Indicator. And the Entries can be automated using the The Markers System.

More info about this trade Setup on YouTube :


Hope you find these Trade Setup ideas useful for your use.
These are just simple pieces that we can use to create a more complex Setup.
As example, we can use any of the explained logic rules to define the trend, other to trigger an entry and then a different rule to trigger an exit.

Please post any questions, sugestions or ideas you wish to share...

Thanks and please share this post !

Pablo Maglio
photo
Skype Skype id : pmaglio
      

Thursday, February 12, 2015

Managing Multiple Positions on Ninjatrader

Managing Multiple Positions on Ninjatrader allows to be Long and Short at Same time

When we follow more than one Setup on an Instrument, it is possible that we may need to trade an Instrument which is already being traded.

Usually we have different Setups on Different Charts for each Setup we Follow, but when we trade the same instrument multiple times on same account we get mixed orders making the analysis of each setup confuse.

Let see on the following pictures how can we manage that situation on Ninjatrader using the Chart Trader :


On this Chart we can see an example of a Long Trade of 1 contract with its corresponding ATM Stop and Target 




Later, following a different Setup from other Chart we decide to Enter Short also 1 contract, so the net result would be flat.
And we get the same mixed orders and positions on all Charts ( assuming we are trading both setups on same Account )

On this picture we can see that there is no position and targets above and below the market. Same for the Stops.


We can configure Ninjatrader Chart Trader to focus on an individual ATM and show only its corresponding position, target and stops.

For that we right click over Chart trader...


Select Chart Trader Properties...


..and change the "ATM Selection Mode" to "DisplaySelectedAtmStrategyOnly"

Then, on Chart Trader we select which one of the current active ATM Order we want to show :


We can see that we have 2 active ATM Orders, one for the Long and the other for the Short.
Selecting each one, show its corresponding position followed by the net position ( 1 - Flat ) for the Long or ( 1 - Flat ) for the Short.

The same technique applies when having 2 longs or 2 shorts, each one with its own Entry, Target and Stop...

Hope this be helpful for your Trading !

Pablo

Tuesday, February 3, 2015

EMA Setup for Ninjatrader

We have discussed several times in the past the EMA Setup for Ninjatrader, as we can see on the links at the end of this article.

Today we are reviewing again the EMA, and its counterpart, the Bouncer.


The EMA Setup is one of the easiest to learn and trade ; it only uses an EMA ( Exponential Moving Average ) and a Fixed Envelope.

The EMA is included on all Platforms, including Ninjatrader.

The Fixed envelope are 2 lines located at a fixed distance from the EMA, one above and the other below.

Most of the Platforms include it. And on Ninjatrader we can get a free version here TIS_EMA_Envelope_Free

On the folowing examples the NEW custom indicator TIS_EMA_V6 will be used

On this example chart we can see an EMA Setup with Neutral Offset.
The EMA is not shown, only the Envelope around it (gray light lines).
When the price touches the Upper Envelope, the trend is Up and the bars are painted in blue.

The Entry Price is at EMA + Offset.

The Blue Points are the Entries, which are located over the EMA because offset is null.

The arrows show the moment where there is an Entry ( compatible with Markers System )

EMA con Offset Neutro

On the next Chart we can see an example with Positive Offset

The Entry Price, shown by the blue dots are over the EMA, at a distance in Ticks equal to Offset.
The type of Order to enter the Market on this Setup is Limit ;

As soon we get a blue dot, we must place a Buy Limit Order over the Blue Dot, and we must update the Entry Price Order each time a blue dot is placed at a different Price.

bl2

With the same logic, we can also use a negative offset, being the Entry Price then, below the EMA

bl3


As we commented at the start of the post, inverting the logic we have a new Setup that we have already commented in the past ; The Bouncer.

The new version 6 of the Indicator TIS_EMA_V6 has an input parameter to invert the logic as shown on the following picture :

bl4

Bouncer Examples :

Using a positive offset we can trade a return of the Market to the EMA after an enough deviation to touch the Envelope :

bl5


Using a negative or null offset on this Setup is useful to trades EMAs with bad response to bounces, producing breaks through the EMA most of the times.

bl6


As explained on previous posts, if we calculate the performance of trading bounces over an EMA and create a chart of the PnL against the period, we get a Performance Profile Chart (using always the same fixed target and stop)

Usually this profile is composed by a well defined series of peaks and lows.

If those peaks are positive, then those points represent the periods of the EMA to use on profitable EMA Setups

If the Lows are negative, then those points represent the periods of the EMA to use on the Bouncer Setup.


Some times, all the peaks and lows are on the positive side. On those cases there are no successful Bouncer Setups.

If all the peaks and lows are on the negative side, then there is no profitable EMA Setup.

Another point to take into account are the Commissions, because the number of trades depends on the period of the moving average to trade. If possible, we should include the commissions in the report before generating the chart.

More Related info on the Following Links :





Best Regards,
Pablo Maglio

photo
Skype Skype id : pmaglio