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,018 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Help adding condition to DoubleMA Indi

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
What broker to use for trading palladium futures
Commodities
 
  #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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


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

Follow me on Twitter 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


© 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