Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Intraday / Positional Signals for Amibroker (AFL)
Divyesh
about 12 years ago
Amibroker (AFL)

Rating:
4 / 5 (Votes 8)
Tags:
trading system, amibroker, timeframe

This Signals have only simple system of cross over of Fractyle Moving Averages…
which i had found Hear and just used as intraday signals….
this can be usefull for option treading too….!
if you use in positiional treading, in daily time frame, this gives wounderfull result !
thank you very much to the person who had posted Faractile Moveing Averages at the wisestocktreaders.com

Similar Indicators / Formulas

Positional Tread
Submitted by Divyesh about 12 years ago
5 day high low system
Submitted by anandmoorti almost 12 years ago
Multiple Trend
Submitted by ecredic almost 12 years ago
Candlestick with buy sell
Submitted by lab1234u over 13 years ago
Three-Bar Inside Bar Pattern
Submitted by EliStern over 13 years ago
EMA System Ribbon
Submitted by yo123 almost 14 years ago

Indicator / Formula

Copy & Paste Friendly
EMA2=EMA(C,2);
EMA4=EMA(C,4);
EMA8=EMA(C,8);
EMA17=EMA(C,17);
EMA34=EMA(C,34);
FMA1=(EMA2-EMA4)+EMA2;
FMA2=(EMA4-EMA8)+EMA4;
FMA4=(EMA8-EMA17)+EMA8;
FMA8=(EMA17-EMA34)+EMA17;
Plot(FMA4,"FMA4",colorGreen,styleThick);
Plot(FMA8,"FMA8",colorRed,styleThick);
Buy=FMA4>FMA8;
Sell=FMA4<FMA8;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
BuyPrice=ValueWhen(Buy,C);
SellPrice=ValueWhen(Sell,C);
PlotShapes(shapeHollowUpArrow * Buy,colorBrightGreen,0,L, Offset=-45);
PlotShapes(shapeHollowDownArrow * Sell,colorRed,0,H, Offset=-45);
A=(H+L)/2;
var1=Wilders(A,34);
var2=Wilders(A,5);
var3=var2-var1;
var4=var3-Wilders(var3,5);
Var5=(H-L)/V;
AO=Var3;
AC=Var4;
barcolor=IIf(AO>Ref(AO,-1) AND AC>Ref(AC,-1),colorGreen,IIf(AO<Ref(AO,-1) AND AC<Ref(AC,-1),colorRed,IIf(V>0 AND Var5<Ref(Var5,-1) AND V>Ref(V,-1),colorGold,colorBlack)));

HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
// Velvoort is using not original, but modified Heikin-Ashi close
HaClose = ( HaClose + HaOpen + HaHigh + HaLow )/4;
// you can switch between Heikin-Ashi chart and regular candlestick chart
Plot( C, "Regular candles " + Name(), barcolor, styleCandle );

_SECTION_BEGIN("Background text");
SetChartBkColor(colorBlack);
GraphXSpace=Param("GraphXSpace",10,-45,200,1);
C13=Param("fonts",20,10,30,1 );
C14=Param("left-right",2.1,1.0,5.0,0.1 );
C15=Param("up-down",12,1,20,1 );
Miny = Status("axisminy");
Maxy = Status("axismaxy");
lvb = Status("lastvisiblebar");
fvb = Status("firstvisiblebar");
pxwidth = Status("pxwidth");
pxheight = Status("pxheight");
GfxSetBkMode(transparent=1);
GfxSetOverlayMode(1);
GfxSelectFont("Candara", Status("pxheight")/C13 );
GfxSetTextAlign( 6 );
GfxSetTextColor( ColorRGB (217,217,213));
GfxTextOut( Name(), Status("pxwidth")/C14, Status("pxheight")/C15 );
GfxSelectFont("Tahoma", Status("pxheight")/C13*0.5 );
GfxSetTextColor( ColorRGB (103,103,103));
GfxTextOut( "By", Status("pxwidth")/C14, Status("pxheight")/C15*2.5 );
GfxSelectFont("Candara", Status("pxheight")/C13*0.5 );
GfxSetTextColor( ColorRGB (103,103,103));
GfxTextOut( "Sai Stock Broking 09825340778", Status("pxwidth")/C14, Status("pxheight")/C15*4 );
GfxSelectFont("MS Sans Serif", 10, 500, False, False, 0);
_SECTION_END();
_SECTION_BEGIN("Title");

