Simple Coding Help - No Promise.

sr114

Well-Known Member
i want to know something off topic ,i have amibroker database created in old 32bit system(window is 32bit) .now want to shift this database along with amibroker in a new built with ssd and window10 64 bit system. will it work? amibroker database will be also install in ssd
No problem , just install amibroker in ssd and copy the database (old one) in amibroker folder. It will work flawlessly.
 
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 HappySingh ji
I need to include ichimoku cloud into this multi chart setup. Please check if this is possible.


Ichimoku code


t1= 9;t2=26;t3=52;

SL = ( HHV( H, 26 ) + LLV( L, 26) )/2;
TL = ( HHV( H, 9 ) + LLV( L, 9 ) )/2;
KS = ( HHV( H, 52 ) + LLV( L, 52) )/2;


Lagging = Ref( C, 26 );

Span1 = (( SL + TL )/2);
Span2 = (HHV( H, 52) + LLV(L, 52))/2;

aboveKumo=IIf((C>=Ref(Span1,-t2) AND C>=Ref(Span2,-t2)),1,0);
withinKumo=IIf((C>=Ref(Span2,-t2) AND C<=Ref(Span1,-t2)),1,0) OR IIf((C>=Ref(Span1,-t2) AND C<=Ref(Span2,-t2)),1,0);
belowKumo=IIf((C<=Ref(Span1,-t2) AND C<=Ref(Span2,-t2)),1,0);


PlotOHLC(Span1,Span2,Span1,Span2,"",IIf(Span1>Span2,colorDarkYellow,colorBlueGrey),styleCloud|4096,0,0,26);// span out 26 days
 

Attachments

Hi HappySingh ji
I need to include ichimoku cloud into this multi chart setup. Please check if this is possible.


Ichimoku code


t1= 9;t2=26;t3=52;

SL = ( HHV( H, 26 ) + LLV( L, 26) )/2;
TL = ( HHV( H, 9 ) + LLV( L, 9 ) )/2;
KS = ( HHV( H, 52 ) + LLV( L, 52) )/2;


Lagging = Ref( C, 26 );

Span1 = (( SL + TL )/2);
Span2 = (HHV( H, 52) + LLV(L, 52))/2;

aboveKumo=IIf((C>=Ref(Span1,-t2) AND C>=Ref(Span2,-t2)),1,0);
withinKumo=IIf((C>=Ref(Span2,-t2) AND C<=Ref(Span1,-t2)),1,0) OR IIf((C>=Ref(Span1,-t2) AND C<=Ref(Span2,-t2)),1,0);
belowKumo=IIf((C<=Ref(Span1,-t2) AND C<=Ref(Span2,-t2)),1,0);


PlotOHLC(Span1,Span2,Span1,Span2,"",IIf(Span1>Span2,colorDarkYellow,colorBlueGrey),styleCloud|4096,0,0,26);// span out 26 days
Any seniors please help me to add ichimoku cloud in the attached afl
 
Hi, could you help me do a scan for stock meet the requirement please
1, draw resistance line which were test at least 3 time in the past 1 year
2, in last 2 day, price open and closing above resistance line
3, SMA 20 above SMA 40, MA 50 above MA 150
4, 2 of following indicator generate buy signal
Force Index > 0
Parabolic SAR below the candle ( bullist signal)
MACD 12, 26, 9 below 0 and going up
Thanks you very much
 
Hi everybody,
could you help me for afl code please
Im trying to do a scan afl code work for amibroker meet 4 thing
1, Ma 200 below ma 150, ma 150 below ma 50
2, Stoch static < 30
3, volume in 1 year > 10,000 per day (and can adjust)
4, 3 last day candle, any of open, close, high, low pirce is +- 1 ATR to Ma50

Could any one help me please
Thanks you very much
 
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 :)
 

Similar threads