Spin
Well-known member
- Joined
- May 22, 2019
- Posts
- 474
- Likes
- 189
So i added this code to an already working study:
I know my broker delivers TickData (because I can see MW's standard VolumeProfile Study updating when I add it to a chart; it also uses 'onTick')
Why o why don't I get any output to the Study log ?
Just to make sure: I use onTick without @override (otherwise my IDE complains "method does not override or implement a method from a supertype")
Do I need to declare something else for onTick to work ?
Is there any other coding voodoo involved ? Ritual sacrifices perhaps ?
Java:
public void onTick(Tick tick)
{
debug ("Tick incoming !!");
// calculateValues(ctx);
}
I know my broker delivers TickData (because I can see MW's standard VolumeProfile Study updating when I add it to a chart; it also uses 'onTick')
Why o why don't I get any output to the Study log ?
Just to make sure: I use onTick without @override (otherwise my IDE complains "method does not override or implement a method from a supertype")
Do I need to declare something else for onTick to work ?
Is there any other coding voodoo involved ? Ritual sacrifices perhaps ?