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 looking to use the current day High Low and Open in a strategy.
What is the easiest way to get NT to recognize CurrentHigh in my trade executions.
For example I have a custom line indicator where I want to look for a crossbelow but only if the close of 1 bar ago was above this indicator and a certain number of ticks from the current high. Therefore I need to use CurrentHigh -10*TickSize and I get an error saying that the name CurrentHigh does not exist in the current context. I have a line: Add(CurrentDayOHL());
trying to call on that indicator but it doesn't work.
Thank you in advance.
J
Can you help answer these questions from other members on NexusFi?
Going solely based on memory, typing free hand, not tested...
I don't know about NT7 but I never really liked using CurrentDayOHLC with NT 6.5, I always kept track of the session high/low myself and reset it on a new session.
I am having a problem where my strategy enters the first position of the day and then ignores all profit target and stop loss. Is this because I have my:
private void go long()
{
SetStopLoss("target1").........
SetProfitTarget
EnterLong
}
lines inside the Initialize() portion of the code? I tried to move it to the OnBarUpdate() section and it comes back with a lot of Expected class, delegate, enum, interface, or struct errors so I am assuming there is something that OnBarUpDate doesn't like in there.