SuperADX MQ4 indicator.......can anyone convert this to amibroker afl.......HELP

MANISH_DAMANI

Well-Known Member
#22
This error is coming. How to correct it.:):thumb:
 

Attachments

#23
1. A red bar would indicate that a big move is imminent.
2. A white bar would indicate that it is the end of the big move and hence exit.
3. A yellow bar or a violet bar would indicate a possibility of a reversal of the current trend.
4. A magenta bar would indicate that multiple signals have occurred and possibility of a reversal is very strong.
Also it should be noted that the exit signals is not generated in all cases. Similarly the Big Move indication is also not generated every time. But whenever it happens it will be a good opportunity. Also reversal signals are not generated every time reversal is imminent.
The super ADX also uses a indicator which they call Money line. This line is used as the exit point though I did not find it correct. Normally a Linear weighted Moving average of period 40 should be good enough as a money line.
So try out the indicator and provide your feedback. I only hope that unscrupulous elements don’t take this and commercialize this as they have down with other my other indicators.
 

MANISH_DAMANI

Well-Known Member
#25
This seems a new formula for SUper ADX. Not the one I posted. Ifyou post the full formula we would be able to help you.
Sir I have copied it from your blog today. Nothing new in it.

//Sample Code
//===========================================================================================//=================TITLE================================================================================================
_SECTION_BEGIN("Price Ploting");

pricestyle=ParamToggle("Price style","Bar|Candle",1);
if (pricestyle == 1)
{
Candlefill = IIf(C>=Ref(C,-1),ParamColor("Green candle",colorGreen),ParamColor("red candle",colorRed) );
SetBarFillColor (Candlefill);
PlotOHLC( Open, High, Low, Close, "", Candlefill, styleCandle,maskPrice);
}
if (pricestyle == 0)
{
Candlefill = IIf(C>=Ref(C,-1),ParamColor("Green candle",colorLime),ParamColor("red candle",colorRed) );
PlotOHLC( Open, High, Low, Close, "", Candlefill, styleBar,maskPrice);
}

pbfak= Param("Pin Bar Factor",3,0,100,0.25);
CR = abs(H-L);
CB = abs(O-C);
Candlecheck = IIf((CR >=(pbfak*CB)),1,0);
SetBarFillColor (IIf(Candlecheck ==1,candlefill,colorBlack));
PlotOHLC( Open, High, Low, Close, "", IIf(Candlecheck ==1,Candlefill,colorBlack), styleCandle,maskPrice);

_SECTION_END();
//=================TITLE================================================================================================
//=========================================================================================
_SECTION_BEGIN("Swing Signal System");
DayH = TimeFrameGetPrice("H", inDaily, -1); DayHI = LastValue (DayH,1);// yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1); DayLI = LastValue (DayL,1); // yesterdays low
DayC = TimeFrameGetPrice("C", inDaily, -1); // yesterdays close
DayO = TimeFrameGetPrice("O", inDaily); // current day open
numbars = LastValue(Cum(Status("barvisible")));
hts = -33.5;
YHL = ParamToggle("Yesterday HI LO","Show|Hide",1);
if(YHL==1) {
// Plot(DayL,"YL",colorTurquoise,styleDots|styleNoLine|styleNoRescale|styleNoTitle);
// Plot(DayH,"YH",colorTurquoise,styleDots|styleNoLine|styleNoRescale|styleNoTitle);
//PlotText(" YH " , LastValue(BarIndex())-(numbars/Hts), DayHI, colorTurquoise);
//PlotText(" YL " , LastValue(BarIndex())-(numbars/Hts), DayLI, colorTurquoise);
DayLcolor= IIf(C>= DayO,colorDarkOliveGreen,colorViolet);
Plot(DayC ,"YC",colorIndigo,styleDots|styleNoLine|styleNoRescale|styleNoTitle);
Offset = 20;
//Plot(LineArray(BarCount, DayC , BarCount+20, DayC ,0), "", colorRed, styleLine|styleDots, Null, Null, 20);
Plot(DayO ,"YO",DayLcolor,styleDots|styleNoLine|styleNoRescale|styleNoTitle);



///////////////////////////////////////////////////////////////////////////////

messageboard = ParamToggle("Message Board","Show|Hide",0);
showsl = ParamToggle("Stop Loss Line", "Show|Hide", 0);
no=10;
res=HHV(H,no);
sup=LLV(L,no);
avd=IIf(C>Ref(res,-1),1,IIf(C1;i--)

{
if(Buy == 1)
{
entry = C;
sig = "BUY";
sl = s5d;
tar1 = DayC1 ;
tar2 = entry + (entry * .0092);
tar3 = entry + (entry * .0179);

bars = i;
i = 0;
}
if(Sell == 1)
{
sig = "SELL";
entry = C;
sl = s5d;
tar1 = DayC1;
tar2 = entry - (entry * .0112);
tar3 = entry - (entry * .0212);


bars = i;
i = 0;
}
}
*/

for(i=BarCount-1;i>1;i--)

{

//tar1 = DayC1;
bars = i;
i = 0;

}




for(i = 1; i < BarCount; i++)
{
tar2 = DayO1;
tar1 = DayC;
Clro = IIf(C>=tar1,colorLime,colorRed);
}

Offset = 20;
Clr = colorBlueGrey;
//Clro = IIf(C>=tar2,colorLime,colorRed);
Plot(LineArray(bars-Offset, tar1, BarCount-20, tar1,1), "", colorIndigo, styleLine|styleDots, Null, Null, Offset);
Plot(LineArray(bars-Offset, tar2 , BarCount+20, tar2 ,1), "", Clr, styleLine|styleDots, Null, Null, Offset);
}
_SECTION_END();
//=========================================================================================
 

MANISH_DAMANI

Well-Known Member
#26
This seems a new formula for SUper ADX. Not the one I posted. Ifyou post the full formula we would be able to help you.
I want yours one only.:):thumb:
 

karthikmarar

Well-Known Member
#27
Manish

This is the afl somebody posted requesting help in correction. My afl is available to download from 4 shared. The inks are available in my post below the chart. Somebody has posted the links in this forum also.

Regards
 

MANISH_DAMANI

Well-Known Member
#29
Manish

This is the afl somebody posted requesting help in correction. My afl is available to download from 4 shared. The inks are available in my post below the chart. Somebody has posted the links in this forum also.

Regards
very good work sir. Thanz alot:):thumb:
 

Similar threads