HI!
Can someone convert this code to be applicable for forex tester?
//+------------------------------------------------------------------+
//| Williams' Accumulation/Distribution.mq4 |
//| Copyright ฉ 2007, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ฉ 2007, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
//----
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 LightSeaGreen
//---- buffers
double ExtMapBuffer1[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorShortName("W_A/D");
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double AD,TRH,TRL;
int i,counted_bars=IndicatorCounted();
uint start=GetTickCount();
//----
i=Bars-counted_bars-1;
if(counted_bars==0)
{
ExtMapBuffer1[i]=0;
i--;
}
while(i>=0)
{
TRH = MathMax(High[i], Close[i+1]);
TRL = MathMin(Low[i], Close[i+1]);
if(Close[i]>Close[i+1]+Point)
AD=Close[i]-TRL;
else
if(Close[i]<Close[i+1]-Point)
AD=Close[i]-TRH;
else
AD=0;
ExtMapBuffer1[i]=ExtMapBuffer1[i+1]+AD;
i--;
}
//----
return(0);
}
//+------------------------------------------------------------------+
MT4 indicators for FT??
-
- Posts: 204
- Joined: Thu Jan 28, 2010 2:20 pm
Re: MT4 indicators for FT??
Hi,
i can convert it for some fee.
details in PM.
Alexey
i can convert it for some fee.
details in PM.
Alexey
Coding & Converting
-
- Posts: 1
- Joined: Mon May 18, 2015 10:40 am
Re: MT4 indicators for FT??
Hi, if anybody can help me with this indicator, I need this indicator with the language of Forex Tester. I have de indicator but I don't know how write the language, I have the file, please help me.
-
- Posts: 204
- Joined: Thu Jan 28, 2010 2:20 pm
Re: MT4 indicators for FT??
Could you attach file here?
or send it to me by email.
or send it to me by email.
Coding & Converting
Who is online
Users browsing this forum: No registered users and 16 guests