catching dataseries from DoubleMA - futures io
futures io



catching dataseries from DoubleMA


Discussion in NinjaTrader

Updated
    1. trending_up 3,188 views
    2. thumb_up 0 thanks given
    3. group 0 followers
    1. forum 1 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

catching dataseries from DoubleMA

(login for full post details)
  #1 (permalink)
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 924 received

Hi,
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 !

max-td

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Server Sepcs
TradeStation
Looking for combined bar type (UniRenko with HeikinAshi) NT8
NinjaTrader
2022 CME Group Market Data Fees Increase
Traders Hideout
How many bars have passed since daily high
ThinkOrSwim
Order cumulation
TradeStation
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Spoo-nalysis ES e-mini futures S&P 500
60 thanks
Gambling (with life)
17 thanks
Dealing with the criticisms of being a Daytrader
15 thanks
Clueless about the letter sequencing in the TPO profile.
15 thanks
SC Direct Order Routing
13 thanks
 
(login for full post details)
  #2 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,138 since Jun 2009
Thanks: 32,638 given, 98,939 received

max-td,

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!

 
Code
//
// 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];
            else
                DMAneutral.Set(dmantemp);
Mike

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > catching dataseries from DoubleMA


Last Updated on June 12, 2009


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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