Find Jobs
Hire Freelancers

amibroker code - repost

$30-250 USD

已完成
已发布超过 10 年前

$30-250 USD

货到付款
I have decided to repost this project with a change in detail. I want a review and possible additions to my amibroker code. I have posted the code below for review. The code is defined for CFD trading on margin. margin in 10 percent in this case. Interest is paid on long open positions. x amount per day Position size is percentage risk (2 %) * equity/ 2 * atr(100) Buy Filter is fast moving average > slow moving average Buy Filter is the moving average 10 of Rate of change (63) > moving average 25 of Rate of change (63) Buy if todays close is higher or equal to the highest close in the past 50 days. The opposite is applied to a sell position. Close is trailing stop 3 * ATR(100). Note this is the same for short positions CODE: SetOption("InitialEquity", 50000); SetOption("MinShares", 50); SetOption("MarginRequirement", 10); SetPositionSize( 2, spsPercentOfEquity )/(2* ATR(100)); MAFAST = EMA( Close, 50 ); MASLOW = EMA( Close, 100 ); ROCma1 = MA (Close,10); ROCma2 = MA (Close,25); ROCmaF = ROC( ROCma1, 63 ) ; ROCmaS = ROC( ROCma2, 63 ) ; HighestValue = HHV(C,50); LowestValue = LLV(C,50); Buy = C >= HighestValue AND MAFAST > MASLOW AND ROCmaF > ROCmaS ; Short = C stop[ i - 1] ) { temp = Close[ i ] - myATR[ i ]; if ( temp > stop[ i - 1 ] ) stop[ i ] = temp; else stop[ i ] = stop[ i - 1 ]; } else stop[ i ] = initial[ i ]; } Plot( stop, "ATR Stop", colorRed, styleLine ); Sell = C < Ref( stop, -1 ); Buy = ExRem (Buy, Sell); Sell = ExRem (Sell, Buy ); PlotShapes( IIf( stop < Ref( stop, -1 ), shapeDownArrow, Null ), colorOrange, 0, H ); Plot(HighestValue, "High", colorGreen, styleLine, 0,0,0,0);
项目 ID: 5102643

关于此项目

5提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
hello, I'm a veteran programmer of amibroker afls, mt4, etc. with 100% completion rate. I'll give you complete working code based on your requirement in a day or two maximum. you can check my ratings. should you have any queries pls revert back. thanks sudris
$140 USD 在3天之内
0.0 (0条评论)
0.0
0.0
5威客以平均价$235 USD来参与此工作竞价
用户头像
We already work together hope u remember us . I did similar to this project here in Freelancer.com and the U was very happy with my work. I m available now to accept new project and i can start immediately. If u agree to work with us I can forward these details to my developer
$363 USD 在7天之内
4.5 (37条评论)
5.6
5.6
用户头像
A proposal has not yet been provided
$147 USD 在3天之内
5.0 (2条评论)
3.1
3.1
用户头像
Hi, I have Analyzed your project and code. First I will put few suggestions and then review on your posted code. There will be more but I point out few important. 1 . Equity, position size etc are defined in the afl itself. Commission is omitted there, sure it can be defined manually from the Analysis window, but it is required to get a realistic back test results. 2. Standard position sizing uses the current(intraday) equity value. If the code is run on EOD data, it may be ok, but depending on the clearing mechanism it should be previous days equity or in accordance with proper settlement delay if there is settlement delay. 3. For position sizing ATR is used which is dynamic in nature. In my experience I found it better to use Maximum value of ATR over x bars/days is more robust because, we are taking the maximum volatility over x periods. 4. "Buy Filter is the moving average 10 of Rate of change (63) > moving average 25 of Rate of change (63)." - The rule implemented in code is rate of change (63) of moving average (10). 5. The line "Short = C stop[ i - 1] )" is not correct. Syntax error and logical error in implementing short trade rule which is opposite of buy trade rule. And the loop following this line also contains errors, variable initialization/declaration. (I think you did not posted the full code, omitted some part). 6. The exit rule is not defined, but from code I assume it is when the trailing stop is hit on a close basis. Thanking You Joy Sebastian
$250 USD 在5天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello, I can assist you in this project. but I am no so sure we could implement Interest paid on long positions without resorting to CBT The Backtester setting Annual Rate applies interest on free funds in the account. Best Regards, Aron.
$277 USD 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

AUSTRALIA的国旗
Geelong West, Australia
5.0
3
付款方式已验证
会员自2月 26, 2013起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。