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 alifarahani, Today, 09:40 AM
|
6 responses
36 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
17 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
14 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
12 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
17 views
0 likes
|
Last Post Today, 02:41 PM |
Comment