Profile Picture

Tick Size within Indicators

Posted By DoQ 9 Years Ago
Message
DoQ
Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)
Posted Tuesday February 19 2008
Is there a way to access tick size from within an indicator?


DoQ_Indicators
"better is the enemy of good enough"
Posted Tuesday February 19 2008
No.  Indicators currently only operate on Bar Data.

Daniel

DoQ
Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)
Posted Tuesday February 19 2008
dplaisted (2/19/2008)
No.  Indicators currently only operate on Bar Data.

Daniel

 

I am creating an indicator that operates on BarData, but part of my formula is to use tick size as a divisor. The only way I see to enter tick size is to explicitly request the user in Constructor Args, is this correct?

 

 

thx


DoQ_Indicators
"better is the enemy of good enough"
Posted Tuesday February 19 2008
Oh, sorry, I completely misunderstood you.  I thought you wanted an indicator that operated on tick data, and you wanted the size of the ticks.

You can get this value from Symbol.SymbolInformation.TickSize.  To know which symbol your indicator is being run for, you can implement the ISystemAccess interface in your indicator.  Initialize() will be called with a reference to the SystemData object and Symbol.

The catch is that ISystemAccess only works when you are using your indicator as part of system.  So if you just want to chart an indicator it won't work.  I have made a change so that the Initialize method will be called with the correct symbol when adding an indicator to a chart (the SystemData reference will be null).  So in RightEdge 1.2 you will be able to do this seamlessly.

Thanks,
Daniel

DoQ
Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)Supreme Being (11,407 reputation)
Posted Tuesday February 19 2008
Ohh yes, forgot about ISystemAccess, very nice! I just wish I could remember all this stuff you can do. I keep wasting time looking for workarounds. Seamless integration in 1.2 will be very nice. Until then I will prompt the user...

thx


DoQ_Indicators
"better is the enemy of good enough"


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems