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,383 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?
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
South Korea Suspends Bithumb for Six Months Over AML Fai …
Cryptocurrency
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 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,860


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