Cost Averaging System - page 18

 

Hi Maji,

Just take a quick a look at the new system. In the method CheckAdditionalTradeCondition(), if UseRSIforAddTrade is true, then the PipStep feature will be not used. I haven't done any forward test, but I think this might open many positions (up to MaxTrades) at very close prices.

I saw you have comment out the PipStep, any reason for it?

Thanks!

Maji:
Herbert, Don't forget to take a look at the code. There maybe a small bug there that is forcing that asymmetry. However, try to keep the buy and sell levels symmetrical... that will help ensure "non curve fit" to a large extent.
 
forex4syg:
Hi Maji,

Just take a quick a look at the new system. In the method CheckAdditionalTradeCondition(), if UseRSIforAddTrade is true, then the PipStep feature will be not used. I haven't done any forward test, but I think this might open many positions (up to MaxTrades) at very close prices.

I saw you have comment out the PipStep, any reason for it?

Thanks!

Thank you for taking the time to examine the code. I hope to get more input there to take care of the possible bugs that almost every computer program has, and the users help to get rid of them.

Anyway, if you set the fast RSI period too small, you will get that condition. However, if you set it to something reasonable like 4 to 9 periods, then it should not occur. Let me describe how I want the additional buy to happen. The RSI falls below the buy level and then when it starts to come up and we buy at the bar when the RSI crosses up the buy level. Thus, you can see that the market has to move to make that happen. Also, hopefully this will ensure that we are buying the dip, but after the short term selling is over. I hope I made it clear to everyone who is interested in this mechanics.

Thanks again.

 

Forward testing

I have attached detailed statements progressive since the 16th October.

Cost Averaging v.3 shows closed profit of $2609 with -$453 floating

This EA has moved very steadily the highest increment reached was 1.3 units USDCHF

Smooth RSI shows a closed profit of $10919 with -$115.

A lot more volatility with this EA AUDUSD reached 16.5 units, EURUSD reached 9.9 units 3 times and USDCHF once.

Both EAs were on the default settings and all updates installed.

The latest Cost Average with Trend has had little time to test.

John

 

Hi Maji,

Just start the test with new version and showed following message.

However, there are no any position opened.

Thanks!

======================================================

2006.10.23 20:31:30 Cost_Avg___RSI_w_Trend_v1 EURUSD,M15: Short Closed due to MA

2006.10.23 20:31:19 Cost_Avg___RSI_w_Trend_v1 USDJPY,M15: Long Closed due to MA

2006.10.23 20:31:03 Cost_Avg___RSI_w_Trend_v1 USDCAD,M15: Short Closed due to MA

2006.10.23 20:30:28 Cost_Avg___RSI_w_Trend_v1 EURJPY,M15: Long Closed due to MA

2006.10.23 20:30:08 Cost_Avg___RSI_w_Trend_v1 USDCHF,M15: Long Closed due to MA

2006.10.23 20:30:08 Cost_Avg___RSI_w_Trend_v1 EURCHF,M15: Long Closed due to MA

2006.10.23 20:16:06 Cost_Avg___RSI_w_Trend_v1 USDCAD,M15: Short Closed due to MA

2006.10.23 20:15:51 Cost_Avg___RSI_w_Trend_v1 EURCHF,M15: Long Closed due to MA

2006.10.23 20:15:16 Cost_Avg___RSI_w_Trend_v1 USDCHF,M15: Long Closed due to MA

2006.10.23 20:15:13 Cost_Avg___RSI_w_Trend_v1 EURUSD,M15: Short Closed due to MA

2006.10.23 20:15:05 Cost_Avg___RSI_w_Trend_v1 USDJPY,M15: Long Closed due to MA

2006.10.23 20:14:59 Cost_Avg___RSI_w_Trend_v1 EURJPY,M15: Long Closed due to MA

2006.10.23 20:06:36 Cost_Avg___RSI_w_Trend_v1 EURUSD,M15: Long Closed due to MA

2006.10.23 20:03:47 Cost_Avg___RSI_w_Trend_v1 USDJPY,M15: Short Closed due to MA

2006.10.23 20:03:31 Cost_Avg___RSI_w_Trend_v1 USDCHF,M15: Short Closed due to MA

Maji:
Thank you for taking the time to examine the code. I hope to get more input there to take care of the possible bugs that almost every computer program has, and the users help to get rid of them.

Anyway, if you set the fast RSI period too small, you will get that condition. However, if you set it to something reasonable like 4 to 9 periods, then it should not occur. Let me describe how I want the additional buy to happen. The RSI falls below the buy level and then when it starts to come up and we buy at the bar when the RSI crosses up the buy level. Thus, you can see that the market has to move to make that happen. Also, hopefully this will ensure that we are buying the dip, but after the short term selling is over. I hope I made it clear to everyone who is interested in this mechanics.

Thanks again.
 
yeoeleven:
I have attached detailed statements progressive since the 16th October.

Cost Averaging v.3 shows closed profit of $2609 with -$453 floating

This EA has moved very steadily the highest increment reached was 1.3 units USDCHF

Smooth RSI shows a closed profit of $10919 with -$115.

A lot more volatility with this EA AUDUSD reached 16.5 units, EURUSD reached 9.9 units 3 times and USDCHF once.

Both EAs were on the default settings and all updates installed.

The latest Cost Average with Trend has had little time to test.

John

That Smooth RSI system will make me sick if I trade it with real money.

 
forex4syg:
Hi Maji,

Just start the test with new version and showed following message.

However, there are no any position opened.

Thanks!

======================================================

2006.10.23 20:31:30 Cost_Avg___RSI_w_Trend_v1 EURUSD,M15: Short Closed due to MA

2006.10.23 20:31:19 Cost_Avg___RSI_w_Trend_v1 USDJPY,M15: Long Closed due to MA

2006.10.23 20:31:03 Cost_Avg___RSI_w_Trend_v1 USDCAD,M15: Short Closed due to MA

2006.10.23 20:30:28 Cost_Avg___RSI_w_Trend_v1 EURJPY,M15: Long Closed due to MA

2006.10.23 20:30:08 Cost_Avg___RSI_w_Trend_v1 USDCHF,M15: Long Closed due to MA

2006.10.23 20:30:08 Cost_Avg___RSI_w_Trend_v1 EURCHF,M15: Long Closed due to MA

2006.10.23 20:16:06 Cost_Avg___RSI_w_Trend_v1 USDCAD,M15: Short Closed due to MA

2006.10.23 20:15:51 Cost_Avg___RSI_w_Trend_v1 EURCHF,M15: Long Closed due to MA

2006.10.23 20:15:16 Cost_Avg___RSI_w_Trend_v1 USDCHF,M15: Long Closed due to MA

2006.10.23 20:15:13 Cost_Avg___RSI_w_Trend_v1 EURUSD,M15: Short Closed due to MA

2006.10.23 20:15:05 Cost_Avg___RSI_w_Trend_v1 USDJPY,M15: Long Closed due to MA

2006.10.23 20:14:59 Cost_Avg___RSI_w_Trend_v1 EURJPY,M15: Long Closed due to MA

2006.10.23 20:06:36 Cost_Avg___RSI_w_Trend_v1 EURUSD,M15: Long Closed due to MA

2006.10.23 20:03:47 Cost_Avg___RSI_w_Trend_v1 USDJPY,M15: Short Closed due to MA

2006.10.23 20:03:31 Cost_Avg___RSI_w_Trend_v1 USDCHF,M15: Short Closed due to MA

I am stumped.

Has anyone faced the same problem?

Maji

 
Maji:
I am stumped.

Has anyone faced the same problem?

Maji

Hi Maji,

I have another question to ask you. I was testing version 3 on FXDD and IBFX MIN. There is sth I do not understand well.

The following are four Buy orders opened for USD/CHF.

I have manually closed the buy orders with Lot size 0.2, 0.3, and 0.5,

then turned off the EA. My question is related to the first buy order of 0.1 lot. As you can see, the order open price is 1.2699, the S/L is 1.2098,

I do not understand why the T/P can be 1.2608 which is much much lower than the order open price, the trade was closed with a loss of about 70 Pips.

Some modify may be triggered, the T/P may be recalculated, can you see any chance the recalcuated T/P with a price much much lower than the open price? I also can not understand why the IBFX can accept the T/P much much lower than its open price.

Thank you very much for your help!

===================================================

11295924 2006.10.19 01:25 buy 0.10 usdchfm 1.2699 1.2098 1.2608 2006.10.23 05:59 1.2608 0.00 0.00 0.20 -7.22

11333276 2006.10.19 17:10 buy 0.50 usdchfm 1.2595 1.2098 1.2608 2006.10.20 01:00 1.2559 0.00 0.00 0.50 -14.33

11300615 2006.10.19 07:40 buy 0.20 usdchfm 1.2667 1.2098 1.2608 2006.10.20 01:00 1.2559 0.00 0.00 0.20 -17.20

11315040 2006.10.19 13:30 buy 0.30 usdchfm 1.2635 1.2098 1.2608 2006.10.20 01:00 1.2559 0.00 0.00 0.30 -18.15

 
Maji:
I am stumped.

Has anyone faced the same problem?

Maji

Yes, looking at the code, the message will print even when no trades open.

 

I agree with Turoro... going back and looking at the EA... the messages are not dependent on the return value of the Closelongs etc... it will be printed. That is a nuisance bug and perhaps I will take care of it another time.

As for forexsyg, let us consider that the first buy was 1 lot at 1.5000. The TP is 1.5010. The next buy is 2 lots at 1.4970. Now the TP is (1.5+1.497*2)/3 + 10 pips = 1.4990. The tp is below the buy price. That is why you are cost averaging... to lower your basis cost. The other buys lowered the basis cost and hence the tp was much lower than the first buy price. Now you know what "cost averaging" is all about

 
Maji:
I agree with Turoro... going back and looking at the EA... the messages are not dependent on the return value of the Closelongs etc... it will be printed. That is a nuisance bug and perhaps I will take care of it another time. As for forexsyg, let us consider that the first buy was 1 lot at 1.5000. The TP is 1.5010. The next buy is 2 lots at 1.4970. Now the TP is (1.5+1.497*2)/3 + 10 pips = 1.4990. The tp is below the buy price. That is why you are cost averaging... to lower your basis cost. The other buys lowered the basis cost and hence the tp was much lower than the first buy price. Now you know what "cost averaging" is all about

Thanks for your help, now I understand it.