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.
Is there a way to write some code that would apply to the particular candle/bar and not the whole chart please? I wrote a simple code that draws arrows when the Stoch. cross abv/below... Is there a way to analyze and write some conditions that would apply to only cross candle/bar please? E.g. if cross abv/blw true then the program draws the arrow. Then I'd like to be able to write a code that would apply to only cross candle/bar and not to the candles before or after this particular cross. Is this possible?
Thank you very much.
Can you help answer these questions from other members on NexusFi?
Hi,
First, thank you very much for your reply.
What I'm trying to find out if there is a way to get the particular candle/bar and write some conditions that would apply only to this candle/bar and not to the whole chart. Example: if I get a cross abv/blw then there is an arrow drawn on the chart. I'm trying to write a code and to filter out the signals by the strength, which is impossible-there are no perfect indicator or such that would work... I write smth. lk if 30 sma is down then draw red arrow dn, else yellow... Some of those red arrows are perfect. But I'm still get signals that I would want to filter out and not to display at all. The 30 sma could still be down but there is a trend reversal/counter trend etc... and this signal would be very low prob. one. Writing if... else... would apply to the whole chart, to all candles, and most of good/strong signals would be removed in this case. I'm trying to find out if there is a way to get this particular candle at each cross abv/blw and write some condition that would apply only to this candle, not the ones before or after this one? Then repeat this at the next cross...
Thank you very much.