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 was in a rush and did not express myself clearly. I didn’t mean the indicator didn’t work properly – I meant I don’t use the indicator properly or feel that I was using it correctly.
I thought I read in this thread that the VisualSMA/EMA does not work on a tick chart. I don't understand if just applying the 30- or 60-minute VisualEma to my tick-chart is sufficient, or there is something more involved. What I also meant is that it seemed to work unbelievably well by just applying it simply to my chart. But I still think I did something wrong but don't know what. And, is it possible to show two tick data series on one chart and how? Non-equidistant spacing is fine.
Fat Tails, did I put the VisualSMA on my chart correctly?
Lolu, I'll send you my template if you continue nudging TMFT to complete the cockpit project. I thought TMFT's disclosure that he had a weakness for bling meant Prometheus was going to get a second life.
I will explain what i'm trying to do and let me know whether it can be done with VisuaSMA?
What i did was called VisualSMA on to a script like the following
VisualSMA(30,false,false,Visual,Second,89,Close):-Basically calling in the value of 89SMA from a 30 second chart to a HTF chart. But when compiling it is giving me couple of errors.
1). The name Visual does not exist in the current context
2). The name Second does nto exist in the current context.
When i typed on to the script VisualSMA(............. it gave options on what to plug in (please see attached)
Can this be done? if it can be what should i plug for the following
VisualSMaCalcModethisCalcMode (i typed Visual in here)
VisualSMAPriceTypethisPriceType (i typed Close in here)
@sudhirc: There are ways to access the indicator, but you need to follow a few rules.
IN visual mode the indicator repaints back to the last node
In visual mode the VisualSMA uses a linear interpolation between the last node and the last price. This distance is therefore repainted with every tick. This is necessary to emulate the behavior of the default SMA with COBC = false. In 1-Tick correction mode, the VisualSMA sometimes repaints 1 tick on real-time data. In strategy mode the VisualSMA does not repaint at all.
The indicator exposes a public property that holds the value of the number of bars that were painted back to the last node.
If you want to access the indicator in 1-Tick-correction mode, you will need to access the current value and the prior value of the indicator with each incoming tick. If you want to access the indicator in visual mode, you will need to access the last N values of the indicator (all values that have been repainted). The parameter N can be accessed via
where thisPeriodType may take the values VisualSMAPeriodType.Minute, VisualSMAPeriodType.Second, VisualSMAPeriodType.Tick, VisualSMAPeriodType.Volume. Once you have retrieved the value of N, you will then need to access the current and the prior N values of the indicator and call them.
Limitations
The VisualSMA cannot perform calculations on Renko bars, I will take away that option. When the VisualSMA is called by another indicator, the option to calculate values from range bars is disabled, as those values will not be reproduced correctly.
Example
Attached is an access indicator, which shows how the VisualSMA can be accessed by another indicator.
I'm having trouble importing this file. It says i have duplicate method names - dont know what file it is refering to ?
any ideas on what to do from my side or can you change the method name and reattach it.