Simple Coding Help - No Promise.

Hello,
1.i usually follow previous day fibonacci level So i wish to know how i can write in afl
that when the price touches n'Th time (say 3rd time) the 61% level i should get a signal.
i already have afl for fibonacci level afl.

2How i can use todays open in amibroker when analysing intraday charts. I wish to know gap downs and gap ups.
Thanks in advance
 
Last edited:
Hello all :thumb: and thanks for advanced help
Can anyone convert this very easy code from Tradestation to afl
i use this for reversal trading in ts thanks for your help.

Code:
Variables:BB_DC(0),CTD(0);

IF LOW > BollingerBand(CLOSE, 48,-1.8) THEN BB_DC=   0;
IF LOW < BollingerBand(CLOSE, 48,-1.8) THEN BB_DC= -1.24;

IF BB_DC[1] = -1.24 THEN  CTD = -2.8; 
IF CTD <> 0 THEN CTD = CTD +.3; 
IF CTD >0 THEN CTD =0;
BB_DC=BB_DC + CTD; 
IF BB_DC < -1.24 THEN BB_DC = -1.24;
SH_BANDS =BB_DC ;

plot1(SH_BANDS,"SH_BANDS");
sorry thanks my problem is solved
 
Last edited:

cellclinic

Well-Known Member
Any Help Possible On This Jee ???

Hello Friends :)

Again Needed a help ...

1. Price Below day open sell only or above open Buy Only
2. Buy Only If Price Is Above Open Of The Day & RSI 39 Above 50 Level Vice Versa For Sell Condition
3. Exit Only If Rsi 39 Is Below 50 Levels & Price Is Below 39 EMA Vice Versa For Sell Condition
4. Re-enter If Price Remains Above Day Open & Closed Above 39 EMA Along With 39 RSI Closed Above 50 Level Same For Sell Conditions
5. Needed Buy - Sell & Short - Cover For Entry & Exit & Re - Entry .

Hoping It Is Not Complicated To Masters :)

Thanks In Advance Jee :)
 
Hi experts. hope this time you help. I have one afl based on ma cross. I want in it to add stoploss manually and trailing stoploss auto 10 points above 20 sma or if sutsian 5 minutes above 20sma. Trailing start after 15 points. All the numbers can be changed based on timeframe.If so please help. Thanz in advance.

--------------------------------

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = 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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();


_SECTION_BEGIN("ma_crossover");
x = MA(Close,8);
y = MA(Close,13);
Plot(MA(Close,8),"",colorRed,styleLine);
Plot(MA(Close,13),"",colorDarkGreen,styleLine);

Buy=Cross(x,y);
PlotShapes(shapeUpArrow*Buy,colorGreen);
XR=(MA(Close,8) * (2 / 6 - 1) - MA(Close,13) * (2 / 11 - 1)) / (2 / 6 - 2 / 11);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"8/13 MA " +EncodeColor( colorRed )
+ " O " + O + " H " + H + " L " + L + " C "+ C + "\n";

Sell=Cross(y,x);
PlotShapes(shapeDownArrow*Sell,colorRed);
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );
XR=(MA(Close,13) * (2 / 6 - 1) - MA(Close,8) * (2 / 11 - 1)) / (2 / 6 - 2 / 11);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"8/13 MA " +EncodeColor( colorRed )
+ " O " + O + " H " + H + " L " + L + " C "+ C + "\n";

_SECTION_END();
 

princy01

Well-Known Member
experts i think someone must have open interest afl to show it as numbers on chart and not as a line in a different pane, but like number on background of chart

please share

thanks
 
Hello Frnds,
Can anyone help me out with the raw formula of ATR in amibroker? It has a ready formula of ATR, but i am looking out backhand formula of how ATR works in amibroker.

Thanks
 

xsis

Active Member
Hello friends

In real time I want to plot combined total volume of n number of stocks against any underlying. How to do it? Please help with the AFL.

For example, @9:15 volume of rcom=10, reliance=10, dlf=10
then against Nifty (underlying price) it should plot volume as 30 and so on.

Thanks
 

john302928

Well-Known Member
Hi, I am trying to scan for MACD crossover in amibroker. I would like to go with All quotes and All Symbols. If i go with this and scan/explore, it displays the results with lot of data say for the same symbol so many positive and negative crossovers. But what I want is it should display only the latest crossover. say for Scrip RELIANCE, it might have had so many positive crossover and so many negative crossovers but it should display only one RELIANCE in the result along with type of its latest crossover and date and time on when it happened.

Can anyone please help me on this. Thank you
http://www.traderji.com/amibroker/103265-macd-filter-afl.html#post1183782
 

xsis

Active Member
Hii ... Someone care to help.

Hello friends

In real time I want to plot combined total volume of n number of stocks against any underlying. How to do it? Please help with the AFL.

For example, @9:15 volume of rcom=10, reliance=10, dlf=10
then against Nifty (underlying price) it should plot volume as 30 and so on.

Thanks
 

Similar threads