Simple Coding Help - No Promise.

Hi @Romeo1998 and other Seniors:

Can someone help me with combining the Williams Trailing Stop script that works on Trading View (1st attachment) with the subsequent script for Williams Alligator AFL (2nd attachment) ?

The objective is to combine the two scripts into One AFL

Thanks
 

Attachments

Romeo1998

Well-Known Member
Hi @Romeo1998 and other Seniors:

Can someone help me with combining the Williams Trailing Stop script that works on Trading View (1st attachment) with the subsequent script for Williams Alligator AFL (2nd attachment) ?

The objective is to combine the two scripts into One AFL

Thanks
Madamji, i dont use Amibroker anymore, maybe someone else will be able to help, good luck :)
 
Hi guys i am gald to be with experts and good knolge helpfull people

and nice to shar idea or what i hope to development by Amibroker

accully tha idea of the indcator developed by Aelxander Elder
It call Bear power and its the differnce between the lowest price of the day and 13 ema standard above or below zero line with scan what is advantage with Amibroker





thank you in advance
 
Hi all seniors,

I'm backtesting buying at 9:30 and selling 11:30 am. I'm not able to pick the "Time" -- it is showing as 0 on the plot and no results are shown on the Analysis page.

Could you please help?

thanks so much!

Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );




Time = TimeNum();
Plot(Time, "Time", colorYellow);



    Buy = (Time == 093000);
    Sell = (Time == 113000);
    
    Buy = ExRem(Buy, Sell);
    Sell = ExRem(Sell, Buy);
    
    BuyPrice = SellPrice = Open;



_SECTION_END();
 
Hi Romeo ji

I need this code for 75 Minutes instead of 15 Minute

nd=(Minute()%15==0);
prh = ValueWhen(nd,TimeFrameGetPrice("H", in15Minute, -1));
prl = ValueWhen(nd,TimeFrameGetPrice("L", in15Minute, -1));
x = 2;

Please modify and post.
Thank you
 

chintan786

Well-Known Member
Hi the following afl code is for plotting of Low Volume bar Hi/Low from beginning of the day. But i want from beginning of the day only from when previous candle volume is less than the present candle. i have tried so many ways but could not succed .please any one ... thanks in advance....

_SECTION_BEGIN("VK LVB");
n=Day() != Ref(Day(), -1);
a=lowestSince(n,V);
hh=ValueWhen(V==a,H);
ll=ValueWhen(V==a,L);
hr = ValueWhen(V==a,Hour());
mn = ValueWhen(V==a,Minute());
plot(hh,"\nLVhb ",coloryellow,styleDashed);
Plot(ll,"\nLVlb @ ("+hr+" : "+mn+") ",colorblue,styleDashed);
PlotOHLC(ll,hh,ll,hh,"",colorBlack,styleCloud|stylenotitle,0,0,0,-2);
_SECTION_END();



Regards
Mano
Hi, try this. u can add below code to your afl. see if it serves your purpose
Code:
kt = V >  Ref(V,-1) AND AlmostEqual((Ref(V,-1)) ,  LowestSince(n,V));

ktl = ValueWhen(kt, L);

ktz = Cross (ktl,C) AND C < o;
PlotShapes(IIf(ktz, shapeDownArrow, shapeNone),colorYellow, 0, H, Offset=-90);
 

Similar threads