Moving averages - futures io
futures io futures trading



Moving averages


Discussion in Traders Hideout

Updated by petemm
      Top Posters
    1. looks_one yiman with 5 posts (0 thanks)
    2. looks_two cunparis with 2 posts (0 thanks)
    3. looks_3 David with 2 posts (2 thanks)
    4. looks_4 petemm with 1 posts (0 thanks)
    1. trending_up 4,357 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 9 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Moving averages

(login for full post details)
  #1 (permalink)
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
 
Posts: 258 since Jul 2009
Thanks: 110 given, 152 received

Does anyone know if there is anything anywhere that will measure the difference betwwen two moving averages . then give an indication when its above a value say >8 tics/pips or whatever

Reply With Quote

Can you help answer these questions
from other members on futures io?
NinjaTrader Applications Rejected
Brokers
Trade Summary Error
MultiCharts
Degiro Negative Balance Advice
Traders Hideout
3x Fangdango
Traders Hideout
Thinkscript for scanning in Option Hacker
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
VWAP for stock index futures trading?
39 thanks
Coronavirus COVID-19
19 thanks
Price Action Kewltech Style
11 thanks
Battlestations: Show us your trading desks!
9 thanks
The CL Crude-analysis Thread
9 thanks
 
(login for full post details)
  #2 (permalink)
UK
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
 
Posts: 88 since Jun 2009
Thanks: 35 given, 84 received

The standard MACD indicator measures the difference between two moving averages.

So MACD(12,26,9) shows the difference between the 12 MA and the 26 MA

The histogram that is often plotted as part of the MAC indicator represents the actual difference between the two averages, which is why when the averages cross, the difference is 0.

David

Reply With Quote
The following user says Thank You to David for this post:
 
(login for full post details)
  #3 (permalink)
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
 
cunparis's Avatar
 
Posts: 2,565 since Jun 2009
Thanks: 1,162 given, 2,077 received



David View Post
The standard MACD indicator measures the difference between two moving averages.

So MACD(12,26,9) shows the difference between the 12 MA and the 26 MA

The histogram that is often plotted as part of the MAC indicator represents the actual difference between the two averages, which is why when the averages cross, the difference is 0.

David

Just a slight correction, the MACD uses Exponential moving averages.

I use a difference between two MA's a lot in my custom indicators. I just write up my own and take the difference. In tradestation it looks like

 
Code
Value1 = Average(C, 3) - Average(C, 10);

Follow me on Twitter Reply With Quote
 
(login for full post details)
  #4 (permalink)
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
 
Posts: 258 since Jul 2009
Thanks: 110 given, 152 received

Thanks for the response,

I have 2 exponential MA , EMA 10 and 26 what im trying to do is get ninja trader to give me a warning when the seperation between the two reaches 8 on the most recent closed candle. This will be a trigger for a possible entry .

Reply With Quote
 
(login for full post details)
  #5 (permalink)
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
 
Posts: 258 since Jul 2009
Thanks: 110 given, 152 received

does this look ok
value= ExponentialAverage[10](close)-ExponentialAverage[26](close)
RETURN value

Its my first go at programing

Reply With Quote
 
(login for full post details)
  #6 (permalink)
UK
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
 
Posts: 88 since Jun 2009
Thanks: 35 given, 84 received

No, it should be this:

double value = EMA(Close,10)[0] - EMA(Close,26)[0];

David

Reply With Quote
The following user says Thank You to David for this post:
 
(login for full post details)
  #7 (permalink)
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
 
Posts: 258 since Jul 2009
Thanks: 110 given, 152 received

Thanks David

Reply With Quote
 
(login for full post details)
  #8 (permalink)
London
 
Experience: Intermediate
Platform: ninjatrader, multicharts, MT4
Broker: IB, PFG Best
Trading: 6E, EMD, TF
 
Posts: 258 since Jul 2009
Thanks: 110 given, 152 received

I havent got a clue how to use ninjascript and i keep getting errors when i tried to use the code

Reply With Quote
 
(login for full post details)
  #9 (permalink)
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
 
cunparis's Avatar
 
Posts: 2,565 since Jun 2009
Thanks: 1,162 given, 2,077 received


yiman View Post
I havent got a clue how to use ninjascript and i keep getting errors when i tried to use the code

Not to be harsh but it's not possible for you to develop with Ninjatrader without knowing C# and their API (Ninjascript is just their API which is built with C#). There are a number of C# books to teach you the basics. If you want to do something really simple you can use the wizard. If you think C# is too complicated for you then you can take a look at EasyLanguage. EL is 1000x simpler than C#. I'm a professional software developer and I much prefer EL for the simple stuff (see my EL example posted above).

If you've never done any programming before you should count on several months to learn the basics of C#. It's not easy.

Finally, if programming is not your forté then I would also suggest the possibility that you don't program at all. Choose your indicators carefully (fewer is better, price & volume are 90% of what you need) and then do your backtesting by hand. I use an indicator on multiple timeframes and I couldn't test it in an automated strategy (limitation of how it was made with Tradestation). So I backtested it by hand. Took me weeks. But I learned a lot so it was well worth it and I now trade this strategy every day.

Many of the strategies I see in this forum are based on having multiple indicators and you enter a trade when the colors all line up. I'm still not convinced that this is possible but I'm trying them out to see if I can make them work but so far I'm not successful.

Follow me on Twitter Reply With Quote
 
(login for full post details)
  #10 (permalink)
Prague, CZ
 
 
Posts: 10 since Dec 2009
Thanks: 1 given, 2 received


Yes, learning NINJA API is difficult, my approach to any new language and API is take some examples and simply rewrite it. If is is indicator and I need new definition, I download other indicator, copypaste entire code, change name and change only one line with computation of the indicator.

To make it more simple, Try to download some complex indicator that uses more advanced techniques you need to use in your indicator (e.g. if you need to look values in history, simply look at indicator that uses these values - not to reinvent the wheel).

Reply With Quote


futures io Trading Community Traders Hideout > Moving averages


January 28, 2010


Upcoming Webinars and Events
 

An Afternoon With futures io member TropicalTrader

Elite only
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts