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 all. I've recently completed my first usable custom indicator with NT7. I now want to connect this to a strategy, mostly so I can easily back test the success rate of the indicator. The indicator currently draws a vertical green line to show when buy criteria are met, and a vertical red line when sell criteria are met. Using the following code:
When I attempt to implement this into a strategy it doesn't notice the vertical lines exist. Based on experience what is the best way to augment the code so that it will also send a usable buy signal to a strategy?
Can you help answer these questions from other members on NexusFi?
One way is to set a public boolean in your indicator at the time it draws the vertical line which your strategy would then use to know when to place the appropriate buy or sell order.
Be Patient and Trade Smart
The following user says Thank You to trendwaves for this post:
I use the same thing as trendwaves except I use an int, and have it set to 0 when it's neutral, then when it gets a buy I set it to a 1 and when it gets a sell signal I set it to a -1.
The following user says Thank You to Maza for this post: