NexusFi: Find Your Edge


Home Menu

 





Graph is Falling but Rising() is True?


Discussion in NinjaTrader

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




 
Search this Thread

Graph is Falling but Rising() is True?

  #1 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 403 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?
Quant vue
Trading Reviews and Vendors
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
 
  #3 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


Do you have a picture?

Reply With Quote
  #4 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 403 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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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: 403 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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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:	162
Size:	37.6 KB
ID:	54105  
Reply With Quote
Thanked by:




Last Updated on November 4, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts