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
Negative offset
Collapse
X
-
Negative offset
As discussed in strategy class on weekend, I want to write a negative offset (like a lower Bollinger band but exponential moving average). I wrote this successfully for the upper average as Close[0]==[EMA(10][0]*[1+.75] but for the lower it must be same but the +.75 becomes -.75. I can’t get this to work in the NT strategy editor as it always starts with a positive value. I would appreciate any ideas on the best way to do this.Tags: None
-
In Metastock code I can plot this as "
C>(Mov(C,10,E)+(.75*(Std(C,8))" The reason I do not use the NT Bollinger is that it only plots as a simple MA and is not adjustable to EMA or whatever. The longside of this plots well using the offest tool as in my orginal post. However, it always defaults to the long side, and does not anticipate a negative offest which is the equivalent of a band below the market.
Comment
-
So we are on the same page -
When you say "plotting" you are referring to the EMA on the right side of the condition builder, correct?
If yes, its plotting the EMA(10) *without* the offset. Offsets are not used to determine plotting but just used to create the condition.RayNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
Comment