Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Difference From Swing High and Low
Collapse
X
-
Difference From Swing High and Low
I have a strategy that I would like to have exclude trades when the difference between the swing high and swing low is reduced to a particular level. I thought I could simply use swing high > swing low offset +x ticks as a condition, but this yields inconsistent results. I assume this is because the swing levels aren't being expressed as an integer? Any ideas how this could be done in strategy builder. I'm not a programmer so I'd like to avoid ninjascript if possible. Thank you for your help.Tags: None
-
Hi Matt, thanks for posting.
If you need to get the mathematical difference of swing by subtracting the two values then the script will need to be unlocked. To see the results of a command in the builder, make a new set with no conditions and use the Misc>Print method to print out data. For example, you can print out the value of what you are using as a condition to see why the results are not consistent:
Chris L.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by spottysallrite, Today, 11:31 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 11:31 AM | ||
Started by johnMoss, 03-04-2024, 01:53 PM
|
2 responses
31 views
0 likes
|
Last Post
by Overnhou
Today, 11:21 AM
|
||
Started by Padan, Today, 02:02 AM
|
5 responses
17 views
0 likes
|
Last Post Today, 11:14 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
28 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
||
Started by kramnor2001, Yesterday, 02:30 PM
|
4 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 10:44 AM
|
Comment