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)
You'll have to use 1440 minutes on an intraday chart.
If you're wanting to plot the values on a smaller time frame chart, you'll have to develop items in the global dictionary and then plot them using an indicator that references them.
"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
You can always add multiple data streams to the chart and recode the indicator to reference the larger timeframe datastream for variables and calculations. Here is a very simple example of an exponential moving average function that is calculated on datastream 2:
Perhaps the above example wasn't a good one because it is a function. The $ is simply an identifier that I use to distinguish items I've coded so that they will stand out in a directory from the default functions/indicators/strategies etc. For instance, TS may come out of the box with a function named "Average". If I coded my own version of this function, I would name it "$Average" to set it apart from the default name. I hope that makes sense. If, on the other hand, you are asking what the statement does, it is a necessary requirement of all functions to have this line, typically at the bottom. With all of that said, here is, perhaps, an easier example of "aliasing". This is the official term for coding multiple data streams into an indicator/function/strategy. All prices, variables, and function calls should be explicitly aliased to a data stream
inputs:
FastMALen( 5 );
variables:
FastMA( 0, Data2 );
FastMA = Average( Close of Data2, FastMALen ) of Data2 ;
Of course, to make this an indicator, simply add a "plot" statement.
I did this fairly simply by using CloseD, OpenD etc instead of Close in the indicator. I don't think these EL functions are documented by Multicharts but they work.