NexusFi: Find Your Edge


Home Menu

 





Indicator on Indicator .. what can I do?


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184

Modifying an indicator with an indicator .. where can I be going wrong?

Simple, I think ... just my first time so please be kind ... already trying for 2 hours
Could not find a resolution after searching ... and I think I am following the F1 format correctly ...

The following double works in the strategy,

 
Code
                            
b1_EMD2_Upper[0] = EMDT(BarsArray[1],iEMD2delta,iEMD2fraction,iEMD2period).UpperBand[0]; 

and now I want a 5 period CMO of that, but none of the following is accepted (and yes, I need that 'upperband'),
 
Code
                            
//

b1_cEMD66_upper[0] = (jhlCMO(EMDT(BarsArray[1],0.66,0.66,14).UpperBand[0]), 5);
b1_cEMD66_upper[0] = (jhlCMO(EMDT(BarsArray[1],0.66,0.66,14).UpperBand), 5);
b1_cEMD66_upper[0] = (jhlCMO(b1_EMD2_Upper[0], 5));
b1_cEMD66_upper[0] = (jhlCMO(b1_EMD2_Upper5)); 

Thanks very much in advance,
Jon

update: NT support suggests/recommends using DataSeries instead of the double for this ... will update further if there are issues with that


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425


Try something like this (untested).

private DataSeries b1_EMD2_Upper;

b1_EMD2_Upper = new DataSeries(this);

b1_EMD2_Upper.Set(EMDT(BarsArray[1],iEMD2delta,iEMD2fraction,iEMD2period).UpperBand[0]);

b1_cEMD66_upper.Set
(jhlCMO(b1_EMD2_Upper, 5)[0]);


Dan


Reply With Quote
Thanked by:
  #4 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


eDanny View Post
Try something like this (untested).

private DataSeries b1_EMD2_Upper;

b1_EMD2_Upper = new DataSeries(this);

b1_EMD2_Upper.Set(EMDT(BarsArray[1],iEMD2delta,iEMD2fraction,iEMD2period).UpperBand[0]);

b1_cEMD66_upper.Set
(jhlCMO(b1_EMD2_Upper, 5)[0]);


Dan

Dan,

That is what I ended up with ... but then the strategy has a mix of doubles and dataseries in the BIP=1 conditions for trade entry and doesnt run at all ... not anything in Ouput Window, no 'message' in control centre status area and nothing in LogTab ... I decided to make a custom indicator for the effort to allow all doubles in the BIP =1 ... thanks for the assist

Jon


Started this thread Reply With Quote




Last Updated on November 29, 2010


© 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