NexusFi: Find Your Edge


Home Menu

 





Trying to find a MA with cross alert


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 11 posts (11 thanks)
    2. looks_two trendisyourfriend with 3 posts (1 thanks)
    3. looks_3 cory with 2 posts (2 thanks)
    4. looks_4 Big Mike with 1 posts (0 thanks)
    1. trending_up 8,774 views
    2. thumb_up 14 thanks given
    3. group 3 followers
    1. forum 18 posts
    2. attach_file 9 attachments




 
Search this Thread
  #11 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059


trendisyourfriend View Post
forrestang,

Is it possible to define what to use for the price for each MA individually: close, typical, weighted, median etc.

Right now it is assumed the user wants to use the close.


forrestang View Post
I'll see if I can figure that out.

Probably like this:


Attached Thumbnails
Click image for larger version

Name:	Prime2011-10-06_161302.jpg
Views:	333
Size:	242.1 KB
ID:	51142  
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Trump Media to sell instant access to market-moving soci …
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #12 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059


forrestang View Post
Probably like this:

Ok, updated to V1.3 in the same location. The ability to select PriceType on EACH Moving Average is there now.

LINK


Reply With Quote
Thanked by:
  #13 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098



forrestang View Post
I'll see if I can figure that out.

Tips
1. Input represents the input data source of the indicator. If you implement an indicator where PriceTypeSupported is set to true, then when referencing the input data source value, you will want to reference Input[0] instead of Close[0]. This is because Input[0] will return the data value of the seleced PriceType.
NinjaTrader Version 7


Reply With Quote
Thanked by:
  #14 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,212

For the record...

Hi Forrestang,

Was wondering, your indicator is almost perfect but would be even more perfect if you could add the LLMA (Low Lag Moving Average) and the LinReg (inear Regression).
Thanks

- TIYF


Attached Files
Elite Membership required to download: @LinReg.cs
Elite Membership required to download: LLMA.cs
Reply With Quote
Thanked by:
  #15 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059


cory View Post
Tips
1. Input represents the input data source of the indicator. If you implement an indicator where PriceTypeSupported is set to true, then when referencing the input data source value, you will want to reference Input[0] instead of Close[0]. This is because Input[0] will return the data value of the seleced PriceType.
NinjaTrader Version 7

I think the problem with that, is what @trendisyourfriend was wanting was the ability to switch the price type of each of the MAs in the study independently.


Reply With Quote
  #16 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059


trendisyourfriend View Post
For the record...

Hi Forrestang,

Was wondering, your indicator is almost perfect but would be even more perfect if you could add the LLMA (Low Lag Moving Average) and the LinReg (inear Regression).
Thanks

- TIYF

v1.4 is uploaded at same location:
LINK


Attached Thumbnails
Click image for larger version

Name:	Prime2011-10-07_111931.jpg
Views:	250
Size:	163.4 KB
ID:	51220  
Reply With Quote
Thanked by:
  #17 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,212


forrestang View Post
v1.4 is uploaded at same location:
LINK

Thanks for the update,

However, when i change the value in field 6.) Slow MA Period for the LinReg or LLMA it does not work as it should. See my chart.


Attached Thumbnails
Click image for larger version

Name:	wrong_MACross.jpg
Views:	243
Size:	190.8 KB
ID:	51229  
Reply With Quote
  #18 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059

My bad, was inputting the 'Fast' period into the Slow Period's box.

LINK


Attached Thumbnails
Click image for larger version

Name:	Prime2011-10-07_124313.jpg
Views:	265
Size:	275.9 KB
ID:	51242  
Reply With Quote
Thanked by:
  #19 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059


trendisyourfriend View Post
Thanks for the update,

However, when i change the value in field 6.) Slow MA Period for the LinReg or LLMA it does not work as it should. See my chart.

Just curious to know if anyone that has downloaded, if everything is working ok? Alerts, arrows, all the MAs working etc....?


Reply With Quote
Thanked by:




Last Updated on October 8, 2011


© 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