Dear Fellow Traders,
Here is the metastock code for Swing Trading purpose. It can be used either with intraday day bars or daily bars. Trade as per swing with Money management techniques. Money management is major mantra in stock markets and it is leading indicator for daily market players.
Metastock Indicator code :-
no:=Input("Swing/ Bars", 1, 20, 2);
res:=HHV(H,no);
sup:=LLV(L,no);
HLd:=If(CLOSE>Ref(res,-1),
{then}1,
{else}If(CLOSE<Ref(sup,-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,
{then}res,
{else}sup);
HiLo;
Expert advisor will be developed as per your feed back.
Regards,
Yasu222.
Here is the metastock code for Swing Trading purpose. It can be used either with intraday day bars or daily bars. Trade as per swing with Money management techniques. Money management is major mantra in stock markets and it is leading indicator for daily market players.
Metastock Indicator code :-
no:=Input("Swing/ Bars", 1, 20, 2);
res:=HHV(H,no);
sup:=LLV(L,no);
HLd:=If(CLOSE>Ref(res,-1),
{then}1,
{else}If(CLOSE<Ref(sup,-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,
{then}res,
{else}sup);
HiLo;
Expert advisor will be developed as per your feed back.
Regards,
Yasu222.