DODay = TimeFrameGetPrice("O", inDaily);
DHiDay = TimeFrameGetPrice("H", inDaily); 
DLoDay = TimeFrameGetPrice("L", inDaily); 
Title = EncodeColor(colorWhite)+"* SAI STOCK BROKING 09825340778 *  "+EncodeColor(colorWhite)+ Name() + ", " + Interval(2) + ", " + Date() + 
EncodeColor(colorWhite)   +  "\nO " + EncodeColor(colorWhite) + O + 

 ",   H :  "   + H + 
 ",   L  :  " + L + 
 ",   C  :  "  + C +
EncodeColor(colorWhite)+ "\n Day-Open : " +DODay + "  Day-High : " +DHiDay + "  Day-Low : " + DLoDay 
;

18 comments

1. anandnst

Really impressed … Superb moving averages with good results seen in Daily time frame.

2. Divyesh

@anandnst,
My Pleasure….

Happy Treading……….

3. kv_maligi

Hi,

I have been stydying & backtesting this. Really good results so far. As Mr. Ananad said, its good for daily TF. Not for other TF. One can do EOD delivery safely without much risk

Following are not clear:

1) when to book profits
2) what is stop loss.

Mr. Divyesh & Anand, if you have some tips on the above issues, please share

Thanks once again
Viswanath

4. Divyesh

@kv_maligi,
Viswanath Sir,
it is a great pleasure for me that i get so great Comment from you.
as i said early in my other Indicator’s posting that i m not a coder or AFL laungage expert but trying to get out something….

Actual creadit goes to “http://www.wisestocktrader.com/indicators/2451-multi-fractal-moving-averages”

i have get idea from this AFL and watch for more than 3 months and tried to get signals. and finally i get it….so if i get great siganal from wisestocktreader than have to give back…..!

anyway thank you very much for kind responce and comment i am really glad to receive this comment from you.

Divyesh

5. kv_maligi

Dear Divyesh,

The great thing about you is sharing this & good part is you have tested & suggested to trade/invest in EOD. This is also confirmed by another Guru Mr.Anand.

I also observed that its excellent in EOD TF. Other TF could be weekly ( i did not have that much data to check it. If you have weekly data, please test & tell your opinion). Less than EOD, its not that much good.

Thanks
Viswanath

6. kv_maligi

Hi, Adding following OBOS code to this AFL, greatly enhances knowing the strength of the signal.

How ?

1) At( or next bar) if it is overbought & buy signal, it means strong buy. Reverse is the same for sell.

Please check your self.

Examples : Jindal steels SELL on 8/27/2012 & heremotors on 8/28/2012

HDFC on 8/1/2012 & 9/10/2012
Nifty on 9/12/2012 & HLL on 7/24/2012.

In coming days, ACC & M&M will zoom up.

Thanks
Viswanath

/ Over Bought & oversold settings. 

_SECTION_BEGIN("OsSetting");

HaClose =EMA((O+H+L+C)/4,3);  // Woodie 
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );  
HaHigh = Max( H, Max( HaClose, HaOpen ) ); 
HaLow = Min( L, Min( HaClose, HaOpen ) ); 
Temp = Max(High, HaOpen);
Temp = Min(Low,HaOpen);

Ovos = ParamToggle("Display_OVOS", "No|Yes", 1);
OBSetting= 40;

Bline = StochD(OBSetting);
Oversold=Bline<=30;
Overbought=Bline>=85;

if(Ovos)
{
PlotShapes (IIf(Oversold, shapeSmallCircle, shapeNone) ,colorWhite, layer = 0, yposition = haLow, offset = -8 );
PlotShapes (IIf(Overbought, shapeSmallCircle, shapeNone) ,colorRed, layer = 0, yposition = haHigh, offset = 7 );
}

