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)
New to Multicharts Signal Only Prints on Some Data
I'm new to multicharts and new to coding in general so forgive me as I'm just fumbling along trying to learn this stuff. Anyways I wrote a code to basically look back and plot Monday's high/low but the problem is that it only plots on some of the data. On the daily chart it will plot 5 Mondays back, and on the H4 chart only 1 hour back. Can anybody please take a look at my code and guide me to exactly where I went wrong? Any help would be greatly appreciated.
On a side note: Does anybody know if the FX data from Oanda with a demo of Multicharts provides limited data? The Daily data only goes back a couple months and I'm thinking it's because I'm using the Multicharts demo since the data on MT4 and oanda goes back years.
Can you help answer these questions from other members on NexusFi?
this can be caused by the "max number of bars the study reference" value required by your code. If that is the case the lines should go back further in case you load more data to the chart.
Ahh! You're a genius! Thank you. Also I'm guessing this study references the current timeframe of the chart. So I have one last question which is probably super simple and just has to do with me not knowing how to use Multicharts.
The code is now working properly and references Mondays high/low based on the time on Multicharts. However, it looks like the Multicharts time is off in reference to the actual broker time and even my local time on the computer. The time is ahead by 1 hour. This affects the calculation of the code on the hourly chart. I'm sure this is a simple fix but do you happen to know how to do that?
Also would be nice to figure out how to stop the lines on Friday so that it does not extend over into the next week. Thank you so much!
you can change the time on the Settings tab of the Format Instrument dialog. It could be set to Exchange or Local (which is your computer's clock). If this is still incorrect you could adjust the symbol settings in Quotemanager.
Your code appears to draw new text and lines for every bar. It might make sense to only draw them once per period and then update the location (using TL_SetBegin, TL_SetEnd, Text_SetLocation etc..).
Now you can use the reserved word DayOfWeek( Date ) to detect a day of the week where you don't want to update the location and end points.