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 Mestor, 03-10-2023, 01:50 AM
|
12 responses
307 views
0 likes
|
Last Post
by z.franck
Today, 04:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
32 responses
267 views
0 likes
|
Last Post
by f.saeidi
Yesterday, 06:49 AM
|
||
Started by Mestor, Today, 03:15 AM
|
0 responses
2 views
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
409 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
Comment