NexusFi: Find Your Edge


Home Menu

 





catching dataseries from DoubleMA


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

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 NexusFi?
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,577

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 X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on June 12, 2009


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts