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,185 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,060


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:	303
Size:	242.1 KB
ID:	51142  
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
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
23 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
  #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,060


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
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093



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
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

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,060


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,060


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:	234
Size:	163.4 KB
ID:	51220  
Reply With Quote
Thanked by:
  #17 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199


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:	226
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,060

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:	248
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,060


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