by STEIGO » Thu May 12, 2011 5:21 am
Apprentice - I admire your work, although I do find it difficult to follow HOW you achieve your results – my deficiency, not yours (a few notes in the code, or some logic statements would really help).
I particularly like your “touches” option in this strategy. I guess this must work on tick data?
Is this similar to the TS2 trading from a line touches/crosses option?
Is it possible to modify/code this “touches” option as follows – open position when price crosses/touches (a LINE) and reverses, - when the LINE crossed/touched, could be either
1. a price,
2. a moving average,
3. a fib line,
4. a pivot line?
If it is possible – could further conditions be put on the cross/reverse – if price crosses by say 20pips do not action strategy.
If these ideas seem possible I'll specify in detail the requirements
My ideal preference would be along the lines – Define 6 ma's, 5ema, 10ema 21ema, 35sma, 50sma and 62sma. Open a position IF a ma is crossed and REVERSES, while using the next ma as a stop loss.
IE. If the tick price crosses the 21ema and then reverses – open a position and attach a stop at the 35ema price.
Only one position should be open at a time, to account for multiple reversals across different ma's. However, in the above case, a short term reversal at the 21ema position, followed by a continuation to say the 50ema then a reversal, would mean – the initial position opened at 21ema would be stopped out at the 35ema price (for a loss), but the later reversal at the 50 ema would still be opened with a stop at the 62 sma price.
If these ideas are possible, I believe it may satisfy previous coding requests made by JonathanG called “Price Brakes Level, Reversal Entry