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 Modified for Amibroker (AFL)

Rating:
3 / 5 (Votes 3)
Tags:
trading system, amibroker

This is a Modification in “http://www.wisestocktrader.com/indicators/3233-intraday-positional-signals”

Our respected kv_malgi, Viswanath sir had asked for profit book and stop loss so i have worked for that…!

Green Dot at low indicates Short Cover.
Red Dot at up indicates Book Long.

if after Green Dot, Red Dot appeares in further candle, one can again re enter Short and hold Short….

if after Red dot, green Dot appeares in further candal, one can again re enter Long and Hold Long…….

all credit goes to the AFL posted at wise stock treade :- " http://www.wisestocktrader.com/indicators/2451-multi-fractal-moving-averages "

i get Inspired from above AFL. thank a lot to Mr.ecredic

Similar Indicators / Formulas

EMA crossover
Submitted by Ketan-0 about 13 years ago
Kase Peak Osc. V2 batu
Submitted by batu1453 almost 10 years ago
Kase CD V2batu
Submitted by batu1453 almost 10 years ago
Ichimoku
Submitted by prashantrdx almost 10 years ago
buy and sell two EMAS
Submitted by mundo0007 about 12 years ago
Adaptive Price Zone (APZ)
Submitted by AndrewThomas about 13 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);
Longexit=FMA2<FMA4;
Shortcover=FMA2>FMA4;
Longexit=ExRem(Longexit,Shortcover);
Shortcover=ExRem(Shortcover,Longexit);
BuyPrice=ValueWhen(Buy,C);
SellPrice=ValueWhen(Sell,C);
PlotShapes(shapeHollowUpArrow * Buy,colorBrightGreen,0,L, Offset=-45);
PlotShapes(shapeHollowDownArrow * Sell,colorRed,0,H, Offset=-45);
PlotShapes(shapeSmallCircle * Shortcover,colorBrightGreen,0,L, Offset=-45);
PlotShapes(shapeSmallCircle * Longexit,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 
;

16 comments

1. Divyesh

@kv_maligi,
Vishwanath Sir,

may i have your opinion please….!

and can i request Guru Anand for opinion about this S/L and Profit Booking Signals…?

thank you sir.

Divyesh

2. Divyesh

@kv_maligi,
Vishwanath Sir, Guru Anandst,
Sir one very great thing in this AFL which indicates change of Trend….!!!

can you spot out….?

Sorry Sir, i am asking the experts….!

Divyesh

3. senthil4577

thanks sir, but which frame is very suitable?

4. Divyesh

@Senthil4577,
this is Best and excellant Fit on Daily TF….

thank you

5. sam_m400

can you please add those triggers as message alert so that it is easy for anybody to recognize as currently it is confusing as red dot after green , green after etc .

triggers

1.Green Dot at Low indicates Short Cover.
2.Red Dot at up indicates Book Long.

3.if after Green Dot, Red Dot appeares in further candle, one can again re enter Short AND Hold Short….

4.if after Red dot, green Dot appeares in further candal, one can again re enter Long AND Hold Long…….

6. anandnst

i m not happy in Intraday Time frame. Daily it is working fine.

7. Divyesh

@anandnst ,
Yess Sir, it is best for Daily time frame…!

as i understands positional is the best tread to earn rather intraday…!

Thank you sir,

Divyesh

8. navin

hi

i try to make some optimize parameter to set diff para as per diff company

A =  Optimize("A",Param("A",2,1,10,1),1,10,1);
B =  Optimize("B",Param("B",4,1,10,2),1,10,2);
CC =  Optimize("CC",Param("CC",8,1,10,2),1,10,2);
D =  Optimize("D",Param("D",17,1,10,3),1,10,3);
E =  Optimize("E",Param("E",34,1,10,3),1,10,3);


EMA2=EMA(C,A);
EMA4=EMA(C,B);
EMA8=EMA(C,CC);
EMA17=EMA(C,D);
EMA34=EMA(C,E);
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);



plese give your comment



