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
200 sma to filter out long and short entries.
Collapse
X
-
200 sma to filter out long and short entries.
I have very simple moving average entry and exit strategy. I would like to add a extra filter of only taking longs above and shorts below the 200 sma. so the first condition has to be met then follow with the entire signal. much appreciated your help.
Tags: None
-
Hello geo123,
Thank you for your post.
Is this a strategy built in the Strategy Builder or are you working with an unlocked strategy in the NinjaScript Editor? Depending on how you are developing the strategy, I'd be glad to provide you with some examples that could help you set up your conditions the way that you have described.
I look forward to your reply.Emily C.NinjaTrader Customer Service
-
Hello geo123,
Thank you for your reply.
The Strategy Builder allows you to set conditions that make indicator to value comparisons, as demonstrated here:
You could choose the EMA on the left and then on the right-hand side you could select Misc > Numeric value and set that to 200. You would need separate sets for long and short; one would check if the EMA is greater than 200, and the action would be to submit the short entry and the other would check if the EMA is less than 200 and have the action to submit the long entry.
Please let me know if I may be of further assistance.Emily C.NinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ageeholdings, Today, 07:43 AM
|
0 responses
7 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment