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

Rating:
3 / 5 (Votes 2)
Tags:
amibroker

USE FOR INTRADAY INFTY TRADING

autometic buy and sell signal

buy signal :- green arrow

sell signal :- purple arrow

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez over 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn over 13 years ago
3_6Day GuaiLiLv
Submitted by motorfly over 13 years ago
Williams Alligator System
Submitted by durgesh1712 over 13 years ago
*Level Breakout system*
Submitted by Tinych over 13 years ago
Horizontal Live Priceline Tool
Submitted by northstar over 13 years ago

Indicator / Formula

Copy & Paste Friendly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
// Renko  Chart
// Graham Kavanagh  13 Aug 2004 ver C - MODIFIED BY m.p.patil
// Custom Indicator, date axis does not apply
 
 
 SetBarsRequired(10000,10000);
 
// Brick size is dependant on what you want, if too small will not produce a chart due to insufficient x-axis bars
//Brick = LastValue( ATR(100) );
//Brick = LastValue( Max(0.02*C, 0.05) );
Brick = Param( "Brick Size", 4, 0.01, 1.00, 0.01 );
reverse = 1;
 
// Convert the closing price to rising and falling rounded bricks
CF = ceil(H/Brick);
CR = floor(L/Brick);
 
// initialize first element
j = 0;
RKC[j] = CF[0];
RKO[j] = CF[0] + 1;
 
down[j] = 1;  // By default the first bar is a down bar.
up[j] = 0;
 
// Loop to produce the Renko values in number of bricks
 
for( i=1; i<BarCount-1; i++ )
{
if( CF[i] <= RKC[j] - 1 && down[j] ) // Continue down
    {
        num = RKC[j] - CF[i];
        for( x=1; x<=num; x++ )
        {
            j++;
            up[j] = 0;
            down[j] = 1;
            RKC[j] = RKC[j-1] - 1;
            RKO[j] = RKC[j] + 1;
        }
    }
    else
    {
        if( CR[i] >= RKC[j] + Reverse && down[j] )  // Change down to up
        {
            num = CR[i] - RKC[j];
            j++;
            up[j] = 1;
            down[j] = 0;
            RKC[j] = RKC[j-1] + 2;
            RKO[j] = RKC[j] - 1;           
            for( x=2; x<=num; x++ )
            {
                j++;
                up[j] = 1;
                down[j] = 0;
                RKC[j] = RKC[j-1] + 1;
                RKO[j] = RKC[j] - 1;
            }
        }
        else
        {
            if( CR[i] >= RKC[j] + 1 && up[j] ) // Continue Up
            {
                num = CR[i] - RKC[j];
                for( x=1; x<=num; x++ )
                {
                    j++;
                    Up[j] = 1;
                    Down[j] = 0;
                    RKC[j] = RKC[j-1] + 1;
                    RKO[j] = RKC[j] - 1;
                }
            }
            else
            {
                if( CF[i] <= RKC[j] - Reverse && up[j] )  // Change up to down
                {
                    num = RKC[j] - CF[i];
                    j++;
                    Up[j] = 0;
                    Down[j] = 1;
                    RKC[j] = RKC[j-1] - 2;
                    RKO[j] = RKC[j] + 1;
                    for( x=2; x<=num; x++ )
                    {
                        j++;
                        up[j] = 0;
                        down[j] = 1;
                        RKC[j] = RKC[j-1] - 1;
                        RKO[j] = RKC[j] + 1;
                    }
                }
            }
        }
    }
}
 
 
// move the chart to right end of chart space, ie last brick on last bar position
delta =  BarCount-1 - j;
 
RKC = Ref( RKC, -delta );
RKO = Ref( RKO, -delta );
 
Up = Ref( Up, -delta );
Down = Ref( Down, -delta );
 
/*
rC = RKC * Brick;// + (Up-down)*Brick/2;
rO = RC - (Up-down)*Brick;
rH = Max(rC,rO);
rL = Min(rC,rO);
*/
 
 
C = RKC * Brick;// + (Up-down)*Brick/2;
O = C - (Up-down)*Brick;
H = Max(C,O);
L = Min(C,O);
 
Plot( C, "", colorCustom9,styleCandle);
// plot chart
//plotOHLC( rO, rH, rL, rC, "Renko Price " , colorBlack, styleCandle);
 
Buy=Up;
PlotShapes(shapeUpArrow*Buy,colorGreen, 0, L );
Sell=Down;
PlotShapes(shapeDownArrow*Sell,colorRed, 0, H );
 
 
 
GraphXSpace=5;
 
 
 
 
 
 
 
_SECTION_BEGIN("EMA1 EMA 5");
 
x = EMA(C,1);
y = EMA(C,5);
 
Buy=Cross(x,y);
PlotShapes(shapeUpArrow*Buy,colorAqua, 0, L );
Sell=Cross(y,x);
PlotShapes(shapeDownArrow*Sell,colorBlue, 0, H );
Plot(EMA(C,1),"",colorCustom9,styleLine);
//Plot(EMA(C,5),"",colorRed,styleLine);
AlertIf( Buy, "SOUND C:\\Windows\\Media\\notify.wav", "Audio alert", 2 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );
XR=(EMA(C,1) * (1 / 1 - 1) - EMA(C,5) * (1 / 5 - 1)) / (1 / 1 - 2 / 5);
 
//Indicators
 
 
_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 1, 1, 100, 1 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCustom9 ), ParamStyle("Style") );
_SECTION_END();
 
_SECTION_BEGIN("MA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 5, 1, 100, 1 );
//Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorRed ), ParamStyle("Style") );
_SECTION_END();
 
///////////displaced moving average////////////////////////
x1=MA(C,3);
x2=Ref(C,1);
Plot(x2,"3 displaced 3 MA ",0,5);
 
Buy=Cross(x2,x1);
PlotShapes(shapeUpTriangle*Buy,colorCustom9, 0, L );
Sell=Cross(x1,x2);
PlotShapes(shapeDownTriangle*Sell,colorCustom12, 0, H );
//Plot(MA(C,3),"",colorRed,styleLine);
Plot(Ref(C,1),"",colorRed,styleLine);
AlertIf( Buy, "SOUND C:\\Windows\\Media\\notify.wav", "Audio alert", 2 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );
_SECTION_END();
 
 
/****************************************
 
Name            :   Logic All In One for Intraday
Date            :   10th JAN 2009
Author        : mohan
E-Mail ID     :  mohanpatil.72@gmail.com
 
*****************************************/
 
 
 
EnableTextOutput(False);
 
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
Title_X =   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", colorWhite ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
SetChartBkGradientFill( ParamColor("BgTop", colorBlack),ParamColor("BgBottom", colorBlack), ParamColor("Title", colorDarkTeal));
SetChartBkColor(ParamColor("Background", colorBlack));
_SECTION_END();
 
//Indicators
 
_SECTION_BEGIN("Indicators");
RSI_Periods     =   Param("RSI Periods", 5, 1, 100, 1);
MA_Periods      =   Param("Periods for MAV", 50, 1, 200, 1);
Daily_Trend_MA_Pds  =   Param("Periods for Trend EMA", 6, 1, 100, 1);
_SECTION_END();
 
SetBarsRequired(100000, 100000);
 
// Find nearest UP and DOWN bar before current bar
Up_Day  =   Close > Open;
Down_Day    =   Close < Open;
Reference_Low   =   ValueWhen(Up_Day, L, 1);
Reference_High  =   ValueWhen(Down_Day, H, 1);
Buy_Condition   =   C > O AND C > Reference_High;
Sell_Condition  =   C < O AND C < Reference_Low;
a= Buy_Condition;
b= Sell_Condition;
state=IIf(BarsSince(a)<BarsSince(b),1,0);
s=state>Ref(state,-1);
ss=state<Ref(state,-1);
sss=state==Ref(state,-1);
col=IIf(state == 1 ,51,IIf(state ==0,4,1));
Buy_Views = WriteIf(s,"EXIT ALL SHORT POSITIONS\n AND TRADE LONG WITH STOPLOSS="+EncodeColor(colorLime)+WriteVal(L,1.2)+",","");
Sell_Views =    WriteIf(ss,"EXIT ALL LONG POSITIONS \n AND TRADE SHORT WITH STOPLOSS="+EncodeColor(colorRed)+WriteVal(H,1.2)+",","");
 
 
// RSI and Vol ratio calculation
RSI_Value       =   RSI(RSI_Periods);
MAV_Value   =   V/EMA(V, MA_Periods);
 
//Percentage change
 
s=C-Ref(C,-1);
t=(s/Ref(C,-1))*100;
Percentage= t;
 
//Percentage Change in Volume
 
w = V -Ref(V,-1);
x = (w/Ref(V,-1))*100;
Volume_Ratio = x;
//Volume_Ratio = V/EMA(V,50);
//Conditions
 
Condition1 = Percentage > 0.5 AND Volume_Ratio > 1.5;
Condition2 = Percentage > 1 AND Volume_Ratio < -1.5;
Condition3 = Percentage < 0 AND Volume_Ratio > -1.5;
Condition4 = Percentage < 1 AND Volume_Ratio < 1.5;
Condition5 = IIf(NOT Condition1 AND NOT Condition2 AND  NOT Condition3 AND  NOT Condition4, True,False);
 
 
Fresh_Buying = WriteIf(Condition1,"Fresh Buying", "");
Short_Covering = WriteIf(Condition2,"Short Covering", "");
Fresh_Short_Building = WriteIf(Condition3,"Fresh Short Building", "");
Possible_Bottom = WriteIf(Condition4,"Possible Bottom or Top", "");
No_Major_Move = WriteIf(Condition5, "No_Major_Move","");
 
//interpretation output
 
EnableTextOutput(True);
"\nSell Below: " + WriteVal(ValueWhen(Up_Day, L, 1), 1.2);
"Buy Above : " + WriteVal(Reference_High, 1.2);
"";
"Current RSI Value: " + WriteVal(RSI_Value, 1.2);
"Current Vol. Ratio: " + WriteVal(MAV_Value, 1.2);
"";
"Fresh Buying: " + WriteIf(Condition1,"Fresh Buying","");
 
EnableTextOutput(False);
 
Filter = Buy_Condition OR Sell_Condition;
 
// Trading System
PositionSize = BuyPrice * 1;
Buy     = Buy_condition;
Sell    = Sell_condition;
Buy     = ExRem( Buy, Sell );
Sell    = ExRem( Sell, Buy );
 
// Experimental Code BEGIN
Is_Last_Bar =   BarIndex()+1    == BarCount;
printf("Last Bar: %g\n", Is_Last_Bar);
Buy_Alert   =   Buy AND Is_Last_Bar;
Sell_Alert  =   Sell AND Is_Last_Bar;
Buy_Alert_Text  =   WriteIf(Buy_Alert, "BUY WARNING!!!", "");
Sell_Alert_Text =   WriteIf(Sell_Alert, "SELL WARNING!!!", "");
Buy_Alert_Text1 =   WriteIf(Buy_Alert, "BUY", "");
Sell_Alert_Text1    =   WriteIf(Sell_Alert, "SELL", "");
LastbarsignalCol        =   IIf(Buy_Alert, colorGreen, IIf(Sell_Alert, colorRed, colorLightGrey));
 
 
//Buy & Sell Arrows Signal
PlotShapes(shapeCircle  * Buy_Alert, colorLime, 0, L, -50);
PlotShapes(shapeCircle * Sell_Alert, colorRed, 0, H, -50);
//PlotShapes(shapeUpTriangle * Buy * (NOT Is_Last_Bar), colorLime, 0, L, -50);
//PlotShapes(shapeDownTriangle * Sell * (NOT Is_Last_Bar), colorRed, 0, H, -50);
 
//Alerts Singal for Buy & Sell
AlertIf(Buy, "SOUND C:\\Windows\\Media\\Ding.wav""Buy Triggered!", 1, 8);
AlertIf(Sell, "SOUND C:\\Windows\\Media\\Ding.wav""Sell Triggered!", 2, 8);
 
// Check if previous day's close is above its 6-day EMA
DailyClose  =   TimeFrameCompress(Close, inDaily);
DailyEMA        =   EMA( DailyClose, Daily_Trend_MA_Pds);
DailyClose      =   TimeFrameExpand(DailyClose, inDaily, expandFirst);
DailyEma        =   TimeFrameExpand(DailyEMA, inDaily, expandFirst);
 
// Trend detection based on 6EMA for Daily
Daily_Trend_UP              =   DailyClose > DailyEMA;
Daily_Trend_DOWN            =   DailyClose < DailyEMA;
Trend_UP_Text       =   WriteIf(Daily_Trend_UP, "Daily Trend UP", "");
Trend_DOWN_Text =   WriteIf(Daily_Trend_DOWN, "Daily Trend DOWN", "");
Trend_Neutral_Text  =   WriteIf(NOT Daily_Trend_DOWN AND NOT Daily_Trend_UP, "Neutral", "");
TrendCol        =   IIf(Daily_Trend_UP, colorGreen, IIf(Daily_Trend_DOWN, colorRed, colorLightGrey));
 
 
/** Debug BEGIN  */
printf("\nDaily Close: %g ", DailyClose);
printf("\nDaily Trend: %g", (DailyEMA));
/*      Debug END ****/
 
//Inerpretation
Title   =   Title_X + "\n"  +
 
            EncodeColor(colorBlack) + "RSI(" + WriteVal(RSI_Periods, 1)  + "):  " +
            EncodeColor(colorBrightGreen) + WriteVal(RSI_Value, 1.2) + "\n" +
            EncodeColor(colorBlack) + "Vol. Ratio: " + EncodeColor(colorDarkGreen) + WriteVal(MAV_Value, 1.2) + "\n" +
            EncodeColor(colorRed) + Trend_Down_Text + EncodeColor(colorLime) + Trend_Up_Text +
            EncodeColor(colorWhite) + Trend_Neutral_Text +  "\n" +
          EncodeColor(colorRed) + Sell_Alert_Text + EncodeColor(colorLime) + Buy_Alert_Text + "\n" +
          EncodeColor(colorRed) + Fresh_Short_Building + EncodeColor(colorLime) + Fresh_Buying + EncodeColor(colorWhite) + Short_Covering + EncodeColor(colorWhite) + Possible_Bottom +"\n" +
          EncodeColor(colorBrightGreen)+ "Buy Above : " + WriteVal(Reference_High, 1.2)+ "\n" +
          EncodeColor(colorCustom5) + "Sell Below: " + WriteVal(ValueWhen(Up_Day, L, 1), 1.2) + "\n" +
          EncodeColor(colorCustom12) + "Trend value: " + WriteVal(DailyEMA,1) +"\n"+
          EncodeColor(colorBlue)+ Buy_Views + EncodeColor(colorBlue)+ Sell_Views;
           
 
//M Ramu Povit Point
 
DayH = TimeFrameGetPrice("H", inDaily, -1);     // yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1);     //              low
DayC = TimeFrameGetPrice("C", inDaily, -1);     //              close
DayO = TimeFrameGetPrice("O", inDaily);         // current day open
Dayz = TimeFrameGetPrice("C", inDaily, -6);     //      six days close
if ( True )
{
PP = (Dayc + Dayc -6 )/2;
R1  =  Dayc + (DayH - DayL)/2;
S1  =  Dayc - (DayH - DayL)/2;
R2  =  Dayc + (DayH - DayL);
S2  =  Dayc - (DayH - DayL);
}
Plot(pp, "PP",colorYellow,styleDots+styleNoLine);
Plot(R1, "R1",colorBlue,styleDots+styleNoLine);
Plot(S1, "S1",colorRed,styleDots+styleNoLine);
Plot(R2, "R2",colorBlue,styleDots+styleNoLine);
Plot(S2, "S2",colorRed,styleDots+styleNoLine);
 
 
//Average, Volitility & Percentage Scale.
av3=V/EMA(V,50);
V1= MA(V,50);
r = RSI(5);
s=C-Ref(C,-1);
t=(s/Ref(C,-1))*100;
p=H-L;
q=(p/Ref(C,-1))*100;
 
//Explore Options
 
Filter = 1; /* all symbols and quotes accepted */
//filer = Buy OR Sell ;
AddColumn(Open,"OPEN",1);
AddColumn(High,"HIGH",1);
AddColumn(Low,"LOW",1);
AddColumn(Close,"CLOSE",1);
AddColumn(t,"Per",1.2);
AddColumn(V,"VOLUME",1);
AddColumn(V1,"AGV VOLUME",1);
AddColumn(av3,"RATIO50",1.2);
AddColumn(r,"RSI",1);
AddTextColumn(WriteVal(Reference_High, 1.2),"BUY ABOVE",colorWhite,colorGreen);
AddTextColumn(WriteVal(ValueWhen(Up_Day, L, 1), 1.2),"SELL BELOW",colorWhite,colorRed);
AddTextColumn(Trend_Down_Text + Trend_Up_Text,"DAILY TREND",1,colorWhite,TrendCol);
AddTextColumn(Buy_Alert_Text + Sell_Alert_Text,"LAST BAR SIGNAL",1,colorWhite,Lastbarsignalcol);
 
//Moveing Average 5EMA
P = ParamField("High",-1);
Periods = Param("High", 5, 2, 200, 1, 10 );
//Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow ), ParamStyle("Style") );
 
Title = Name() + " - {{INTERVAL}} {{DATE}} - NIFTY INTRADAY -(INDIA)  - TIME/DATE AXIS NOT RECOMENDED - ACT ON 3 RD GREEN/RED BOX REVERSAL : Last Value = " + RKC * Brick ;
 
 
 
// Plot Buy Values on the Chart
 
//for( i = 0; i < BarCount; i++ )
//{
//if( Buy[i] ) PlotText( "Buy\n@" + C[ i ], i, L[ i ], colorBlue);
//if( Sell[i] ) PlotText( "Sell\n@" + C[ i ], i, H[ i ], colorYellow);
//}

1 comments

1. manuski

it is showing 12 errors.

Leave Comment

Please login here to leave a comment.

Back