Search This Blog

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
      

Sunday, December 14, 2014

SRS Setup

SRS Setup Review

Hello Traders !

Today we are revisiting the SRS, explaining its rules and different Trade Setups that we can trade with it.

  • Classic Use with the Trend
  • Classic Use against the Trend
  • Alternate use on SRSx Setup

Lets start for the Begining : Trend Definition

On SRS we use an exponential envelope (DarkGolden lines) and an exponential moving average (Blue Line) to define the trend.
The Blue Line has a slower ( higher ) period than the Envelope, usually a number in the order of 50, 100 or 200.
The Envelope uses a faster ( lower ) period to follow the price.
Its size is fixed, and it should be big enough to keep the Blue Line inside while the Market is in sideways mode or changing the trend.
We can control the size of the sideways zone by changing the size of the envelope.

The trend has 3 possible states :

  • Trending Down ( Envelope is all below the Blue Line )
  • Trending Up ( Envelope is all above the Blue Line )
  • No Trend = Sideways ( Blue Line is inside the Envelope )


Once the trend is defined, then we use a Donchian Channel to define the Trade Ready Condition :


When the Bars are touching the Upper Donchian and the Trend is Down, then we have a Short Trade Ready Condition.
Those bars are shown on the following picture with Orange Diamonds.

The Trade Setup Entry is at N ( default = 3 ) ticks below the low of the Signal Bar, just where the Diamonds are located.
That means that for Manual Trading this setup we place a Sell Stop Order over the Diamond and keep adjusting the Entry Price as each new Diamond is painted.
On the example shown above, we have an entry on the 3rd and final diamond ; the order placed there gets a fill at the next bar.

On the last version of the TIS_SRS Indicator we have the option to hide or show the lines ( EMA, Envelope and Channel ), the Diamonds, to paint the Bars according to the Trend and also the option to place a Marker where there is an entry, to make this indicator compatible with the Markers System.



Trade Setup against the Trend

On the classic ( with the trend ) setup the blue line is slower than the envelope ( blue line period > envelope period ).
On the counter trend Setup we exchange its values, so the blue line is now faster than the envelope  
Following the same rules with the Donchian and using the same Entry Technique than before we can see that we get long signals at the bottom extremes and sell signals at the tops.

Again, we can trade this Setup Manually by placing Entry Stop Orders over the Diamonds.
Or Enter the Market when we get an Arrow. This can be automated with the Markers System.

SRSx ( Extreme ) Setup

This Setup uses the same method to define the trend bu the Entry Technique is different.
On this Setup we trade a Breakout. And the breakout is detected when the Blue line gets outside of the Envelope.

As we can see on the above picture, the Blue line is faster than the Envelope.
When the Blue line is above the Envelope, then the Trend is Up and we get Blue Bars.
If Market is making new highs ( detected through the Bars touching the Donchian ) then we have a Diamond.
The Entry is at Market ; as soon as we get a Blue Diamond we Enter Long. Usually the first signals per side are the best, so we should only enter one or 2 times per side.
To automate this Setup we can use the Markers System by targeting the Diamonds as Entry Signals. The price location of the Diamonds has no use on this Setup.
The period of the blue line here should be very fast. And the size of the Envelope, should be tuned to avoid the system to trigger signals when not impulsing or trending. ( see left and right part of the Chart )

Parameters of TIS_SRS for SRSx Setup ;

To be able to follow the SRSx Setup with the TIS_SRS Indicator we need to do some tweaks on the parameters as shown :

As we can see, the colors are inverted, the period of the blue line is really fast with a period of 2. The offset to place the Diamonds is negative so we get them on the other side of the Bar. On this example, using a Range 6 Chart (where all bars are 6 ticks tall) placing the Diamond at -9 is like placing it at 3 ticks from the opposite extreme.

Related Videos :

I will post here links to related videos using the last version of the SRS Indicator and the Markers System to show how to configure and use them to trade the different Setups.

Live Examples using the 3 different trade setups and automating the Entries with Markers 
Pablo Maglio
www.TheIndicatorStore.com


Saturday, September 27, 2014

New SRS Extreme Setup (SRSx) for Ninjatrader

New SRSx Strategy : SRS Extreme

This Setup is focused to volatile Markets where entering at a pullback is not an efficient solution.

Uses same logic as SRS to define the trend, so it has 3 states ( Neutral, Bullish and Bearish ) using and Envelope and a Moving Average.

On the classic SRS, when the fast ema crosses outside the envelope, we have a trend and start looking for an entry at a pullback.
On SRSx we just enter the Market :

set1
On this example we can see the fast moving average ( blue line ) crossing below the envelope starting a new down trend ( red bars )

The classic SRS waits for a pullback and enters a Sell Stop Entry Order over the Orange Diamond :
set2

On SRSx we enter the Market at first Red Bar.
Doing some minor changes on the classic SRS Input Parameters we can get this New Setup on our Charts :

sett

On this YouTube video we can see how to create a Chart with the SRSx Setup using the SRS Indicator :



On this link you can get the SRS Indicator :
On this link you can get the Markers System :
Don't hesitate to ask or comment !

Good Trading !
Pablo

Saturday, September 13, 2014

The Best System for Ninjatrader

PMS_Markers ; The Best System for Ninjatrader

Why better ? ...because it trades any logic ; you provide the logic !
Any indicator that produces symbols can be used together with PMS_Markers to trade its signals.

If you have an indicator that shows entries with any kind of symbol like arrows, dots, lines, etc, then with this system you can automate the process of entering trades.

PMS_Markers uses the logic described on TIS_Markers Indicator for Ninjatrader to detect markers drawn into a Chart.

Take a look at this YouTube Video for more info :



The system provides the Debug Mode to verify the settings of any Object Placed in the Chart.
We put that data into the PMS_Markers and then we just let the system trade the signals

Features of PMS_Markers 

  • Trade in Manual or Automatic Mode
  • Select Auto or Manual from the ToolBar
  • Use ATM Orders
  • Select ATM Name from the ToolBar
  • Enable Longs and Enable Shorts from the ToolBar
  • Money Management Option to Limit Max Daily Loss and Max Daily Profit
  • Time Window Option
New Features of Version 2.1

  • Addition of Exit Condition ( User can Specify an Object to Close Current Position )

  • Time Window can Work at Midnight ( Time Begin > Time Finish )
    Example ; to trade from 11 PM to 2 AM we can set
    Time Begin = 230000
    Time Finish = 20000
  • Easier Introduction of Object Filter Settings :
    Only 2 Conditions per Side are needed : Object Type and Color
    We can use advanced Settings like Text Contents or Tag Name by
    clicking on Advanced Settings :

    When using Text Objects, we can use Exact Match or “Contains” Match
    Example :
    With “Contains” a Text Object with the String “Go Long” will be detected by “Long”
    To avoid confusing “13” by using a filter=”3” we can use “Exact Match”
    When we look for text signals containing numbers it is convenient to use Exact Match.
  • Addition of Info Text on Chart to let the User know the System is not taking trades because it is outside of the Trading Window.
    Example :

  • Now the Orders are Persistent.
    That means that if the system has a position working and we need to refresh the chart
    ..to add a new indicator
    ..to modify the setting of other or even Markers Indicator
    the current position status will be remembered by Markers

    On previous version ( v2 and lower ) any refresh of the chart would cause Markers to forget its current Position and Orders Status, so, never closing the current position when a new signal or Close Time would require.
  • We added the option to set Markers on “Calculate at Bar Close = True” Mode.
    The normal use of the Markers System is on intrabar (false) ; so as soon the trigger object is detected, an entry order is issued to the Exchange.
    On some special situations, it may be useful to wait to the end of the current bar to send the Entry Order. On those cases, use the Option Calculate at Bar Close = True.

Please let us know your comments !

Pablo Maglio
photo
Skype Skype id : pmaglio
      

Sunday, September 7, 2014

TIS_Markers Indicator for Ninjatrader

TIS_Markers Indicator for Ninjatrader

This indicator was designed to be placed on a Chart where other indicators are applied and showing useful Markers.
Most Indicators Show Trading Information via a Marker.

The most used Markers are :

Dots :

Diamonds :


Arrows :




Vertical Lines :






Other Markers :


Even More Available Objects :


All these Objects and Markers have several Variables that we can monitor ;


  • The Type of Object ; Dot, Diamond, Arrow Line, etc
  • The Color
  • The Tag ; each object on a chart has a unique name. We can double click on any object and review its properties on the "Data Tab"


  • On Text Objects we can also check at the Text Contents



With TIS_Markers we can Filter any Object placed by a Custom Indicator and generate a User defined Alert Sound.

These are the Input Parameters of TIS_Markers :



On this Example the Indicator is monitoring for an Arrow in any Color with the word "GoLong" in the tag. When it is detected, the audio file Alert2.wav is played.
It is also looking for any Red Text object displaying the word "Short" and with a Tag Name including the word "Sell"

There is an important parameter ; Lag_Max_Bars that determines how far the objects are drawn from current price action.
Example ; some indicator place their signal markers after several bars, so the markers looks great but on real time it is useless, so we can filter the signals drawn at a maximum number of bars from current price action.




PMS_Markers

This is the automation of the TIS_Markers Indicator and will allow to automate any Custom Indicator and convert it into a Strategy by Monitoring its Markers and placing ATM Orders in the Market.
Currently under development ( register for a pre-sale and get an important discount )
Estimated Release Date : Sept 24, 2014


Good Trading Everyone !

photo
Skype Skype id : pmaglio