Forex
Google

Go Back   Forex Trading > Trading systems > Ema Cross
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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

Reply
 
LinkBack (24) Thread Tools Display Modes
  #11 (permalink)  
Old 11-05-2006, 12:06 AM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow Settings!

Settings details are here:
http://www.xpworx.com/XP Moving Average Settings.htm
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-05-2006, 12:37 AM
mikejody mikejody is offline
Senior Member
 
Join Date: Dec 2005
Posts: 294
mikejody is on a distinguished road
Codersguru,

I want to thank you again for this indicator. I have backtested it for the previous 5 months, and am up over 2300 pips. It is excellent.

I do not understand code at all, am just a normal trader. Could you please explain when the indicator changes color? Looking at the chart the indicator changes red BEFORE every significant move down, and it turns green BEFORE every significant move up. But I can't imagine an indicator predicting the future like that. I imagine that during live trading the bar changes color after the move.

Is this correct?

Thank you again for this excellent indicator.

Quote:
Originally Posted by codersguru
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-05-2006, 02:06 AM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow change color!

Quote:
Originally Posted by mikejody
Codersguru,

I want to thank you again for this indicator. I have backtested it for the previous 5 months, and am up over 2300 pips. It is excellent.

I do not understand code at all, am just a normal trader. Could you please explain when the indicator changes color? Looking at the chart the indicator changes red BEFORE every significant move down, and it turns green BEFORE every significant move up. But I can't imagine an indicator predicting the future like that. I imagine that during live trading the bar changes color after the move.

Is this correct?

Thank you again for this excellent indicator.
This is the code of changing the color of indicator:

PHP Code:
for(shift=limitshift>=0shift--)
   {
      if (
buffer[shift-1]>buffer[shift])
      {
         
UpBuffer[shift-1] = EMPTY_VALUE;
      }
      else if (
buffer[shift-1]<buffer[shift] )
      {
         
DownBuffer[shift-1] = EMPTY_VALUE;
      } 
      else
      {
         
UpBuffer[shift-1] = CLR_NONE;
         
DownBuffer[shift-1] = CLR_NONE;
      }
   } 
The code above means:
  • When the previous value of of Moving average is Greater than the current value change the color to red
  • And when the previous value of of Moving average is Lesser than the current value change the color to green
  • Or leave it yellow
That's all!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-05-2006, 02:27 AM
mikejody mikejody is offline
Senior Member
 
Join Date: Dec 2005
Posts: 294
mikejody is on a distinguished road
OK, yes, that makes sense now; I am wondering if it would be possible for you to change the indicator to color the bar, instead of the indicator, when the conditions are met.

I am attaching a chart; I am wondering if you can color the 4th bar from the right green.

Do you see the long signal generated right before the 4th bar? It would be very good if the 4th bar itself could be colored green as an indicator to go long.

Is this possible to do?

Quote:
Originally Posted by codersguru
This is the code of changing the color of indicator:

PHP Code:
for(shift=limitshift>=0shift--)
   {
      if (
buffer[shift-1]>buffer[shift])
      {
         
UpBuffer[shift-1] = EMPTY_VALUE;
      }
      else if (
buffer[shift-1]<buffer[shift] )
      {
         
DownBuffer[shift-1] = EMPTY_VALUE;
      } 
      else
      {
         
UpBuffer[shift-1] = CLR_NONE;
         
DownBuffer[shift-1] = CLR_NONE;
      }
   } 
The code above means:
  • When the previous value of of Moving average is Greater than the current value change the color to red
  • And when the previous value of of Moving average is Lesser than the current value change the color to green
  • Or leave it yellow
