Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Moving Average Cross overs
Collapse
X
-
Moving Average Cross overs
hi, how can i code multi ema cross over . i can do 2 line cross over but when i apply the same method to multiple lines it wont work. ex: ema 234567cross1012141618Tags: None
-
Hello hakanshuker,
Thank you for the post.
I went ahead and moved this into a new topic for your specific questions as the other post was very old.
When you say that you can do a 2 line crossover but when you apply the same method it wont work, can you provide a sample of what you are currently doing that does not work?
For multiple crossover conditions you can generally do something like the following:
Code:if(CrossAbove(EMA(12), EMA(20), 1) && CrossAbove(EMA(12), EMA(25), 1)) { }
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 07:16 AM
|
1 response
4 views
0 likes
|
Last Post
by ninza33
Today, 07:47 AM
|
||
Started by ellington, Today, 07:40 AM
|
0 responses
1 view
0 likes
|
Last Post
by ellington
Today, 07:40 AM
|
||
Started by Atticus20, Today, 07:27 AM
|
0 responses
3 views
0 likes
|
Last Post
by Atticus20
Today, 07:27 AM
|
||
Started by linkcou, Today, 07:01 AM
|
0 responses
7 views
0 likes
|
Last Post
by linkcou
Today, 07:01 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
65 views
0 likes
|
Last Post Today, 06:25 AM |
Comment