NexusFi: Find Your Edge


Home Menu

 





catching dataseries from DoubleMA


Discussion in NinjaTrader

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




 
Search this Thread

catching dataseries from DoubleMA

  #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?
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Strategy stop orders partially filled
EasyLanguage Programming
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
ApexTraderFunding.com experience and review
13 thanks
Trading with Intuition
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
EG Indicators
8 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,475 since Jun 2009
Thanks Given: 33,251
Thanks Received: 101,679

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




Last Updated on June 12, 2009


© 2024 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 - Privacy Policy - Downloads - Top
no new posts