NexusFi: Find Your Edge


Home Menu

 





Help adding condition to DoubleMA Indi


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one KrazyTrader with 2 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 rleplae with 1 posts (1 thanks)
    4. looks_4 Silvester17 with 1 posts (1 thanks)
    1. trending_up 1,467 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9

Hello All

First I would like to thank the individual that developed the DoubleMA Indicator.

I need help adding a condition to signal when close is greater than fast MA.

I can get Close [0] > SMA(maPeriod1)[0] to work. I would like to be able to use the public enum DMAType selection rather than code SMA. Adding what i think is available below.

public enum DMAType {EMA,HMA,WMA,SMA,LinReg,VWMA}

Variables
private IDataSeries MA1Series;
private IDataSeries MA2Series;

private DMAType maType1 = DMAType.EMA;
private DMAType maType2 = DMAType.WMA;

protected override void OnStartUp()

switch(maType1)
{
case DMAType.EMA:
MA1Series=EMA(maPeriod1);
break;


Thanks for any guidance.


Difference between discomfort and pain = 1 tick
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,855


I don't think that series exist at startup
and I don't think it will get updated


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9


rleplae View Post
I don't think that series exist at startup
and I don't think it will get updated

Thanks for your response.

Anyway to change up what I'm doing to accomplish the same thing?


Difference between discomfort and pain = 1 tick
Started this thread Reply With Quote




Last Updated on April 3, 2016


© 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