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'm trying to make an indicator that displays the value of another indicator at a specific time. So, for example, every day at 9:30 in the morning, the second indicator will display a horizontal line of the value of the first indicator at 9:30. Then for the following day, it will display a new value for the 9:30 value of the first indicator.
I've tried ToTime and GetBar, no luck.
"A Jedi's strength flows from the force."
-Yoda
Can you help answer these questions from other members on NexusFi?
Just call the indicator with barsago, type SMA into the NT help, there should be an example. As this number will change with each new bar, vou have to recalculate, to do so you can use barssincesession or similar methods.
Maybe this will help.
You will need to define StartTime, EndTime, startBar, etc.
This is basic code that uses a time slot (between two times start and end).
When the bar is between those two times, the line code is executed.
The startBar is a method to allow it to fire once and be reset when it is outside of the time slot.
Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !