NexusFi: Find Your Edge


Home Menu

 





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


Discussion in Traders Hideout

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




 
Search this Thread
  #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?
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Bond Market Rout -- Worst Week Since Russias 2022 Invasi …
Treasury Notes and Bonds
MyForexFunds Begins Returning Frozen Funds After CFTC Ca …
Funded Trading Evaluation Firms
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
25 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 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


© 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