NexusFi: Find Your Edge


Home Menu

 





Working on automating The Holy Grail & Sharky's method


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one RBSailing with 5 posts (1 thanks)
    2. looks_two wolfsch with 4 posts (0 thanks)
    3. looks_3 BigDog with 3 posts (0 thanks)
    4. looks_4 MXASJ with 2 posts (0 thanks)
    1. trending_up 7,982 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 15 posts
    2. attach_file 0 attachments




 
Search this Thread

Working on automating The Holy Grail & Sharky's method

  #11 (permalink)
 
RBSailing's Avatar
 RBSailing 
Palm Beach Gardens
 
Experience: Intermediate
Platform: Ninja Trader
Posts: 21 since Jun 2009
Thanks Given: 5
Thanks Received: 6

I checked the code in the ColoredMA that I posted a link to in my last post. It colors that Line based on the slope alone. Most of the colored MA's posted in the downlaod section are actually checking the angle of the line. That way you can differentiate between slowly rising and steeply rising, which some feel gives you an idea of the momentum of the trend.

You have to add code in several places to accomplish this. If you are comfortable with coding you can down load one of the colored ma's in the download section and copy the code snippets to your own code.
Good luck

Follow me on Twitter Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Quant vue
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
77 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #12 (permalink)
 wolfsch 
waiblingen Germany
 
Experience: Intermediate
Platform: ninja, Meta 4
Broker: Mirus Zenfire
Trading: ES, forex
Posts: 49 since Jul 2009
Thanks Given: 7
Thanks Received: 3

Hi RBSailing, thanks , but the universal MA is just a MA with color depending on slope. I was looking for an indicator which gives the SLOPE of an MA! Do you have an idea where to go?
Regards Wolfsch

Reply With Quote
  #13 (permalink)
 
RBSailing's Avatar
 RBSailing 
Palm Beach Gardens
 
Experience: Intermediate
Platform: Ninja Trader
Posts: 21 since Jun 2009
Thanks Given: 5
Thanks Received: 6


Hi Wolfsch

The indicators that I have seen that paint the line according to the trend and "slope"
of the line calculate the angle of the line and then filter that by fixed angle values to determine the color of the line.
If you import anyone of those and open it in the editor window you should be able to copy the relevant code.
Let me know if you are having problems or need help.

Follow me on Twitter Reply With Quote
  #14 (permalink)
 wolfsch 
waiblingen Germany
 
Experience: Intermediate
Platform: ninja, Meta 4
Broker: Mirus Zenfire
Trading: ES, forex
Posts: 49 since Jul 2009
Thanks Given: 7
Thanks Received: 3

Thanks RBSailing, but I am unable to do something with a code . I am not a programmer!
So I really need help doing what you said would get the results I am ö
looking for. I would appreciate your help. my mail is [email protected]

Reply With Quote
  #15 (permalink)
 
RBSailing's Avatar
 RBSailing 
Palm Beach Gardens
 
Experience: Intermediate
Platform: Ninja Trader
Posts: 21 since Jun 2009
Thanks Given: 5
Thanks Received: 6

I have added the code to calculate the angle of the slope of the indicator to the TEMA in the NT indicators. I have posted the resulting indicator in the download section. Just look for TEMA With Slope.
You can call this indicator in your strategy and get the value of the slope for each bar.
The code would be

TEMASlope(Close,13,false).MASlope[0]

this will return the slope of the line at the current bar. The "13 is the period of the TEMA.

Follow me on Twitter Reply With Quote
Thanked by:
  #16 (permalink)
 wolfsch 
waiblingen Germany
 
Experience: Intermediate
Platform: ninja, Meta 4
Broker: Mirus Zenfire
Trading: ES, forex
Posts: 49 since Jul 2009
Thanks Given: 7
Thanks Received: 3

Thanks RBSailing for yor prompt help
Wolfsch

Reply With Quote




Last Updated on January 21, 2010


© 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