Karthik's EOD Strategy...

asnavale

Well-Known Member
PFC has given a buy above 211.Karthik,your thoughts please.
Yes, in CASH segment PFC is a BUY. But be aware of resistance near 214.

-Anant
 

anilnegi

Well-Known Member
I have not uploaded the cash market data. But in futures data PFC is not showing Buy signal.

No signals generated today (EOD)
Karthik

PFC today EMA3-206.58, EMA10- 205.44, EMA30-203.49
ADX- +DI- 28.72 - DI-18.72,

i think it is a perfect buy, isnt it

anil
 
Thanks bro for your contribution...yes the code matches with the setup...what is the "Triangle" which is comming apart from the Buy/Sell arrows?
The triangles can be used to scale-in out (ADDs / Partial booking)

Guys, thanks for all the enthusiasm.... Can someone take the responsibility of daily posting the call and tracking the performance of the call....
@parttime: great job, can you add the stoploss rule in your AFL...
@karthik: As usual great stuff....Thanks mate
Please tell me what is the Stop Loss condition that needs to be coded?


parttime:, can you add the stoploss rule in your AFL... and what are triangles coming in this afl ?
R they raw signals ?
No not raw signals, We have 4 conditions

Long Setup: both ema3 & ema10 are above ema 30
  1. Buy. [both are aligned] i,e, PDI > MDI AND EMA3 > EMA10 => Up Arrow
  2. Sell [either one of ADX OR EMA is not aligned] => Down triangle

Short Setup: both ema3 & ema10 are below ema 30
  • Short [both are aligned] i.e. PDI < MDI AND EMA3 < EMA10 => Down Arrow
  • Cover [either one of ADX OR EMA is not aligned] => Up triangle

The ribbon gives the state of the ADX (Blue when PDI > MDI and Red when PDI < MDI)

Cheers
:thumb:
 
Last edited:
The triangles can be used to scale-in out (ADDs / Partial booking)



Please tell me what is the Stop Loss condition that needs to be coded?




No not raw signals, We have 4 conditions

Long Setup: both ema3 & ema10 are above ema 30
  1. Buy. [both are aligned] i,e, PDI > MDI AND EMA3 > EMA10 => Up Arrow
  2. Sell [either one of ADX OR EMA is not aligned] => Down triangle

Short Setup: both ema3 & ema10 are below ema 30
  • Short [both are aligned] i.e. PDI < MDI AND EMA3 < EMA10 => Down Arrow
  • Cover [either one of ADX OR EMA is not aligned] => Up triangle

The ribbon gives the state of the ADX (Blue when PDI > MDI and Red when PDI < MDI)

Cheers
:thumb:
Dear PTT,

Thanks a ton and Very Nice AFL....Can you also make the exploration for the same??

Regards,
 
Hello

EMA-30 is already being plotted, so that can be used as SL, but to my mind its not a proper SL, we can use it as a disaster stop.

If you want any other SL line plotted can be done maybe something based on ATR etc.

Cheers
::thumb::
Code:
_SECTION_BEGIN("Karthik's_EOD_System");
//SYSTEM
M3  	=	EMA(C, 3);
M10 	=	EMA(C,10);
M30 	=	EMA(C,30);

Long_Setup 	=	M3 > M30 AND M10 > M30;
Short_Setup	=	M3 < M30 AND M10 < M30;

Buy 	=	Long_Setup AND M3 > M10 AND PDI(14) > MDI(14);
Sell	=	M3 < M10 OR  PDI(14) < MDI(14);
Buy 	=	ExRem(Buy,Sell);
Sell	=	ExRem(Sell,Buy);

Short	=	Short_Setup AND M3 < M10 AND  PDI(14) < MDI(14);
Cover	=	M3 > M10 OR PDI(14) > MDI(14);
Short	=	ExRem(Short,Cover);
Cover	=	ExRem(Cover,Short);
SetPositionSize(1,4);

//Plots
Plot(M3, "M03",colorBlue, styleLine);
Plot(M10,"M10",colorRed,  styleLine);
Plot(M30,"\n\nSTOP LOSS = ",colorGreen,styleThick);
Plot(2,"",IIf(MDI(14) > PDI(14),colorRed,colorBlue), styleNoLabel | styleOwnScale | styleArea,-3,100);

PlotShapes(Buy  *shapeUpArrow,   colorBlue,0,L); 
PlotShapes(Short*shapeDownArrow, colorRed, 0,H); 
//PlotShapes(Cover * shapeSmallUpTriangle,   colorBlue,0,L); 
//PlotShapes(Sell  * shapeSmallDownTriangle, colorRed, 0,H); 

Filter	=	Buy OR Short;
SetOption("NoDefaultColumns", True );
AddColumn( DateTime(), "Date", formatDateTime );
AddTextColumn(Name() , "Ticker" );
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar ); 
AddColumn(M30, "STOP AT"); 
AddColumn( Close, "Close" );
_SECTION_END();

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();
 
Last edited:

prst

Well-Known Member
The triangles can be used to scale-in out (ADDs / Partial booking)



Please tell me what is the Stop Loss condition that needs to be coded?




No not raw signals, We have 4 conditions

Long Setup: both ema3 & ema10 are above ema 30
  1. Buy. [both are aligned] i,e, PDI > MDI AND EMA3 > EMA10 => Up Arrow
  2. Sell [either one of ADX OR EMA is not aligned] => Down triangle

Short Setup: both ema3 & ema10 are below ema 30
  • Short [both are aligned] i.e. PDI < MDI AND EMA3 < EMA10 => Down Arrow
  • Cover [either one of ADX OR EMA is not aligned] => Up triangle

The ribbon gives the state of the ADX (Blue when PDI > MDI and Red when PDI < MDI)

Cheers
:thumb:
PFC down today :(
 

Similar threads