Recent Posts

Pages: 1 ... 8 9 [10]
91
Amibroker Help / Fractals
« Last post by likhazar on February 23, 2017, 08:56:06 am »
Hello, I am totally new here... so first of all Welcome :)

I need your help with creating a fractals indicator for AFL.

I am trying to create an indicator which will check if current bar has higher high than x previous bars and y bars after and then set an arrow over that bar. I have something similar in mql4.

Anyone could help me?
92
Hi I am a newbie!

is my  zero lag macd afl for the explore function correct? 

Code: [Select]
p = Param("P",12,3,36,2);
q = Param("Q",26,3,52,2);
r = Param("R",9,3,15,1);

EMA1= EMA(Close,p);
EMA2= EMA(EMA1,p);
Difference= EMA1 - EMA2;
ZeroLagEMAp= EMA1 + Difference;
//---------------------------------------
EMA1= EMA(Close,q);
EMA2= EMA(EMA1,q);
Difference= EMA1 - EMA2;
ZeroLagEMAq= EMA1 + Difference;
//---------------------------------------
ZeroLagMACD=ZeroLagEMAp - ZeroLagEMAq;
//---------------------------------------
// Signal line
EMA1= EMA(ZeroLagMACD,r);
EMA2= EMA(EMA1,r);
Difference= EMA1 - EMA2;
ZeroLagTRIG= EMA1 + Difference;

a=Cross(ZeroLagMACD,ZeroLagTRIG);
Filter=a;

93
General Discussion / problem in using amibroker
« Last post by carajusn on February 22, 2017, 10:45:57 am »
i am unable to download data using amibroker. when i sent a mail to amibroker support in this regard, they asked me to use another browser. but, to my best knowledge, i am not using any browser for executing amibroker. please mail me in this regard to carajusn@gmail.com.
94
Amibroker Chat / THE BAR CHANGES 5MIN BEFORE TIME INTERVAL
« Last post by JSSIDHU on February 22, 2017, 03:20:59 am »
Hi,
New to Amibroker and this forum. Have downloaded the trial version from the website. Having one problem - for intraday charts the new bar forms 5mins
before the end of the period (say the new hourly bar for 10:00 starts at 09:55). I am looking at RT data for the NSE -intra day  database settings are : start time 09:00
and end time 16:00. I have changed the settings to 09:15 and 15:30 - still does not work.  I currentle use METASTOCK and the bar times are correct in METASTOCK, so I conclude there is no issue with the rt data.!

Need help to get correct settings for Amibroker.

Thanks for the help
95
Trading System Discussion / Re: Every Trade invest the same amount? Please help!
« Last post by davidp13 on February 22, 2017, 03:18:07 am »
this code should help

SetPositionSize(100, spsValue);
96
Amibroker Help / Backtesting a portfolio of stocks incorporating Surviourship
« Last post by BruceW on February 21, 2017, 07:23:50 pm »
Hi Folks,

I was hoping that someone can help me with this problem?

I want to backtest a portfolio of stocks, using stocks from a particular index. Over time, the stocks in the index will change, as stocks are either added, or removed from the index.

I have a number of watchlists that replicates the stocks in an index during certain periods ie

WatchlistA (Index 1 January 2014 to 31 December 2014)
WatchlistB (Index 1 January 2015 to 31 December 2015)
WatchlistC (Index 1 January 2016 to 31 December 2016)
WatchlistD (Index 1 January 2017 to 31 December 2017)

My question is, can I do a Custom backtest, whereby the backtest process will use the Watchlist applicable to the time period. If so, any hints on how the afl would be coded?

Many thanks in advance for any help?

Best regards
Bruce W.
97
Amibroker Help / Alert help
« Last post by savio on February 18, 2017, 12:05:31 pm »
Hello everyone,

Anyone can please help me to get alert if price trad above hammer high.
more explanation in the attached image.

this is the code that i use for hammer pattern


Code: [Select]
uppershadow = H - Max(O,C);
body = abs(O-C);
lowerShadow = Min(O,C) - L;

Hammer = L < Ref(L,-1) AND uppershadow < body*3 AND lowerShadow > body*4 ;


Any help will be highly appreciated

98
Trading System Discussion / Every Trade invest the same amount? Please help!
« Last post by abnovice on February 13, 2017, 01:03:38 pm »
Dear Friends,


i wanna code a simple trading System on weekly charts for the sp500 index with the envelope indicator.
the idea: taking a simple 40 week moving average and build two bands with plus 3 %  and minus 3 % of the simple 40 week moving average.

(Long only System)
buy: Close > upperband
sell: Close < lowerband


when the System goes long it should buy 10.000 usd irrespective from the total equity

how i have to code this?

At the moment the system every time invest 100 % of the euity`?



some further question for understanding: to proof ist the Parameters a stable enough- i thougt i optimize the System with the, msci world, msci europe and msci USA too?


i would take the best average Parameters of all 4 indices (sp500, msci world, msci europe, msci USA) to trade the sp500.


what do you think of the idea? (i know ist my Option, i only would aks if the logic is smart oder stupid :-) thank you so much for short help!


PS: i´m novice with amibroker so i would be glas for every help i get to learn the first steps.


Dear Marcus


Code: [Select]
// Project Moving Average Band System
// Tradingsystem "long only" for the SP500  ETF
// Goal: Long Term Capital Growth

// Definition Optimize Variable
MALength = Optimize( "SMA", 30, 35, 45, 1 );
// Optimizes from 20 to 60 in 1 steps inital is 40

MAWidth = Optimize( "MAW", 3, 2.5, 5, 0.1 );
// Optimizes from 1 % to 7.5% in 0.1 % steps inital is 3.0 %


// Definition Simple Moving Average
C1 = MA(C, MALength);
// Definition Close
C2 = C;
// Definition Upper Band
C3 = C1*MAWidth/100+C1;
//Definition Lower Band
C4 = C1-C1*MAWidth/100;
// Definition Buy Signal
Buy = Cross(C2,C3);
// Defintion Sell Signal
Sell = Cross(C4,C2);

Plot( C, "C", colorBlack, styleCandle );
e = Equity();
Plot( e, "Equity", colorGreen, styleLine | styleOwnScale );
99
Introduction / I´m new
« Last post by abnovice on February 13, 2017, 12:01:07 pm »
Dear Friends,
i´m new here and a Trading System Beginner.
I don´t wanna get rich fast - and don´t code the super system.
My dream ist stable weekly system for sp500 with little higher return and much less draw down in bear markets.
i wanna be long in bullmarktes and wanna be flat in bear markets.

i would be glad for every help i can get from you.
ich work with ab 5.6 standard version at the moment
and tai pan end of day qoutes.

marcus
100
Introduction / Hi guys, im a noob
« Last post by jebediahspringfield on February 10, 2017, 11:47:43 pm »
Hi, I recently discovered AmiBroker and have had a quick look over it and think that it might just be final piece to a puzzle I created myself (can elaborate on this puzzle at a later time.) I just want to point out that as a noob my lack of understanding of the program it self may cause me to ask "silly" questions so please bear with me. Speaking of silly questions here's the first one, which forum should I post questions relating to using/learning AFL code or just questions about the capabilities of AmiBroker when creating my own custom indicators I wish to create?

Thank you, Jeb.

EDIT: I have programming experience in php & SQL which I used to create a set of formulas (on delayed prices) that appear to be 95% accurate (when tested) which I wish to try use in AmiBroker, hoping that database creation is something I can do with this program. A lot of my questions will probably be in relation to finding the AFL equivalent to the scripts I already have written. cheers
Pages: 1 ... 8 9 [10]