NexusFi: Find Your Edge


Home Menu

 





Indicator For Area Between Two Moving Averages


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one websouth with 3 posts (4 thanks)
    2. looks_two max-td with 2 posts (0 thanks)
    3. looks_3 roonius with 2 posts (1 thanks)
    4. looks_4 RJay with 2 posts (0 thanks)
      Best Posters
    1. looks_one websouth with 1.3 thanks per post
    2. looks_two mahlonhersh with 1 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 roonius with 0.5 thanks per post
    1. trending_up 13,163 views
    2. thumb_up 8 thanks given
    3. group 8 followers
    1. forum 14 posts
    2. attach_file 5 attachments




 
Search this Thread

Indicator For Area Between Two Moving Averages

  #1 (permalink)
 adrian 
Houston, TX
 
Experience: Intermediate
Platform: Ninjatrader
Broker: MBT
Trading: EUR/USD
Posts: 88 since Jun 2009
Thanks Given: 169
Thanks Received: 71

Anyone know where I can find an nt indicator that shades the area between two moving averages?

Thanks,
Adrian

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,469 since Jun 2009
Thanks Given: 33,246
Thanks Received: 101,669

You can look at an indicator I wrote some time ago called VMA Zones to get you a code sample. It shades (drawregion) based on a moving average.



Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
roonius's Avatar
 roonius   is a Vendor
 
Posts: 131 since Jun 2009
Thanks Given: 20
Thanks Received: 295



adrian View Post
Anyone know where I can find an nt indicator that shades the area between two moving averages?

Thanks,
Adrian


Or here:
TradingStudies.com - SlingShot

Reply With Quote
Thanked by:
  #4 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hi roonius,
any ideas for this problem :

when i import your SlingShot-zip i get an error -- remove your bad scripts -- but i have no bad errors-scripts in my ninja i can open + compile any scriopts -- there are no errors left.

then, when i try it with the pure SlingShot.cs-file i get this error : global namespace>' already contains a definition for 'maType'.

Thanks

max-td
Reply With Quote
  #5 (permalink)
 
roonius's Avatar
 roonius   is a Vendor
 
Posts: 131 since Jun 2009
Thanks Given: 20
Thanks Received: 295


max-td View Post
hi roonius,
any ideas for this problem :

when i import your SlingShot-zip i get an error -- remove your bad scripts -- but i have no bad errors-scripts in my ninja i can open + compile any scriopts -- there are no errors left.

then, when i try it with the pure SlingShot.cs-file i get this error : global namespace>' already contains a definition for 'maType'.

Thanks

Here is the newer version - will allow to select inputs for MAs

Attached Files
Elite Membership required to download: SlingShot.zip
Reply With Quote
  #6 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

Thanks for that!

max-td
Reply With Quote
  #7 (permalink)
 mahlonhersh 
Arizona
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 155 since Jun 2009
Thanks Given: 709
Thanks Received: 176

Roonius,

How do I add the T3Average to your slingshot indicator? I tried just to follow your format, but I think the problem is that the T3Average actually has 2 inputs - overshoot and period. I would be fine to have the overshoot a constant at .7 and be able to change the period.


case maType.VWMA:
f = VWMA(Input, FastAverage)[
0];
break;
case maType.T3Average:
f = T3Average(Input, FastAverage)[
0];
break;
default:
f = HMA(Input, FastAverage)[
0];
break;
}

Thanks for your consideration,

Mahlon

Reply With Quote
  #8 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


mahlonhersh View Post
Roonius,

How do I add the T3Average to your slingshot indicator? I tried just to follow your format, but I think the problem is that the T3Average actually has 2 inputs - overshoot and period. I would be fine to have the overshoot a constant at .7 and be able to change the period.


case maType.VWMA:
f = VWMA(Input, FastAverage)[
0];
break;
case maType.T3Average:
f = T3Average(Input, FastAverage)[
0];
break;
default:
f = HMA(Input, FastAverage)[
0];
break;
}

Thanks for your consideration,

Mahlon


Mahlon,

Try this,

case maType.T3Average:
f = T3Average(Input, .7, FastAverage)[
0];
break;

RJay

Reply With Quote
  #9 (permalink)
 mahlonhersh 
Arizona
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 155 since Jun 2009
Thanks Given: 709
Thanks Received: 176

RJay,

Thanks for your help. Your suggestion did allow my changes to compile.

...but it's not quite right.

Here is the indicator file and a screenshot:

The CYAN line is a 40 period T3Average, the BLUE line is a 120 period T3Average. I want to color the area between them. The skinny RED line is the T3. It kind of works, but there is a "jigger" in the middle.

This is way above me at this point!

Mahlon

Attached Thumbnails
Click image for larger version

Name:	ES 09-09  8_21_2009 (377 Tick).jpg
Views:	735
Size:	157.2 KB
ID:	1367  
Attached Files
Elite Membership required to download: MySlingShot.zip
Reply With Quote
Thanked by:
  #10 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


Mahlon,

I usually use code something like this from Big Mike's VMAZone indicator.

You may need to define two DrawRegions for when the MA's cross.

Upper.Set(VMA(High, Length, Volatility)[0]);
Lower.Set(VMA(Low, Length, Volatility)[
0]);


DrawRegion("Region", CurrentBar, 0, Upper, Lower, Color.Empty, Color.Gray, Opacity);


RJay

Reply With Quote




Last Updated on October 6, 2009


© 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