NexusFi: Find Your Edge


Home Menu

 





Graph is Falling but Rising() is True?


Discussion in NinjaTrader

Updated
    1. trending_up 2,135 views
    2. thumb_up 3 thanks given
    3. group 0 followers
    1. forum 6 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 402 since Jun 2011
Thanks Given: 618
Thanks Received: 196

I'm coding a strategy and running into these...

I have an "&& Rising(DM(5).DiPlus)" condition in my if statement...

when I Zoom-In at the plotted graph for DM(5).DiPlus it is clearly falling starting from 1 bar back, but apparently the Rising(DM(5).DiPlus) condition is true??

I'm also checking for a Rising(SMA(Typical, 1)) and the Zoomed-In graph is also falling from 1 bar back, but this Rising() condition is also true?

why is this?

I have CalculateOnBarClosed = true.

Very confused. Any help? Thanks!


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NinjaTrader Parent Payward Acquires Bitnomial for $550M …
Platforms and Indicators
Asia Equities Crash Overnight -- Nikkei -5.2%, KOSPI -6. …
Traders Hideout
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
Orban Crashes to 21pct on Record Turnout -- McIlroy Drop …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #3 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060


Do you have a picture?


Reply With Quote
  #4 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 402 since Jun 2011
Thanks Given: 618
Thanks Received: 196

[IMG]http://img818.imageshack.us/img818/7492/dmsmachart.jpg[/IMG]

Uploaded with ImageShack.us


Started this thread Reply With Quote
  #5 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060

The DiPlus of the DM is the green line in the bottom oscillator panel isn't it? If so, it is rising during the time of that signal.


Reply With Quote
  #6 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 402 since Jun 2011
Thanks Given: 618
Thanks Received: 196

My understanding is the green line is the ADX and the DiPlus is the blue line above. The SMA is the purple line above the DM indicator.


Started this thread Reply With Quote
  #7 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,060


forrestang View Post
The DiPlus of the DM is the green line in the bottom oscillator panel isn't it? If so, it is rising during the time of that signal.

And actually, since you said you had CalonBarClose() == true, looking at that pic again, 3 out of 4 of those lines on your chart would evaluate Rising() == true.

When CalconBarClose is true, that means when you see the actual signal for entry on your chart, it is the calculation for the bar BEFORE the one where the entry appeared.

You'll notice if you run your strategy live, that when the signal appears, it occurs at the very beginning of the bar, as it opens. So on your chart, when that 02:33 bar happened, you look at the time of 02:31, and all but the one at the bottom is rising.


Attached Thumbnails
Click image for larger version

Name:	Prime2011-11-04_110423.jpg
Views:	241
Size:	37.6 KB
ID:	54105  
Reply With Quote
Thanked by:




Last Updated on November 4, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts