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 have put your code into a new indicator, but am getting an error code on compiling. Sorry for my noobness.
Lines 44 - 49 are getting the error "The type or namespace name "Control" could not be found (are you missing a using directive or an assembely reference?).
Thats in System.Windows.Forms namespace. So in the very top of file there are some "using declarations" (you might need to press the "+" to expand them.)
after the last using declaration add this:
using System.Windows.Forms;
I have exported my indicator and attached to this post too - so if you prefer you can just download and import into ninja...
It´s good to know there are people who know what they are doing. Unfortunately, at NinjaTrader their employee gurus said it couldn´t be done. I´ve no surprise that someone from futures.io (formerly BMT) could do it.
just a technical question. It appears the code only operates once but the variable CurrentBar is checked on each onbarupdate. Can the code be executed in OnStartUp instead? (as in I'm too lazy to try and thought I could just ask...)
Regards
Be yourself; everyone else is already taken. Oscar Wilde
If(init)
{execute code
set init to false
end code}
Then it only runs once. There are two small bugs in this code. If you refresh, the buttons keep going down and if you remove the code the buttons don't revert back to their original place. I have tried to sort this out but it's beyond my ken at the moment.
If(init)
{execute code
set init to false
end code}
Then it only runs once. There are two small bugs in this code. If you refresh, the buttons keep going down and if you remove the code the buttons don't revert back to their original place. I have tried to sort this out but it's beyond my ken at the moment.
He is using CurrentBar ==0 as the bool check. I thought that moving it to onstart-up just eliminates the bool check.
Be yourself; everyone else is already taken. Oscar Wilde