EMA spread - how and where to start - futures io
futures io futures trading



EMA spread - how and where to start


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

EMA spread - how and where to start

(login for full post details)
  #1 (permalink)
Amsterdam
 
Experience: Master
Platform: Own
Trading: Currency
 
Posts: 9 since Jul 2017
Thanks: 4 given, 1 received

Hi all,

I was working for a long time on TradingView but prefer the features NinjaTrader is giving. Now Im trying to start to add a simple EMA spread script as an indicator but lost already

What Im trying to do is to get a similar script as I use in Tradingview like this.

 
Code
sell_value = input(2)
buy_value = input(-2)
ema1_speed_fast = input(50)
ema1_speed_slow = input(50)

ema2_speed_fast = input(13)
ema2_speed_slow = input(34)


fastema1=ema(close,ema1_speed_fast)
slowema1=ema(close,ema1_speed_slow)
e=(fastema1/slowema1-1)*100

fastema2=ema(close,ema2_speed_fast)
slowema2=ema(close,ema2_speed_slow)
f=(fastema2/slowema2-1)*100

//plot(0, color=#404040, title="Zero value")
plot(buy_value, color=green, linewidth=2, title="Buy value")
plot(sell_value, color=red, linewidth=2, title="Sell value")
plot(e, color=red, linewidth=2, title="EMA spread 1")
plot(f, color=blue, linewidth=2, title="EMA spread 2")
I tried the code editor but the only result I get every time is errors so I have to remove the script again and get frustrated... After a day of work I hope someone can help me a bit in the good direction how to start with this simple code, maybe have a good similar example?

Best regards,

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Short Interest Ratio indicator?
ThinkOrSwim
EL/PL for FOPs?
EasyLanguage Programming
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
Neurological explanations for trading Success
Psychology and Money Management
ZigZag with Depth and Backstep
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Big Mike in Ecuador
30 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #2 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 received

it will help if you include a picture of what it looks like. dif between MAs is how MACD calculated so you can open NT MACD script, make a copy then modify it any way you want.

Reply With Quote
The following 2 users say Thank You to cory for this post:
 
(login for full post details)
  #3 (permalink)
Amsterdam
 
Experience: Master
Platform: Own
Trading: Currency
 
Posts: 9 since Jul 2017
Thanks: 4 given, 1 received



cory View Post
it will help if you include a picture of what it looks like. dif between MAs is how MACD calculated so you can open NT MACD script, make a copy then modify it any way you want.

Nice idea. Thanks. Let me start on that.

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
Legendary Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,194 since Jun 2010
Thanks: 290 given, 876 received

LINK

Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > EMA spread - how and where to start


Last Updated on January 13, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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