Tick Oscillator

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Tick Oscillator

Postby Laurus12 » Sun Feb 28, 2010 8:03 pm

Hi.

I am wondering if one of you guys would be able to make a Tick Oscillator which showed the movement/volume of actual ticks which happens within each bar/candle on a chart? I am attaching a picture so you can see what I am thinking about.

Thanks
Attachments
tick_oscillator.png
tick_oscillator.png (29.23 KiB) Viewed 1536 times
Laurus12
FXCodeBase: Confirmed User
 
Posts: 45
Joined: Tue Jan 26, 2010 6:49 pm
Location: Norway

Re: Tick Oscillator

Postby Nikolay.Gekht » Tue Mar 02, 2010 10:14 am

There is a problem with Volume, because FXCM does not publish the volume right now but I plan to start with a simple histogram oscillator which shows a number of ticks during the candle.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Tick Oscillator

Postby Laurus12 » Tue Mar 02, 2010 10:27 am

Thank you Nikolay. I think that would be enough. If one could have a scale similar to the one in the picture that would be great :P
Laurus12
FXCodeBase: Confirmed User
 
Posts: 45
Joined: Tue Jan 26, 2010 6:49 pm
Location: Norway

Re: Tick Oscillator

Postby Laurus12 » Tue Mar 16, 2010 3:59 pm

Hi! I have tried to figure out how to make the tick oscillator my self, but with a microscule step as a result :cry: . It pretty much stopped at the "function init" info with the "required source" and "core.tick". Can not figure out how the comparison/calculation of up and down ticks should be coded to make a result in an oscillator bar. Another thing is the scale above and below zero which would be different for the different time frames I guess.

Hope it is not too long before you come with your suggestion or finished result.

Thanks,
Laurus12
Laurus12
FXCodeBase: Confirmed User
 
Posts: 45
Joined: Tue Jan 26, 2010 6:49 pm
Location: Norway

Re: Tick Oscillator

Postby Laurus12 » Sat Apr 03, 2010 2:22 am

Hi! :)

I have done some research to find something that works similar to the first mentioned. Here is one called TheTick which is coded for MT4 by Patric Nouvion. I have tested it and for now it looks quite good. The only thing which makes me holding back on it is that I am not completely sure if it is based on acctual tick feed, which it has to be if it should be of any point. If it is, this indicator is something I can really proceed working with.

Could you please take a look at the code and see if it is actually based on tick feed and something we then could use?

Thanks,
Laurus12


#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Blue

double TheTick[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,TheTick);
SetIndexDrawBegin(0,5);

SetLevelStyle(1,1,Black);
SetLevelValue(0, 0.0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//---- Loop Prep
int Limit; int Count; int PrevDay;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1); // Check for error
if(counted_bars>0) counted_bars--; // Last counted bar will be recounted
Limit = Bars-counted_bars;

double Multiplier = 0;

if( StringFind( Symbol(), "JPY", 0) != -1 )
{
Multiplier = 0.1;
}
else
{
Multiplier = 100.0;
}
for( int i = 0; i < Limit; i++ )
{
TheTick[i] = ( ( Close[i] - Open[i] ) * Volume[i] ) * Multiplier ;
}

//----
return(0);
}
//+------------------------------------------------------------------+
Attachments
TheTick.png
Laurus12
FXCodeBase: Confirmed User
 
Posts: 45
Joined: Tue Jan 26, 2010 6:49 pm
Location: Norway


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 15 guests