NexusFi: Find Your Edge


Home Menu

 





Indicator on Indicator .. what can I do?


Discussion in NinjaTrader

Updated
    1. trending_up 2,439 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?
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 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