NexusFi: Find Your Edge


Home Menu

 





compute ema10 1min 5min from intraday 1sec - need help


Discussion in Traders Hideout

Updated
    1. trending_up 2,753 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

compute ema10 1min 5min from intraday 1sec - need help

  #1 (permalink)
slovakfreelancer
Vienna Austria
 
Posts: 2 since Aug 2013
Thanks Given: 0
Thanks Received: 0

Hi! I am creating own trading system. I have classic formula to compute ema (exponencial moving average) using last ema value if exists else use SMA (simple moving average) value. When ema10, ema20 - the number 10, 20 define value for multiplier.

i want create this strategy using c++:

If stock 5min 20 ema crosses above the 5min 50 ema....and if the call option 1min 10ema crosses the 1min 20ema....place option in alert window

I am getting intraday record for my stock/option every 1 second in cycle (or in another period when i need). I need to know how to compute for example 1min or 5min ema10 from my input data.

[Q1] if 1min ema10..than i need:
A) compute ema10 1 time per every 1 minute ? (using input to new ema value before 1min)
B) compute it in every iteration when data come (i get data every 1 sec) and then i need to store computed value 1 time per minute?

[Q2]
when starting to compute 1minute ema10 i need to compute simple moving average SMA from first x values[maybe10] and use SMA as first ema input. From this i conclude: i will get first ema10 1min after 10 x 1 minutes = 10minutes? I am creating short term trader and i think this is too long init time for ema10 1min. Is this correct computing process?

Thanks for helping me

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks Given: 108
Thanks Received: 188


Why not just use ema600 as the ema10 of the 1 min?

Regards,
Neil.

Reply With Quote
  #4 (permalink)
slovakfreelancer
Vienna Austria
 
Posts: 2 since Aug 2013
Thanks Given: 0
Thanks Received: 0


NW27 View Post
Why not just use ema600 as the ema10 of the 1 min?

Regards,
Neil.


i want create this strategy using c++:

1. If stock 5min 20 ema crosses above the 5min 50 ema....and if the call option 1min 10ema crosses the 1min 20ema....place option in alert window

i read intraday data about stock and option every 1 sec... i need to know how to compute 1min or 5min ema from my input data.

if 1min ema..than i need to compute it 1 time per every minute ? or i need to compute it in every iteration when data come (every 1 sec) and then store this value 1 time per minute?

Reply With Quote
  #5 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks Given: 108
Thanks Received: 188

My reply still stands, ema600. Ie ema10 on a 1sec chart * 60 seconds.

Regards,
Neil.

Reply With Quote




Last Updated on August 11, 2013


© 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