| This project has been viewed 566
times and was posted by Zulzurrander from United States. |
|
| Start date : 30 Apr. 2008, 17:22 |
End date :14 May. 2008, 17:22 |
There are 2 registered bids. |
| Project number : 243476 |
Project category:Software Application development |
| This is the first project that this owner has posted on Freelance Programming. |
Description : The programs I have attached are the custom indicator/expert advisor pair called BreakOut. The logic is as follows:
In the indicator function the data is read in the start function which calls BreakOut per iteration. The return value of BreakOut is set to NO_ARROW, and a five bar average of the lows is subtracted from a five bar average of the highs. This difference is multiplied by a fraction, which can be changed experimentally, to produce a trading threshold. GoLong is set as the upper threshold and GoShort as the lower. If the Close[ ] value exceeds the GoLong threshold, HighBuffer is set to GoLong (drawing an up arrow in the candle) and the return value is set to UP_ARROW. If Close[ ] is less than GoShort, LowBuffer is set and return value is set to DOWN_ARROW. The SetIndexArrow( ) instructions could be set once in the init( ). I think this routine works correctly.
In the expert, which is actually called once for each new data point, processing takes place only when the current bar is complete and Volume[0] = 1. TrailingStops are not currently active. Direction is set by a call to BreakOut (1), which is the same function as in the indicator except that it sets the ARROW flags instead of the display. If Direction is set to UP_ARROW and LastDirectiion is set to DOWN_ARROW, we have a reversal in a down trend and we close all open positions and set LastDirection to NO_ARROW. Then while Direction == UP_ARROW is still true, we test whether to open a long position based on the value of Long. The logic is reversed for short trades. I guess it's just as clear from the code as this description. The program makes money on the long side, but often misses the first down arrow in a reversal from long to short and opens losing trades on the way down. Any insight you have will be appreciated. Any question
|
Deliverables : This script is set to work with the FOREX trading platform Interbank FOREX Trader 4. Need script debugged and delivered for a full back test run before active trading in June.
|
Ownership : THis is a proprietary trading script and is whole owned by me and my clients. All intellectual and physical property are soely owned by me.
|
Support : On going support might be needed depending on functionality of script and opportunties for expansion to other trading platforms.
|