This page is out of date, click "Tipster Trendlines" at the top of the page.
Go to the Tipster Trendlines 2.1 post for additional information on how to obtain this AFL code. Don't make any more manual entry mistakes!
Several readers have donated and received the Tipster Trendlines 2.1 (TT) AFL. A few things have come up, and I want to share the questions and code fixes.
CODE FIX
This fixes an issue where TWS rejects the submitted prices when TT is set for "Futures" trading.
Search for the red text below using the find box and replace with the code below. The NEW code is in blue. If you can't figure this out, let me know by comment or email.
if(Length == "0")
{
BS = int( BS ); // this truncates whatever is after the decimal
TA = int( TA );
ST = int( ST );
IBTarget = NumToStr( TA, 1.0, 0);
IBOrder = NumToStr( BS, 1.0, 0);
IBStop = NumToStr( ST, 1.0, 0);
}
VISTA
Microsoft VISTA continues to be a problem for Amibroker. The Interpretation window should be closed according to Ami support. The issue has not been resolved at this time, stay tuned in the Yahoo Amibroker groups. The reports I am receiving indicate the the TT screen "flashes" when Auto Trading is turned on.
Here is some code added by Rick. This code flashes the screen at the start and end of the trading day. Adjust the time as required:
Plot(TimeNum() == 092959, "",colorPaleGreen,styleHistogramstyleDashedstyleOwnScalestyleNoLabel);
Plot(TimeNum() == 155959, "",colorRed,styleHistogramstyleDashedstyleOwnScalestyleNoLabel);
(In Preferences - Intraday, "Time stamp of compressed intraday bars shows - "END time of interval")
Questions and answers
Q1. can make change to stop loss and target profit or not so that I can move my stop loss/target after the trade is entered.
A1. No. Once the order is placed and not filled, cancel and re-do in Amibroker. Once the order is placed and filled, move stops and targets in TWS.
Q2. Also if I used stop + limited price to enter trade, the trade may or may not be able to be filled. Can we see the trade has been filled in the status of Amibroker panel or not without going to IB pages?
A2. No. This is possible but I have not coded it. I had that feature in an earlier version.
Other Issues
Lastly, I would appreciate any feedback on this code posted as comments so other potential users can see the value. If current users have any suggestions, of issues with the AFL please let me know and we will remedy.
Sunday, August 2, 2009
Tipster Trendlines 2.11
Subscribe to:
Post Comments (Atom)
Disclaimer
The information presented on this site is for educational and entertainment purposes only. This site contains no suggestions or instructions that you must follow, do your own research and due diligence before committing your cash to the markets. Your on your own.
No comments:
Post a Comment
Let's hear what you have to say!