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
Strategy builder ema conditions and actions
Collapse
X
-
Strategy builder ema conditions and actions
I'm just trying to set up an exit strategy, in the conditions and actions, where I go long and if the close price goes below the 14 ema then I exit my position. I thought I put it in right but I don't know how to properly assign itTags: None
-
Hello mandela1528,
This would be sending an exit long sell order on every new bar where the market price falls below the EMA 14 of the previous bar (1 bar ago).
The strategy so far does not have an entry. An entry to take the strategy to a long position would be necessary to exit a long position.
Note, the strategy will not see any manually submitted positions or orders. The strategy is only able to see orders submitted by the strategy.
(It would require unlocking the script and using the Addon approach to detect manually submitted orders and/or positions)
The exit signal name is LongEntry. I think you are wanting to have this be the From entry signal of the entry and not the signal name of the exit.
Chelsea B.NinjaTrader Customer Service
- Likes 1
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 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
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment