catching dataseries from DoubleMA - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

catching dataseries from DoubleMA
Started:June 12th, 2009 (06:50 AM) by max-td Views / Replies:1,275 / 1
Last Reply:June 12th, 2009 (06:56 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

catching dataseries from DoubleMA

Old June 12th, 2009, 06:50 AM   #1 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
max-td's Avatar
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 911 received

catching dataseries from DoubleMA

the DMA is all arround here in new modifications now.
I just "came over" from the old original version - now looking for to use that new thing in strategys. Therefor we need to have different dataseries to catch
If there are ideas to this, here we can make a code-sample-collection !


Reply With Quote

Old June 12th, 2009, 06:56 AM   #2 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 45,432 since Jun 2009
Thanks: 28,836 given, 79,563 received


There is a version of DoubleMA posted here:

There are a few more tweaks being made, but you can download that one for now to get the "latest" build.

There should be a Signal dataseries and a DMV dataseries. Signal would be -1 for short, 0 for neutral, and 1 for long. DMV dataseries will show the DoubleMA value no matter which plot it is occuring on.

Here is some code that I wrote earlier tonight that may be of use. I've not tested it!

// determine last DoubleMA neutral plot

// DMAneutral is a dataseries you need to define
// dmantemp is a double you need to define
// DMAadxvma is optimizable param you need to define
// DMAzlema is optimizable param you need to define

if (DoubleMA(DMAzlema, NinjaTrader.Indicator.MAV.MAType.ZeroLagEMA, DMAadxvma, NinjaTrader.Indicator.MAV.MAType.ADXVMA).Signal[0] != 0)

if (DoubleMA(DMAzlema, NinjaTrader.Indicator.MAV.MAType.ZeroLagEMA, DMAadxvma, NinjaTrader.Indicator.MAV.MAType.ADXVMA).Signal[1] == 0)

                    DMAneutral.Set(DoubleMA(DMAzlema, NinjaTrader.Indicator.MAV.MAType.ZeroLagEMA, DMAadxvma, NinjaTrader.Indicator.MAV.MAType.ADXVMA).NeutralPlot[1]);
            if (DMAneutral[0] != 0)
                dmantemp = DMAneutral[0];

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > catching dataseries from DoubleMA

« - | DoubleMA »
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple dataseries Breakout NinjaTrader 28 March 30th, 2015 12:14 PM
Catching Big Waves - a trader's journal of surfing the the markets GaryD Trading Journals 4686 May 23rd, 2014 10:19 PM
Catching breakouts using OCO stop limit bracket orders for entries dennho Traders Hideout 4 October 1st, 2010 08:51 AM
Help - how can I use Dataseries wich are calulate by an other Indicator? Trendseek NinjaTrader Programming 12 September 3rd, 2010 09:11 AM
Redeclaring a dataseries to use as a trailing stop Davidnmfarrell NinjaTrader Programming 5 April 26th, 2010 12:54 PM

All times are GMT -4. The time now is 12:10 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-24 in 0.08 seconds with 19 queries on phoenix via your IP