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)
Hi,
I have this code:-
if (((Low[0] < Low[2]) && (Low[0] < Low[3])) || ((Low[1] < Low[2]) && (Low[1] < Low[3])))
{
DrawArrowUp("BP" + CurrentBar, true, 0, (Low[0] -(2*TickSize)), Color.Green);
}
And there are occasions where the above won't hold true. What I want to do then is lock-in the lower of Low[2] and Low[3] and compare it against future Lows. And when a future Low is lower than Low[2] or Low[3], to give instructions for a DrawArrowUp.
Can someone please help with the code? Thanks!
Can you help answer these questions from other members on NexusFi?
Here is the whole code. The relevant portion is the BuyPerfectionTest and ImprefectBuyTest.
If you look at the attached chart, the test kicks in upon the completion of the 9th count, where the 8th or the 9th must be lower than the 6th and the 7th count. Failing that, a low below the low of the 6th or 7th will suffice. An arrow up at the low is used to indicate that that low has been found.
Right now, after including the code you kindly provided, the arrow is still printing at the 9 (white circle) when it should print at the low formed in the yellow circle.
Hope that helps explain it. Let me know if it is not clear. Thanks again Cory!
a) should read "a low below the the lower of the 6th and 7th count.
b) yes, i want to keep testing until the second is true and to draw an arrowup at the particular point
c) how and which part of the code do you reset the double values to zero for the next comparison?