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 5,982 views
    2. thumb_up 14 thanks given
    3. group 3 followers
    1. forum 18 posts
    2. attach_file 9 attachments




 
Search this Thread

Trying to find a MA with cross alert

  #11 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #12 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090



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

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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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


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:	167
Size:	190.8 KB
ID:	51229  
Reply With Quote
  #18 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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:	176
Size:	275.9 KB
ID:	51242  
Reply With Quote
Thanked by:
  #19 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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


© 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