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)
{
// Condition set 1
if (CrossAbove(Close, CCI(14), 1))
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (CrossBelow(Close, CCI(14), 1))
{
EnterShort(DefaultQuantity, "");
}
}
This is to make a simple strategy to enter Long when CCI cross a certain value like +45 or vice versa for -45. I believe this code will enter Long when CCI crosses zero? sorry guys I am brand new to coding, so need some help.
Any help is appreciated
Can you help answer these questions from other members on NexusFi?
I gave pirce close crossabove and below CCI value,(unlike price close > EMA 20) etc, but in this case it is not price in the CCI panel. would you mind verify that for me
The script refet to price close: if the bar[0] crossabove the level 45 of your CCI than enter long.
Since I am using a cross strategy in "the battle of the bot" thread you can download it and use it as an example.
How about a fun challenge to those who believe they can create an automated strategy that is profitable? My intention is to start a discussion where algo traders can show off their strategies and learn something in the process.