That's all!
Attached Images
File Type: gif xpma1.gif (25.5 KB, 1919 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-05-2006, 03:02 AM
et_phonehome_2 et_phonehome_2 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 1,086
et_phonehome_2 is on a distinguished road
Quote:
Originally Posted by mikejody
Codersguru,

I want to thank you again for this indicator. I have backtested it for the previous 5 months, and am up over 2300 pips. It is excellent.

I do not understand code at all, am just a normal trader. Could you please explain when the indicator changes color? Looking at the chart the indicator changes red BEFORE every significant move down, and it turns green BEFORE every significant move up. But I can't imagine an indicator predicting the future like that. I imagine that during live trading the bar changes color after the move.

Is this correct?

Thank you again for this excellent indicator.
What settings did you use, and how do I backtest an indicator? Is there an EA out there?

Thanks,
ET
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 11-05-2006, 01:04 PM
tyme2jam tyme2jam is offline
Junior Member
 
Join Date: Jun 2006
Posts: 9
tyme2jam is on a distinguished road
Nice

I have read this new thread with interest. Thanks for sharing this indicator with us. I look forward to posting my transaction after testing the indicator live with the new settings.

Tyme2jam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 11-05-2006, 05:22 PM
SADragon's Avatar
SADragon SADragon is offline
Junior Member
 
Join Date: Jan 2006
Posts: 6
SADragon is on a distinguished road
Hi CodersGuru

Is it possible to put the color of the indicator to a variable, like you did for the "LSMA in Color" indicator?

SADragon

PS I'm really awed by the stuff you create, thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 11-05-2006, 08:37 PM
mikejody mikejody is offline
Senior Member
 
Join Date: Dec 2005
Posts: 294
mikejody is on a distinguished road
34
2
0
0.8

Just put the indicator on a 4 hour Cable chart and watch the pips rack up.

Quote:
Originally Posted by et_phonehome_2
What settings did you use, and how do I backtest an indicator? Is there an EA out there?

Thanks,
ET
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 11-05-2006, 09:05 PM
babarmughal's Avatar
babarmughal babarmughal is offline
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Quote:
Originally Posted by mikejody
OK, yes, that makes sense now; I am wondering if it would be possible for you to change the indicator to color the bar, instead of the indicator, when the conditions are met.

I am attaching a chart; I am wondering if you can color the 4th bar from the right green.

Do you see the long signal generated right before the 4th bar? It would be very good if the 4th bar itself could be colored green as an indicator to go long.

Is this possible to do?
Hi mikejody,

what kind of indicator is this...???

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 11-05-2006, 09:17 PM
mikejody mikejody is offline
Senior Member
 
Join Date: Dec 2005
Posts: 294
mikejody is on a distinguished road
Hi babarmughal,

This is a moving average indicator, combined with an excellent filter which significantly reduces whipsaw. This is, to date, the best trend indicator I have ever seen.

Here are the results for the past 15 months Cable 4 hour, taking every signal. Have you ever seen a trend following indicator produce nearly 70% profitable trade with such low drawdown? This is truly amazing!

================================================== ===========================================
EQUITY TABLE
================================================== ===========================================

Trade PL/Cntr Risk/Cntr No param Contracts Pos PL Equity
1. -1.00 NA NA 1 -1.00 9,999.00
2. 12.00 NA NA 1 12.00 10,011.00
3. 0.00 NA NA 1 0.00 10,011.00
4. 196.00 NA NA 1 196.00 10,207.00
5. 3.00 NA NA 1 3.00 10,210.00
6. 27.00 NA NA 1 27.00 10,237.00
7. 6.00 NA NA 1 6.00 10,243.00
8. -5.00 NA NA 1 -5.00 10,238.00
9. 270.00 NA NA 1 270.00 10,508.00
10. 177.00 NA NA 1 177.00 10,685.00
11. -46.00 NA NA 1 -46.00 10,639.00
12. -24.00 NA NA 1 -24.00 10,615.00
13. 117.00 NA NA 1 117.00 10,732.00
14. 0.00 NA NA 1 0.00 10,732.00
15. 156.00 NA NA 1 156.00 10,888.00
16. 1.00 NA NA 1 1.00 10,889.00
17. -33.00 NA NA 1 -33.00 10,856.00
18. 8.00 NA NA 1 8.00 10,864.00
19. 35.00 NA NA 1 35.00 10,899.00
20. 8.00 NA NA 1 8.00 10,907.00
21. 10.00 NA NA 1 10.00 10,917.00
22. 32.00 NA NA 1 32.00 10,949.00
23. 8.00 NA NA 1 8.00 10,957.00
24. 66.00 NA NA 1 66.00 11,023.00
25. 6.00 NA NA 1 6.00 11,029.00
26. 3.00 NA NA 1 3.00 11,032.00
27. 73.00 NA NA 1 73.00 11,105.00
28. 19.00 NA NA 1 19.00 11,124.00
29. 0.00 NA NA 1 0.00 11,124.00
30. 155.00 NA NA 1 155.00 11,279.00
31. 86.00 NA NA 1 86.00 11,365.00
32. 6.00 NA NA 1 6.00 11,371.00
33. 512.00 NA NA 1 512.00 11,883.00
34. -17.00 NA NA 1 -17.00 11,866.00
35. 226.00 NA NA 1 226.00 12,092.00
36. 9.00 NA NA 1 9.00 12,101.00
37. 190.00 NA NA 1 190.00 12,291.00
38. 52.00 NA NA 1 52.00 12,343.00
39. 194.00 NA NA 1 194.00 12,537.00
40. -10.00 NA NA 1 -10.00 12,527.00
41. -14.00 NA NA 1 -14.00 12,513.00
42. 214.00 NA NA 1 214.00 12,727.00
43. 28.00 NA NA 1 28.00 12,755.00
44. -89.00 NA NA 1 -89.00 12,666.00
45. 12.00 NA NA 1 12.00 12,678.00
46. 200.00 NA NA 1 200.00 12,878.00
47. -3.00 NA NA 1 -3.00 12,875.00
48. -4.00 NA NA 1 -4.00 12,871.00
49. -18.00 NA NA 1 -18.00 12,853.00
50. 7.00 NA NA 1 7.00 12,860.00
51. 4.00 NA NA 1 4.00 12,864.00
52. 22.00 NA NA 1 22.00 12,886.00
53. 110.00 NA NA 1 110.00 12,996.00
54. 32.00 NA NA 1 32.00 13,028.00
55. -3.00 NA NA 1 -3.00 13,025.00
56. -1.00 NA NA 1 -1.00 13,024.00
57. 16.00 NA NA 1 16.00 13,040.00
58. 24.00 NA NA 1 24.00 13,064.00
59. 45.00 NA NA 1 45.00 13,109.00
60. 2.00 NA NA 1 2.00 13,111.00
61. -10.00 NA NA 1 -10.00 13,101.00
62. 62.00 NA NA 1 62.00 13,163.00
63. -18.00 NA NA 1 -18.00 13,145.00
64. 1,370.00 NA NA 1 1,370.00 14,515.00
65. -52.00 NA NA 1 -52.00 14,463.00
66. 16.00 NA NA 1 16.00 14,479.00
67. -29.00 NA NA 1 -29.00 14,450.00
68. 19.00 NA NA 1 19.00 14,469.00
69. 10.00 NA NA 1 10.00 14,479.00
70. 31.00 NA NA 1 31.00 14,510.00
71. 7.00 NA NA 1 7.00 14,517.00
72. 35.00 NA NA 1 35.00 14,552.00
73. 66.00 NA NA 1 66.00 14,618.00
74. 259.00 NA NA 1 259.00 14,877.00
75. -6.00 NA NA 1 -6.00 14,871.00
76. 628.00 NA NA 1 628.00 15,499.00
77. -1.00 NA NA 1 -1.00 15,498.00
78. -29.00 NA NA 1 -29.00 15,469.00
79. 26.00 NA NA 1 26.00 15,495.00
80. 145.00 NA NA 1 145.00 15,640.00
81. -70.00 NA NA 1 -70.00 15,570.00
82. 6.00 NA NA 1 6.00 15,576.00
83. 134.00 NA NA 1 134.00 15,710.00
84. -10.00 NA NA 1 -10.00 15,700.00
85. -17.00 NA NA 1 -17.00 15,683.00
86. 494.00 NA NA 1 494.00 16,177.00
87. 9.00 NA NA 1 9.00 16,186.00
88. 368.00 NA NA 1 368.00 16,554.00
89. 250.00 NA NA 1 250.00 16,804.00




Quote:
Originally Posted by babarmughal
Hi mikejody,

what kind of indicator is this...???

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/ema-cross/4430-xp-moving-average.html
Posted By For Type Date
Dolly System - Singapore Forex Trading Forum This thread Refback 07-28-2008 02:52 PM
The Simple System - Page 45 This thread Refback 06-09-2008 09:08 PM
Coders? This thread Refback 04-21-2008 05:30 PM
Singapore Forex Trading Forum - Re:Dolly System - Singapore Forex Trading This thread Refback 04-10-2008 10:56 PM
Forex | Trader Blog | Forex Trading | FX Operator - Re:Dolly System - FX Operator This thread Refback 03-12-2008 01:16 PM
Forum Forum - Moving Averages (Simple, Exponential, Weighted, etc) This thread Refback 02-14-2008 10:34 AM
Coders? This thread Refback 02-07-2008 08:02 PM
FX Operator | Singapore Forex (FX) Currency Trading | System, Good, Using, Still, Here This thread Refback 12-26-2007 04:27 PM
Untitled document This thread Refback 11-16-2007 02:21 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Forex Forum This thread Refback 11-14-2007 10:35 PM
Is there such a beast This thread Refback 10-12-2007 11:03 AM
Is there such a beast This thread Refback 10-11-2007 07:37 PM
Is there such a beast This thread Refback 10-11-2007 07:01 PM
Forex (FX) Trading | Currency Market | FX Operator - Dolly System - This thread Refback 10-02-2007 01:05 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Forex Forum This thread Refback 09-29-2007 01:53 PM
INDIKATOR XP for META $ - GoldAge Forums This thread Refback 09-09-2007 12:55 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Page 2 - Forex Forum Post #367 Pingback 08-23-2007 04:19 PM
The Simple System - Page 45 This thread Refback 08-15-2007 12:54 AM
The Simple System - Page 45 This thread Refback 08-06-2007 07:43 AM
The Simple System - Page 45 This thread Refback 08-06-2007 07:05 AM
The Simple System - Page 45 This thread Refback 08-05-2007 03:15 PM
WoW ! Oh My God ! Guys take a look at this indicator ! - Forex Forum This thread Pingback 07-18-2007 07:01 PM
Moving Averages (Simple, Exponential, Weighted, etc) - Page 2 - FXAddict Community This thread Refback 07-03-2007 11:52 AM
Forex (FX) Trading | Currency Market | FX Operator - Dolly System - This thread Refback 06-26-2007 04:40 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Average RSI xcooper Metatrader 4 8 05-31-2008 12:55 AM
non lag moving average kidhudi Indicators - Metatrader 4 1 07-26-2006 12:52 PM
EA Moving Average rodrigokaus Expert Advisors - Metatrader 4 5 06-13-2006 07:32 AM
moving average danu Expert Advisors - Metatrader 4 1 05-31-2006 04:23 AM
How to calculate Moving Average of a Moving Average babarmughal Expert Advisors - Metatrader 4 2 05-15-2006 10:11 AM


All times are GMT. The time now is 09:14 PM.