![]() |
| Discuss AFL Syntax Error - PLz Help at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear Friends, I have got this AFL for TD- Sequential from Interent which I wanted ... |
|
|||||||
| Register | Blogs | FAQ | Chat Room | Search | Today's Posts | Mark Forums Read |
|
Welcome to the Traderji.com - Discussion forum for Stocks Commodities & Forex. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please read the FAQ. |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
Dear Friends,
I have got this AFL for TD- Sequential from Interent which I wanted to backtest. However, I am getting sysntax error for the last line "_Section_End();". I have corrected other syntax errors but could not correct this one. A showcase of my programming skills. ![]() Can anybody please help me out? Thanks & Regards, --Ashish |
|
#2
|
|||
|
|||
|
Ashish,
The close brace for 'if' condition is missing in Line No. 130. Highlighted in red colour for you. The AFL Formula Editor doesn't have in-built indentation. It would have helped to code AFL a much easier, had it been present. Praveen. if(ShowTDPoints) { PlotShapes(TD_Supply()*shapeSmallCircle, colorRed, 0, H, H*.001); PlotShapes(TD_Demand()*shapeSmallCircle, colorGreen, 0, L, -L*.001); /////////////////////////////////////////////////////////////////////////// y0 = StrToNum(NumToStr(ValueWhen(TD_Demand(), L))); x = LineArray(0, y0, (BarCount-1), y0); Plot(x, "", colorGold, styleDashed); y0 = StrToNum(NumToStr(ValueWhen(TD_Supply(), H))); x = LineArray(0, y0, (BarCount-1), y0); Plot(x, "", colorGold, styleDashed); } |
|
#3
|
|||
|
|||
|
Dear Aca
Try the AFL attached I have removed every thing below the sell signal. This should be good for backtesting... (Though not for charting) I backtested it on NSE stocks from 1.1.07 till date .. result 27% loss regards Ajax |
|
#4
|
|||
|
|||
|
Quote:
Thanks for the backtest. However, I am not looking forward to using this system. I was just looking for some filters to a system I am testing and came across the Demark Book on Options Trading. Hence, thought to apply it as an additional input. Regards, --Ashish |
|
#5
|
|||
|
|||
|
Quote:
Best Regards, --Ashish |
|
#6
|
|||
|
|||
|
Hello ajax/aca_trader/praveen,
I need some help on setting up amibroker for backtesting. I am using the AFL which has been posted here and attached my backtest results. Kindly comment on the settings and what precautions need be taken for getting proper backtesting results. Thanks in advance. John. |
| Sponsored Links |
|
|
![]() |
| Thread Tools | |
|
|
Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum
Rules Disclaimer & Disclosure and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum.
• Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss
arising out of the use of this information.
• Disclosure: The information in this forum is neither an offer
to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.