| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (4) | Thread Tools | Display Modes |
|
|||
|
Signal 3 Visualization
I would like to add an indicator for Signal 3 to my charts. If I understand correctly, this would require using the Moving Average of Oscillator, but it uses two sets of bars, whereas the indicator only has one. I am not sure how to add the extra set of bars.
In other words, how can the definitions in Phoenix code below be illustrated as an indicator on a chart? Thanks for any help with this. Code: OsMABar2=iOsMA(NULL,0,P_OSMAFast,P_OSMASlow,P_OSMA Signal,PRICE_CLOSE,2); OsMABar1=iOsMA(NULL,0,P_OSMAFast,P_OSMASlow,P_OSMA Signal,PRICE_CLOSE,1); |
|
||||
|
I enhanced the new Trailing Stop
Now with a configurable shrinking Trailing Stop. You use the field P_M3_CloseTrade_23, the trailing stop will shrink by 1 for every P_M3_CloseTrade_23 points into the profit that you position move. Set it to 5 and if you are 45 points in profit the TS is changed to 45 - (45/5) = 36. My little sample improved to 4094, another 3%. Best value in my optimization was any value over 65. Code is here I didn't enhance the TP point it is still 999. Maybe on the weekend to add that safety factor. Set it to zero and the Trailing stops stays where you set it. Additional testing would be great. |
|
||||
|
I'm looking at the code, and trying to figure out what the trailing stop would be at a certain point. I'm assuming that as my profit increases, my trailing stop increases? Please keep in mind that each broker has a minimum distance between current price and the SL value you are allowed to set, and breaching that minimum distance results in trade errors. MODE_STOPLEVEL is the constant with the minimum distance, in pips.
An alternative might be: (tp-CurProfit)/tsScale >=MODE_STOPLEVEL With a profit of 10 pips, and a take profit of 50 pip, the trailing stop would be 40 pips if the tsScale=1, 20 pips if tsScale=2. With a profit of 30 pips and a tp of 50 pip, the ts would be 20 pip (locking in 10 pip profit) if the tsScale=1, and 10 pip if tsScale=2 Having a really large ts just means you're running a trending system. An optimized value might look great, but a forward test might look horrible. Run it with 3 months optimization and then 3 months testing on unoptimized data. I bet in many cases, they will look vastly different. What is your largest profit (in pips if you can) in testing? Was it a news event? |
|
|||
|
Phoenix Chart Template
Here is a sample of the Phoenix Chart Template I am working on. The idea is to display indicators for the Phoenix trade symbols in order to facilitate visual optimization. The symbols on the main chart are Signal 1, the Envelope (pair of black lines) and Signal 2, the Simple Moving Averages (pink for current, aqua for previous). At the bottom is the Moving Average of Oscillator (incomplete because I believe that a second MA must be shown on the chart), and between the two is the Traders Dynamic Index for comparison. (The function of the Envelope is analogous to the Price Action Channel in EASY, although the Envelope is not smoothed as much as the PAC, which uses two SMAs shifted up and down by 5).
The background colour is chosen to be reminiscent of the Phoenix's home in the sands of Egypt. I would also like to add Phoenix Buy and Sell arrows, as in the other indicator, but these do not seem to work on this chart template. If anyone has suggestions for improvements or can offer instructions to incorporate Signals 3 and 4 into the chart, I would be very grateful. |
|
|||
|
Phoenix 5.7.2 Chart Template
Now that I've wasted so much time trying to create this template, I'm not in a hurry to abandon it. What signals does Phoenix 6 use?
Could someone suggest how I can incorporate Phoenix's Signal 3 into the Chart Template? Does it require a modification of MACD or something else? |
|
||||
|
Quote:
The weird thing about it is that only once the profit - TS exceeds zero will my new code get executed. I want my code to operate as soon as we get 1 pip in the profit not the way it is now. The journal shows the print statement output, so I could see if the code was working correctly. I left it in so people can see what is happening for the time being. I will work on a couple more fine tunings. 1. Make it kick in above zero. 2. Make a TP an equal number of pips above current price as TS is below point. 3. Make sure that the SL or TS is not too tight to make the trade illegal. Optimized vs non-optimized data. I think this is a very crucial point, and the details of this testing needs to be in a testing guide. I would want to optimize over two entire years. Look at the graph and be happy the more straight the profit line is. This is the opposite of trying to tune it for the latest month. One month can be totally different than the next month. I think that kind of optimization is relatively useless. I fix bugs, and try coding, you Daraknor warn me about these details that kill the beginners and someone else can test and determine the suitability for live testing. The thing about these two new parameters is that if someone uses these, they are not using the SL or TP because I will be controlling those. Now the added problem might be if they decide to use breakeven after pips, I don't know what the code will do. That would be a fourth item to fix if the results are terrible. I think a TS of 45 is not as wacky as a SL of 82 which is what Phoenix does in some pref settings. Phoenix, breaks conventional Forex advice. That advice being the TP should be twice the SL. I know it's counter trending system. Even with the TS in place right now the system will still go down the 82 points and hit the SL. Last edited by Pcontour; 03-02-2007 at 01:54 AM. |
|
||||
|
Honestly it doesn't matter what the ratio of tp:sl is. Ours is 0.5, but 1.0 is common advice so certain math is easier.
sl/(tp+sl) is a critical number. Win percentage must be greater than this number, or you're loosing money. (see edit below) Most essentially random systems will have a win percentage = (tp-spread)/(tp+sl) which means that they loose money at a rate equal to 'the house take' to use gambling terms. Multi step Martingale systems demonstrate this principle *very clearly*, even with complicated exit strategies. One thing I try to do, which seems rather rare, is 'grok' the essence of what I'm doing. When I look at charts, I don't see numbers or patterns. I see dynamic forces pushing and pulling different directions, and I want to figure out why. Lots of techniques will optimize well, but they won't work because the technique is lacking fundamental understanding of pushing and pulling forces. A physics friend describes financial markets as (and I paraphrase) "an oscillating pendulum riding a wave struck by a hammer" because that describes the type of graphs he sees. Why? We need to ask the hammer (noise within candlestick), the pendulum (short term movements) and the wave (trends). I probably have the quote wrong too. Edit: Sorry about the bad math above, I'm rather sleepy. Use MACD EA sample without trailing stop to verify. Random Win chance = ((sl-spread)/(tp+sl)) Random Loss chance = 1-((sl-spread)/(tp+sl)) Last edited by daraknor; 03-02-2007 at 11:27 AM. |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Tags |
| phoenix_ea, Pendulum, 1Damitrix, phoenix, "order modify error 130" |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/phoenix/4645-phoenix-optimization.html
|
||||
| Posted By | For | Type | Date | |
| Phoenix 2007 (new thread) - Page 60 | This thread | Refback | 07-09-2008 09:11 PM | |
| Forex Factory - Phoenix 2007 (new thread) | This thread | Refback | 01-17-2008 06:22 AM | |
| Phoenix 2007 (new thread) - Page 61 | This thread | Refback | 10-14-2007 11:13 PM | |
| Phoenix 2007 (new thread) - Page 60 | This thread | Refback | 08-10-2007 09:07 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backtesting/Optimization | newdigital | Expert Advisors - Metatrader 4 | 485 | 12-01-2008 05:25 AM |
| Optimization cpu usage, need help | Big Joe | Indicators - Metatrader 4 | 4 | 08-16-2007 11:46 PM |
| Martingale Optimization | pelele79 | Expert Advisors - Metatrader 4 | 19 | 05-07-2007 11:27 AM |
| How do I use the optimization? | huhenyo | Metatrader 4 | 1 | 03-15-2007 09:39 AM |
| Optimization | cardio | Metatrader 4 | 1 | 01-25-2006 01:30 PM |