Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
bump bump bump bump bump no one has this or wants to code it for everyone?
I'm curious, how long do you suppose it would take to code an indicator that would do all you suggested - 1 hour, 2 hours, 3 hours...? My guess, it would take at least that long. And there you also have your answer - too time consuming! If you really want this coded, there are at least half a dozen coding experts on this forum who will do it for a price. In the meantime, check out the 'marketprofile' indicator.
This is the code for AmiBroker but I think it can be easily translated into MQL4:
__________________________________________________ __________
reverse = Param ("reverse %" ,0.1, 0.1, 1,0.1)/100;
// initialize first element
j = 0;
KC[j] = Close[0];
direction=0;
for( i = 1; i < BarCount-1; i++ )
{
// percent reversal requirement
if(direction[j]==0)
{
if( Close[i] <= KC[j]) //continue down
{
KC[j] = Close[i];
}
else
{
if( Close[i] >= KC[j]*(1 + Reverse)) //Change direction to up
{
j++;
direction[j] = 1;
KC[j] = Close[i];
}
}
}
else
{
if( Close[i] >= KC[j]) //Continue up
{
KC[j] = Close[i];
}
else
{
if( Close[i] <= KC[j]*(1 - Reverse)) //Change direction to down
{
j++;
direction[j]=0;
KC[j] = Close[i];
}
}
}
}
delta = BarCount - j-1; //shift the chart to the wright
kagi= Ref(kc,-delta);
direction = Ref(direction,-delta);
Color =39;// IIf(kagi>Ref(kagi,-1), colorGreen, colorRed);
This is AmBroker Formula language . in MQL4 you can not plot in PF style but you can plot it as bars/line.
_____________________________________________