What exactly is the error you get?
I used this AFL with some test strategies and worked for me. The problem i had is not all the trades on the chart were submitted to IB TWS.
Thanks for your response. Please see the below screenshot. It does not plot anything and only auto trade ParamToggle showed there. Also, when I explore, nothing happened. Do you have any change or setting for the code?
Thank you again! It works now! I replaced all error keywords and it did not work at the beginning because of some copy-paste format problems. After cleaned the format problem, it shows correct way.
To develop a trading system is a complex procedure. It will not work with "copy & paste" especially on auto trading for your portfolio or intraday scalping. You need additional skills for portfolio-, money-, risk management, position sizing and suitable inticators special/dedicated for those symbols/tasks. AB is very strong in development and please do not forget any AFL from the library is published to teach us and has usually other main emphasis by these developers. You must learn coding and find/develop you own and special trading style.
Again you try to setup up a money machine, this will not work with "copy & paste". Everything you need to setup IB orderflow is detailed documented http://amibroker.com/at/
To manage a large portfolio you have to substitude/replace "sTicker" by your symbols in any kind of looping. That task could be done by Watchlist "Scan" dump out to any hit list as kind of arrays or csv. Then read sequential these result structures and process your orders through any kind of a stateful response developed by you. You have to understand any "millimeter" of your sourcecode with any possible result/side effect in realtime.
Additional you have to learn technical analysis for any indicator construction, because every trading style and traded symbols need some other indication. A good starting point on this topic could be a IFTA membership https://ifta.org/ and contact your local group. Howard Bandy does exellent work in discussing quantitative analysis http://blueowlpress.com/system-development/ .
You will lose your money without these skills ... auto trading will not work with "copy & paste".
Hi rvdesh, sorry for not answering before. Yeah, the original code was created before Error was a function, so must be renamed. I also canceled all the Chartperiod and Market Hours restrictions, as my sistems runs also overnight and i define the timeframe.
All Pietro told you is correct. It's not easy to copy paste a complete AT System. And Portfolio AT systems are the toughest to program as they contain not just the system logic and the autotrading interface but the Portfolio and stocks assignation, position size, money management, etc.