Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hello,
I'm new to C#-Ninja programming and cannot figure out the problem. Is there a way to display only one arrow per cross please? Please see attached screen shot. Is there error in the code(attached)?
I'd appreciate if anyone would be willing to help. This should be simple problem for any experienced programmer. And I hope it is not too much to ask to share your knowledge resolving this simple matter.
Thank you very much.
Can you help answer these questions from other members on NexusFi?
Thank you. I tried flag but it does not work. I do not really know how to do this correctly. If you or anyone can share a small example then please do so.
I tried the following:
if (K[0] <= 80 && K[0] >= 70)
{
if (CrossBelow(Stochastics(PeriodD, periodK, smooth).K, 80, 1))
RedFlag = true;
DrawArrows(2, 9); // Red arrow
}
else if (K[0] <= 70 && K[0] >= 60)
{
if (CrossBelow(Stochastics(PeriodD, periodK, smooth).K, 70, 1))
Try to put some print (with Print() ) some values before each DrawArrows(), it will help you to find what's wrong in your logic.
With only a small part of the indicator, it's hard for us to find what could be wrong.
Try to put some print (with Print() ) some values before each DrawArrows(), it will help you to find what's wrong in your logic.
With only a small part of the indicator, it's hard for us to find what could be wrong.
Hello Sam,
First, I truly appreciate your help.
If you have time and will please see attached compiled .cs file. I'm using 6E 300 volume chart for my testing. There are many double arrows with the approach you have suggested. It is impossible for me to figure out what is wrong and how to fix it. If you can please help. If not then I still truly thank you very much.
Elite Membership required to download: MyStochArrow.cs
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...