Navin.............
9. Divyesh

@Admin,kv_maligi,anandst,prasadmuni,

and any experts please can you solve my query….?

i have below given function for 15 min time….!

WriteIf(TimeNum()>092900

now i want to use for 45 min time…..!!!
what to change….?

anyone please guide me….!

thank you…..

Divyesh

10. kv_maligi

Dear Divyesh,

Diily TF is OK, do not go for intraday. Probability of success goes down. Not only this AFL, you take any strategy, intraday ( for both cash & futures) is not good. This strategt is for FII, MF & big guys in the market who trades with other people money. For retailers with own money, the best is daily time frame strategies.

There is one more strong reason is: price fluctuates against the trends in small TF. do you know why? Think this scenario.

Monthly TF say Buy
weekly TF say sell
daily TF say sell
4H TF says buy
H TF says sell
15min TFs say buy
5min TF says buy

you how the price gets fucked up & down?

All this big guys exspecially FII use fully automated buy sell systems, taking care of above scenarios with deep pockets. Do you think that reatilers can compete with them.

Even your AFL with daily TF is ok, not the best.
why? It does not have buy/sell signal ratings. I mean strong buy or normal buy….
you have good zeal in developing something great,
Please try in this approach

Thanks
Viswanath

11. Divyesh

@kv_maligi,
Vishwanath Sir,

thank you very much sir, so kindness of you. really get happy from your valueble support. but sir i have great problem which becomes heradels in my zeal is i dont know AFL laungage. All this work is made by triels and errors and now getting understand the function of AFL but not perfectlly…!

all this i learnt myself noone had teach me and programming is not my job or subject…!
Sir, you are right in your saying:- “Even your AFL with daily TF is ok, not the best.
why? It does not have buy/sell signal ratings. I mean strong buy or normal buy….”
but sir hear is only one criteria….! how can we get differ the valuation wether strong or medium or weak…?
allthough i will try to work on this thing too….promise…!
will go further ahead defenatelly.

Thank you very much once again…

Divyesh.

Sir, can you give me answer of above giving query…?

12. Muralikrishna

hi Vishwanath Sir, A lot of great things explain by u sir. thank u sir and thank u divyesh,

13. kv_maligi

Dear Divyesh,

Plz use following code. I do not know what is there in your mind, it will help you as per your idea.

Time_Value = TimeNum() == Time_To_Num(“094500”);
valueWhen(Time_Value, C,1); ………..etc

I will one example for strong/medium/weak buy sell

You take 3 emas, for example 30, 60 & 120.

strong buy = ema cross of 30 & 60 above 120 ema
medium buy = ema cross of 30 & 60 between 120 ema
weak buy = ema cross of 30 & 60 below 120 ema

The same is true in reverse for sell.

Also when you take Higher TF, it is easy to feel the trend as there will be less number of bars on the chart.

At lower TF, your chart is filled with many candles, just you loose the goal & what is heppening in the market.

Thanks
viswanath

14. Divyesh

@kv_maligi,
Vishwanath Sir,
in many conditions we need closing prise. in nifty and many stocks closing prise is differe than L.T.P…..!
closing prise is average prise of last half hour. i cant made that function can you help me…?

15. tsarvjit

I have been trading intraday for last 7 years. I did not find any difference in intraday trading and daily trading . Intraday is mirror image of any trade in higher time frame . Here you are to be quick in adapting to new change . If you know your simple indicators well , i dont think you will find any difficulty . Problem comes when you dont see present and try to predict market and market surprises you always . Stick to present only .I am using simple pivots with rsi , macd and stochastics with consistent profits . Any system which works well in one time frame should work well in other too.

16. anandnst

Hello Divyesh for u (My View)

Well, i also believe Daily timeframe is best.

Condition ::

You should study previous day (Daily charts) n according to that.. should take ur Intraday decisions for Perfect n profitable trades.

Try n watch the results.

Thnx you

Regards

Anand

Leave Comment

Please login here to leave a comment.

Back