Simple Coding Help - No Promise.

bunti_k23

Well-Known Member
This MAMA system looks 1bar into future.:)beware when using.
 

josh1

Well-Known Member
I was also using that AFL previously. But if you want to check for some intermediate days, you will not get those lines. Now with this AFL, you will get those lines. For example, if you are looking for, say, 2nd dec, this AFL will draw lines of 2nd Dec Hi, Lo and 1st dec hi, lo and close.
I do not find ways to grab Y axis range in AFL so far. If we can get that, then we can draw lines for 00 and 50s.
LVG,

I found the way. Following will give Y axis bottom and top.
Miny = Status("axisminy");
Maxy = Status("axismaxy");

Now we have to locate round numbers within this. May be we can parameterize 10, 50 , 100.

By the way, the other AFL also draws lines for all previous days. It is part of "Essential Trader Tools.afl". I had made changes to it to show only one day since the chart looks messy in hourly time frame.
 
Last edited:

lvgandhi

Well-Known Member
LVG,

I found the way. Following will give Y axis bottom and top.
Miny = Status("axisminy");
Maxy = Status("axismaxy");

Now we have to locate round numbers within this. May be we can parameterize 10, 50 , 100.

By the way, the other AFL also draws lines for all previous days. It is part of "Essential Trader Tools.afl". I had made changes to it to show only one day since the chart looks messy in hourly time frame.
What I meant is not all previous days. If the last visible bar is for 2nd dec, then we should see only hi lo of 2nd and hi, lo, close of 1st dec and no more hi los..
Thanks for this info. The following code draws smallsquare shape in all visible 50's
Miny = Status("axisminy");
yl = int(Miny/50)*50;
Maxy = Status("axismaxy");
yh = int(Maxy/50)*50;
i=yl;
while( i>= yl AND i<=yh )
{
PlotShapes(shapeSmallSquare,colorGold,0,i,0);
i=i+50;
}
 
Last edited:

lvgandhi

Well-Known Member
LVG,

I found the way. Following will give Y axis bottom and top.
Miny = Status("axisminy");
Maxy = Status("axismaxy");

Now we have to locate round numbers within this. May be we can parameterize 10, 50 , 100.

By the way, the other AFL also draws lines for all previous days. It is part of "Essential Trader Tools.afl". I had made changes to it to show only one day since the chart looks messy in hourly time frame.
Now AFL with RNs working given below
--------------
_SECTION_BEGIN("PreDHLCDayHLRN");
x=LastVisibleValue(DateNum());
Hor0 = Param("Hor0",900,0,1368,1);
Ver0 = Param("Ver0",30,0,768,1);

Cond=BarsSince(DateNum()<x);
y=Ref(DateNum(),-Cond);
Cond1=BarsSince(DateNum()<LastValue(y));
z=Cond1-Cond;
Hi0=HHV(H,Cond);
Hi0bar=HHVBars(H,Cond);

x20=BarCount-LastValue(Cond);
x21=BarCount-1;
y20=LastVisibleValue(Hi0);
y21=y20;
Line2 = LineArray( x20, y20, x21, y21, 1 );
Plot( Line2, "day high line", colorOrange,styleThick|styleNoTitle);

Li0=LLV(L,Cond);
Li0bar=LLVBars(L,Cond);

x30=BarCount-LastValue(Cond);
x31=BarCount-1;
y30=LastVisibleValue(Li0);
y31=y30;
Line3 = LineArray( x30, y30, x31, y31, 1 );
Plot( Line3, "day low line", colorTurquoise,styleThick|styleNoTitle );

Hi=Ref(HHV(H,z),-Cond);
Hibar=Ref(HHVBars(H,z),-Cond)+Cond;
x0=BarCount-1-LastValue(Hibar);
x1=BarCount-1;
y0=LastValue(Hi);
y1=y0;
Line = LineArray( x0, y0, x1, y1, 1 );
Plot( Line, "high line", ParamColor("high line", colorGreen),styleThick|styleNoTitle );

pc=Ref(Close,-Cond);

x10=BarCount-1-LastValue(Cond);
x11=BarCount-1;
y10=LastValue(pc);
y11=y10;

Line1=LineArray( x10, y10, x11, y11, 1 );
Plot( Line1, "Close line", ParamColor("close line", colorWhite),styleThick|styleNoTitle );

Lo=Ref(LLV(L,z),-Cond);
Lobar=Ref(LLVBars(L,z),-Cond)+Cond;

x00=BarCount-1-LastValue(Lobar);
x01=BarCount-1;
y00=LastValue(Lo);
y01=y00;

Line11=LineArray(x00,y00,x01,y01,1);
Plot(Line11,"Low Line",ParamColor("Low line", colorBlue),styleThick|styleNoTitle);

yh = int(Max(y0,y20)/50)*50;
yl = int(Min(y00,y30)/50)*50;

i=yl;
while( i>= yl AND i<=yh )
{i1 = i;
Linex=LineArray(x0,i,x1,i1);
Plot(Linex,"",colorGold,styleThick|styleNoTitle);
i=i+50;
}
_SECTION_END();
--------------
 

amitrandive

Well-Known Member
Senior Sirs,
When I peruse the net I found that the http://superbstockgain.com is publishing impressive performance on intraday Bank Nifty trade.
Can any seniors infer(guess) what strategy or AFL is followed by them. Any similar strategy or AFL find place in Traderji.
From
RaniHosur
Think Again

If they are charging Rs 20,000 a month for giving Jackpot calls ,why are they running advisory services????
They claim 95-98% accuracy.
Why not use their own calls and become Multibillionaires ????
Why run advisory services ????

Ask them to give report of their performance for at least six months.
And stop searching for such Holy Grails.They do not exist.
 

TradeOptions

Well-Known Member
Think Again

If they are charging Rs 20,000 a month for giving Jackpot calls ,why are they running advisory services????
They claim 95-98% accuracy.
Why not use their own calls and become Multibillionaires ????
Why run advisory services ????

Ask them to give report of their performance for at least six months.
And stop searching for such Holy Grails.They do not exist.
People who claim that kind of accuracy levels are just trying to lure the newbies and steal their money.
 

casoni

Well-Known Member

Similar threads