NexusFi: Find Your Edge


Home Menu

 





Cross Abv/Blw - Double arrow question


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Al2010 with 8 posts (0 thanks)
    2. looks_two gulabv with 4 posts (4 thanks)
    3. looks_3 sam028 with 2 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 5,568 views
    2. thumb_up 7 thanks given
    3. group 4 followers
    1. forum 15 posts
    2. attach_file 8 attachments




 
Search this Thread

Cross Abv/Blw - Double arrow question

  #11 (permalink)
Al2010
 
Posts: 50 since Oct 2010
Thanks Given: 36
Thanks Received: 10


gulabv View Post
Do you really need CalculateOnBarClose = false ?

The way this indicator is coded currently you could get multiple draw object painted on the chart for each 300 volume bar as the COBC = false setting analyzes your code on each incoming tick. I would think you want to set COBC = true so that your criteria is checked each time a bar completes. Not sure what you are trying to do so I can only speculate this might alleviate the problems you are seeing...

Hope this helps,
gulabv


Thank you for your advice. I forgot to reset COBC = true. This is how it ment to be COBC=true. But setting Calc on Bar Close = true does not help. All I'm trying to do is simply get every cross below/abv. if there is a lower high and cross below 80-70 false then I still would like to get an arrow at cross below 60-50...
My test case is Euro 300 volume chart-Jan-06-11 @13:10 (1:10 p.m) US Eastern time. There is a lower high on price and cross below 80-75 does not work. But cross below 60 will work. There is another case - 11/26-10 @ 2:23 a.m. where cross below 80 does not work but cross below 75 will work...
If you know any other way to complete this I'd appreciate if you share.
Thank you very much.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #12 (permalink)
 
gulabv's Avatar
 gulabv 
Dallas, TX
 
Experience: Beginner
Platform: Ninjatrader
Broker: Zen-Fire
Trading: ZN, 6E
Posts: 286 since May 2010
Thanks Given: 161
Thanks Received: 169

Al,

I have added some conditional logic to display only one arrow per direction (short/long).

Attached Files
Elite Membership required to download: MyStochArrow.cs
Reply With Quote
Thanked by:
  #13 (permalink)
Al2010
 
Posts: 50 since Oct 2010
Thanks Given: 36
Thanks Received: 10



gulabv View Post
Al,

I have added some conditional logic to display only one arrow per direction (short/long).


Thank you very much! It seems to work finally. I need to test it more to be sure.
There is still another problem-the program is missing a lot of good crosses. The whole idea of using multiple if's... was about to get the arrow at every tradeable cross such as if there is lower high and cross blw 75-80% false then go deeper and look for deeper cross.
I do not know why but I see that Stoh.K clearly crossing 80% or below at many places but there is no arrow...
Thank you very much again. I truly appreciate your help!

Reply With Quote
  #14 (permalink)
 
gulabv's Avatar
 gulabv 
Dallas, TX
 
Experience: Beginner
Platform: Ninjatrader
Broker: Zen-Fire
Trading: ZN, 6E
Posts: 286 since May 2010
Thanks Given: 161
Thanks Received: 169

I didn't really spend any time trying to understand the logic behind the code just added the flag to eliminate duplicate arros.
If I get some time over the weekend I will try to understand what you wrote and try to fix the indicator.
Always interesting to see how other futures.io (formerly BMT) members trade.
Thanks for sharing.

gulabv

Reply With Quote
Thanked by:
  #15 (permalink)
Al2010
 
Posts: 50 since Oct 2010
Thanks Given: 36
Thanks Received: 10


gulabv View Post
I didn't really spend any time trying to understand the logic behind the code just added the flag to eliminate duplicate arros.
If I get some time over the weekend I will try to understand what you wrote and try to fix the indicator.
Always interesting to see how other futures.io (formerly BMT) members trade.
Thanks for sharing.

gulabv


You are very kind, thank you.
Please see attached screen shots with missing arrows followed by some lower high examples.
The whole idea is based on TopDogTrading methodology, which I think is the best and most affordable etc...
Thank you very much.

Attached Thumbnails
Click image for larger version

Name:	MissedCrosses.jpg
Views:	202
Size:	281.6 KB
ID:	28009   Click image for larger version

Name:	LowerHighExamples.jpg
Views:	187
Size:	253.7 KB
ID:	28010   Click image for larger version

Name:	MajorCross_NoArrow.jpg
Views:	181
Size:	268.1 KB
ID:	28015  
Reply With Quote
  #16 (permalink)
 
gulabv's Avatar
 gulabv 
Dallas, TX
 
Experience: Beginner
Platform: Ninjatrader
Broker: Zen-Fire
Trading: ZN, 6E
Posts: 286 since May 2010
Thanks Given: 161
Thanks Received: 169


Al2010 View Post
missing arrows followed by some lower high examples.

Must have to do with your checking the value of previous bar (K[1]) in addition to checking for the cross below the specific K value of the current bar. Check the values of K[1] for the missing arrows and see if the condition fails hence no arrow painted.

Reply With Quote
Thanked by:




Last Updated on January 9, 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