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)
I am currently trying to add an indicator to my trading system and i would like it to create some alerts.
The indicator i am currently trying to adjust is CCI_Average.
With the standard code this indicator allows for an audio and visual alert to pop up once the CCI value crosses the overbought or oversold area. I have already managed to adjust the code so now the alert pops up when the CCI value crosses both the overbought or oversold are AND the CCI average at the same time.
What i would like to get done now is that once the alert is triggered, the indicator also draws an up arrow for buy signals and a down arrow for sell signals.
I have found some guidelines online but they all seem to be outdated.
Here is the code i am currently working with:
Thanks in advance!
Can you help answer these questions from other members on NexusFi?
Thanks! This really helped me out!
I managed to get it working, the only problem now is that the arrow is plotted over the candle sticks instead of above it for a sell and below it for a buy. Once i got that fixed it will be finishes, thanks again!
you are welcome and I am glad to hear that.
Without seeing the code it's tricky to point you in the right direction, but you can use different plot locations or arrow directions based on the signal. This way one arrow could point up using a green color and be located under a bar, while the other arrow could point down using a red color and a location above the high.
The upward arrows are blue right now and the down arrows are red (not sure yet how i can change this).
I will also attach a screenshot so you can see what i meant by the arrows are plotted over the candles instead of above/below.
My coding experience is 0 so i really appreciate you pointing me in the right direction!
You might want to consider posting the code for the benefit of others in the futures.io community.
Regards,
ABCTG
You are right, here is the code! This is just the standard CCI_Average code that i have adjusted so i will only post the part that i have adjusted, the rest is just standard, apart from the settings.