Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Macd lines so far apart
Collapse
X
-
Hello Clevchin,
Thank you for your post.
Yes, this is possible using manual coding to calculate the distance between two lines.
Please let us know if you have any further questions.Code:if(Math.Abs((MACD1[0]-MACD2[0])/Bars.Instrument.MasterInstrument.TickSize) > SomeTickDistance) { //do something }
-
Hello Clevchin,
Thank you for your response.
You may be able to accomplish this in the Builder by assigning the MACD to a custom series, then you can use the Offset to add or subtract ticks (amount of distance you are measuring), then compare this value to be greater than the other MACD.
Custom Series - https://ninjatrader.com/support/helpGuides/nt8/index.html?builder_screens.htm#UnderstandingTheAdd itrionalDataScreen
Please let us know if you have any further questions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
48 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment