Karthik's EOD Strategy...

asnavale

Well-Known Member
Murthy

In cairn
EMA crossover take place on 02.01 and also the ADX crossover on 2nd jan(i used chartink)

In gujarat Fluro
EMA Crossover takes place on 28.12 and ADX crossover on 4th jan(you are right)

PS: in NSE Tame how can we plot ADX crossover?

pls clarify

anil negi
*****************

In NSE TAME you can only plot ADX. For Karthik's strategy, +DX and -DX are needed. In TAME you can not draw them. So, you can not use TAME for this strategy.

-Anant
 

anilnegi

Well-Known Member
Signals for 08.01.2013
~~~~~~~~~~~~~


Murthy
again
ABB EMA crossover takes place on 01.01 and ADX crossover on 27.12
HCL EMA crossover takes place on 04.01 and ADX crossover on 03.01
IGL EMA crossover takes place on 04.01 and ADX crossover on 03.01
and many more

i am still missing something, pls clarify

anil negi
 

rkkarnani

Well-Known Member
Signals for 08.01.2013
~~~~~~~~~~~~~


My observation :
Infy gave a buy on 7th Jan. Buy was not triggered. On 8th the SL level was breached.
The indicators still remain in BUY mode.
Do we enter long on breach of the BUY level even now tough the SL level was breached, and in such an eventuality what would be our SL? Will it remain the same.

Another hypothetical situation :
We got a BUY > 2379.90, now suppose we had a high of 2382 or whatever and the BUY was triggered and we were long. Our SL 2335.55 gets hit and we exit. However the Indicators both EMA and ADX remain in BUY mode, do we enter in Long trade again at original level or wait for the price to retrace to 10 EMA to enter again. Actually during the down move to hit the SL price did touch 10 EMA.
If my observation is relevant I request all and particularly Karthik to kindly do give his input.
 
HAPPY NEW YEAR 2013 To ALL

HI ALL,

Here is the new version of AFL for Karthik's EOD Strategy. This is Version 1.50. This contains Exit conditions also. On the chart, Exit for Long is shown by a downward hollow arrow and Exit from Short is shown by a hollow up arrow.

In Exploration, Exit is shown by letter X in Blue background. However, at present there is no distinction between Exit from Long and Short positions, both are shown as X. You have to see the chart and find out which position to exit. In later version I will make it show the correct Exits. This is because, The Re-entry is not included (will be included in next version) and some clarification needed for Exit condition under certain special conditions. Till then I hope the present version will be useful, though some manual chart inspection is needed.

The New Version is given below. Copy and save it in Amibroker\Formulas\Custom folder.


Code:
SetChartOptions(0, chartShowDates | chartWrapTitle);
SetChartBkColor(colorBlack);

_SECTION_BEGIN("Karthik_EOD");

P1 = Param("Shorter EMA Period", 3, 2, 100, 1);
P2 = Param("Longer EMA Period", 10, 3, 200, 1);
P3 = Param("ADX Period", 14, 3, 100, 1);

E1 = EMA(C, P1);
E2 = EMA(C, P2);
DPLUS = PDI(P3);
DMINUS = MDI(P3);

Buy = E1 > E2 AND DPLUS > DMINUS;
Sell = E2 > E1 AND DMINUS > DPLUS;

Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);

Bought = Flip(Buy, Sell);
Sold = Flip(Sell, Buy);

XIT = E1 < L OR E1 > H;


_N(Title = EncodeColor(colorTurquoise) + "KARTHIK's EOD Strategy;"
				+ EncodeColor(colorYellow) + "  AFL by ANANT NAVALE, Version 1.50\n\n"
				+ EncodeColor(colorWhite) + StrFormat("{{NAME}} ({{INTERVAL}}, {{DATE}}; {{OHLCX}}; {{VALUES}}\n")
				+ EncodeColor(colorBrightGreen) + WriteIf(Buy, "Buy Above : " + H + ";     SL = " + L, "") 
				+ EncodeColor(colorPink) + WriteIf(Sell, "Sell Below : " + L + ",     SL = " + H, ""));
if(Status("action") == actionIndicator)
	{
		Plot(C, "", colorLightGrey, styleCandle);
		Plot(E1, "EMA(" + P1 + ")=", colorBrightGreen, styleLine | styleThick);
		Plot(E2, "EMA(" + P2 + ")=", colorRed, styleLine | styleThick);
		PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-20);
		PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-30); 
		PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-25); 
		PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=20);
		PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=30); 
		PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-25);
		PlotShapes(IIf(Bought AND XIT, shapeHollowDownArrow, shapeNone), colorYellow, 0, H, -15);
		PlotShapes(IIf(Sold AND XIT, shapeHollowUpArrow, shapeNone), colorSkyblue, 0, L, -15);
	}

if(Status("action") == actionExplore)
	{
		Filter = Buy OR Sell OR XIT;

		SetOption("NoDefaultColumns", True);
		AddTextColumn(Name(), "SYMBOL");
		AddColumn(DateTime(), "DATE", formatDateTime);
		AddColumn(IIf(Buy, 66, IIf(Sell, 83, 88)), "TRIG", formatChar, colorYellow, IIf(Buy, colorGreen, IIf(Sell, colorRed, colorBlue)));
		AddColumn(IIf(Buy, H, Null), "BUY ABOVE", 1.2);
		AddColumn(IIf(Sell, L, Null), "SELL BELOW", 1.2);
		AddColumn(IIf(XIT, Null, IIf(Buy, L, H)), "STOP LOSS", 1.2);
	}


_SECTION_END();
-Anant
thanks a lot
anant . great work. it will be good if u add ping sound(buy/sell) when buy & sell signal is generated
 

umeshmandal

Well-Known Member
see bharti airtel"s signal still working in profit pls seniors check
Bharti was Long above 284 or 279.50 in early November and went upto 340.70 a whooping almost 20% rise from entry level! On 10th December EMA crossed for Sell but ADX remained in Buy mode. On 17th ADX did cross for Sell but that days Low was not breached. On 20th EMA crossed again for Buy and again on 21st EMA crossed over for SELL and ADX was also in Sell mode. The Low of 21st Dec. at 305.90 was breached in the next session on 24th Dec when a low of 303.40 was made. On 26th Both EMA and ADX gave a BUY cross and Long was initiated above 318.85 and did a high of 336.50 and closed at 325 yeserday. All indicators are still in buy mode though chart is showing Lower lows and lower highs for three consecutive days. I am no Senior here but this is my two cents. :D

I have a query. As Bharti is referred here, I am basing it on Bharti chart.
On 16th Oct there was a EMA cross for Buy but ADX was not supporting.
on 2nd Nov , ADX also crossed and we had a Buy above High (284) of 2nd November.
This High was not breached.
On 5th November ADX crossed down and again we had EMA for Long and ADX for Short so Long was not taken.
On 9th November once again ADX crossed for Long and now we are to Go long above : 279.50 (High of 9th Nov.)
My query : In the same run we had a Buy above 284 now its 279.50, do where do we go long at the New level or the previous level of 284 !
 

umeshmandal

Well-Known Member
DEAR ALL

I have started a thread called "Exploits of a Rogue Trader"
and your august presence is required on my thread to wish me good luck as well as enlighten the thread with your valuable inputs
Regards and Happy Trading :thumb::thumb:
SUMITKUMARSINGH, what you are doing is termed as "Spamming!!! Dont do it, your ID can be banned from Traderji ! By posting this same very message in 100 threads maybe you will increase traffic to your thread temporarily but what after that! Please refrain from doing it.
 

karthik_sri

Well-Known Member
Bharti was Long above 284 or 279.50 in early November and went upto 340.70 a whooping almost 20% rise from entry level! On 10th December EMA crossed for Sell but ADX remained in Buy mode. On 17th ADX did cross for Sell but that days Low was not breached. On 20th EMA crossed again for Buy and again on 21st EMA crossed over for SELL and ADX was also in Sell mode. The Low of 21st Dec. at 305.90 was breached in the next session on 24th Dec when a low of 303.40 was made. On 26th Both EMA and ADX gave a BUY cross and Long was initiated above 318.85 and did a high of 336.50 and closed at 325 yeserday. All indicators are still in buy mode though chart is showing Lower lows and lower highs for three consecutive days. I am no Senior here but this is my two cents. :D

I have a query. As Bharti is referred here, I am basing it on Bharti chart.
On 16th Oct there was a EMA cross for Buy but ADX was not supporting.
on 2nd Nov , ADX also crossed and we had a Buy above High (284) of 2nd November.
This High was not breached.
On 5th November ADX crossed down and again we had EMA for Long and ADX for Short so Long was not taken.
On 9th November once again ADX crossed for Long and now we are to Go long above : 279.50 (High of 9th Nov.)
My query : In the same run we had a Buy above 284 now its 279.50, do where do we go long at the New level or the previous level of 284 !
Thank you for your detailed analysis on this strategy...
I have not considered the previous level here.
1). The Buy / Sell will take place when the condition of crossover of EMA & ADX (or)
2). 3EMA should be > 10 EMA & +DI should be > -DI (for Buy) (or)
3). 3EMA should be < 10 EMA & +DI should be < -DI (for Sell)

If any one of the above condition is met, then I will initiate the Trade.
 

karthik_sri

Well-Known Member
My observation :
Infy gave a buy on 7th Jan. Buy was not triggered. On 8th the SL level was breached.
The indicators still remain in BUY mode.
Do we enter long on breach of the BUY level even now tough the SL level was breached, and in such an eventuality what would be our SL? Will it remain the same.

Another hypothetical situation :
We got a BUY > 2379.90, now suppose we had a high of 2382 or whatever and the BUY was triggered and we were long. Our SL 2335.55 gets hit and we exit. However the Indicators both EMA and ADX remain in BUY mode, do we enter in Long trade again at original level or wait for the price to retrace to 10 EMA to enter again. Actually during the down move to hit the SL price did touch 10 EMA.
If my observation is relevant I request all and particularly Karthik to kindly do give his input.
Answer to your Hypothetical situation:

We enter the Long again when the price retraces (touch) to the 10EMA and closes above 3EMA. We have to enter here on the high price of the price closing above 3EMA.
 

Similar threads