_SECTION_END();
7. Divyesh

@kv_malgi, Vishwanath Sir,

Sir i get problem Here…..

HaClose =EMA/4,3); // Woodie 
HaOpen = AMA, 0.5 ); 

can you please solve this....?

Divyesh
8. kv_maligi

// Over Bought & sold settings.

_SECTION_BEGIN("OsSetting");

HaClose =EMA((O+H+L+C)/4,3);  // Woodie 
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );  
HaHigh = Max( H, Max( HaClose, HaOpen ) ); 
HaLow = Min( L, Min( HaClose, HaOpen ) ); 
Temp = Max(High, HaOpen);
Temp = Min(Low,HaOpen);

Ovos = ParamToggle("Display_OVOS", "No|Yes", 1);
OBSetting= 40;//Param("Setting",26,1,500,1);  
Bline = StochD(OBSetting);
Oversold=Bline<=30;
Overbought=Bline>=85;

if(Ovos)
{
PlotShapes (IIf(Oversold, shapeSmallCircle, shapeNone) ,colorWhite, layer = 0, yposition = haLow, offset = -8 );
PlotShapes (IIf(Overbought, shapeSmallCircle, shapeNone) ,colorRed, layer = 0, yposition = haHigh, offset = 7 );
}

_SECTION_END();

10. kv_maligi

Dear Divyesh,

I do not know why it is not getting copied the correct one. After paste, it is fine when i see in the code “SHOW”.

Its not getting copied correct.

You can refer & copy the same from southwing AFL
http://wisestocktrader.com/indicators/174-the-foundation-by-southwind-v-13-00-int

Is this works well with weekly TF???

Thanks
Viswanath

11. hmsanil

HI,

Here is the code for Over Bought & sold settings.

http://www.wisestocktrader.com/indicatorpasties/336-over-bought-sold-settings

Thanks

Sudha

12. Divyesh

@hmsanil ,
thank you very much…!

Divyesh

13. Divyesh

@Admin,

Sir today i have post modification in this AFL that have some errors….!
So i request for not approve that AFL…!

will resolve problem and again post for approval….!

thank you

14. Divyesh

below given OBOS is alos very much effective….!

try this and Please give feed back…….

thank you,

SetChartBkColor(colorBlack);
Col_cci = IIf(CCI(20) > 100, colorBrightGreen,IIf(CCI(20) <-100,colorRed,IIf(CCI(20) > Ref(CCI(20),-1),colorBlue,colorDarkRed)));
Plot(Close,"Price",Col_cci,styleCandle+styleThick| styleNoLabel);
//Plot(Close,"Price",colorWhite, styleCandle| styleNoLabel);
_SECTION_END();

_SECTION_BEGIN("OsSetting");

OBSetting=Param("Setting",45,1,500,1);
Bline = StochD(OBSetting);
Oversold=Bline<=30;
Overbought=Bline>=85;


PlotShapes (IIf(Oversold, shapeSmallCircle, shapeNone) ,colorBrightGreen,0,L, Offset=-45);

PlotShapes (IIf(Overbought, shapeSmallCircle, shapeNone) ,colorRed,0,H, Offset=45);
_SECTION_END();
15. kv_maligi

No much difference, logic same. only OBSetting is 45 at the place of 40

16. Divyesh

@kv_malgi,
right Sir,……..

17. hotaro3

better results for buy sell than positional BS

18. vijay_gori

i want make my amibroker afl can you help me call my no is 9322222643

19. ecredic
Divyesh

Hi,

Thanks! I am happy it was usefull to you.
If you want to use on diferent time frimes you will need to change the multiples.
They was intended to be used on 5min, 22min, 92min, dayly, weekly and monthly timeframes.

If you want to use this on 15min or 60min, you should use 3,6,13,26,52, instead of 2,4,8,17,34.

Regards,
Eduardo

Leave Comment

Please login here to leave a comment.

Back