Cost Averaging System - page 23

 
Maji:
Thank you for your input. The only reason I don't want to post the code here is to prevent low lives from picking it from here and selling it. There have been some examples of these bottom feeders resorting to such tactics.

I see. ok, I guess that's good. I'm just not used to thinking in those social terms. I guess I figure that something under development like this is not really a very saleable or lucrative venture, unless you're selling to total compulsive gamblers. Now there may be plenty of compulsive gamblers out there to sell a prototype like this to, but, I suppose I have more faith in the common man than that. I choose to believe that the common person has a few more cells firing between their ears than to really put out any money for an only half baked high risk test version of a system. I'm thinking it would be a hard sell to any sober investor. Taking on the role of protecting the ignorant from their own ignornace is a mighty tall task. Bottom feeders as you call them have an uphill battle when people become educated. I think the best defense for what you are talking about is a good educational offense.

I'll let you know how my progress is coming with the support resistance work....Currently I have started to get a grip for the first time on loops and arrays. They have elluded me until last week something just clicked and now I understand how to work with them. I consider them like the seats of an airplane and the index number like the seat number. The size of the array is like the size of the aircraft and the index number is used to specify which seat on the plane, or like an egg carton with the spaces indexed. I dunno somehow the lights just came on and I get it now.

So I have arrays and loops going which calculate how many times an opening or closing price matches +-1 pip with all the other opens and closes within however many bars are specified to consider, hence more matches establishes a stronger support/resistance level based on opens and closes.

I'm only a marginal mathamatician. I don't understand mean and standard deviation, I only understand averages, but I have a hunch that I need to learn more about statistical mathametics to make use of the data which now I can wrestle from the charts. I want to find a way of giving a relative strength value to each support/resistance level relative to the whole test set. I don't think that simple averages would work best for that. What do you think? There IS a standard deviation on array function but I'm not sure how to use it or if it would be better to use it than using simple averages. I think I could use an engineer's insights.

 

current demo testing results attached

Files:
 

RSI trend v3 is a selective trader. Here are the settings I am using for 15m on USDCHF, EURUSD, USDCAD, EURCHF, EURJPY and USDJPY. I am using the same parameters, but on 30m charts for GBPUSD, GBPJPY and GBPCHF. It is about 24 hours and I did not have a single trade. I suggest that you plot the RSI on the screen and you will see that the extremes are touched rarely.

Someone with good quality data can backtest and post some suggested settings. Please remember that this system (with trailing turned off) works off closed bars, so you can use "open bar" method to do your test. Intrabar tick data/interpolation will not be required.

extern int MagicNumber = 12413;

extern double LotExponent = 1.666667;

extern double slip = 3;

extern double pLots = 0.1;

extern double TakeProfit = 25;

extern double Stoploss = 500;

extern double PipStep = 25;

extern int MaxTrades = 10;

extern bool UseStopLoss = false;

extern double TotalEquityRisk = 25; //loss as a percentage of equity

extern bool UseSafeMode = true;

extern bool UseRSIforAddTrade = true;

extern double BuyLevel = 10;

extern double SellLevel = 90;

extern int SlowPeriod = 9;

extern int FastPeriod = 4;

extern int PriceType = 5;

extern bool UseTrend = false;

extern int sMAPeriod = 20;

extern int MAPeriod = 10;

extern int MATimeFrame = 10080;

extern int MAMethod = 0;

extern int MAPrice = 5;

extern bool UseMASlope = false;

extern int MinPips = 10;

extern int MALookBack = 5;

extern bool UseTrailingStop = false;

extern double TrailStart = 50;

extern double TrailStop = 50;

extern bool MM = false; //Use Money Management or not

extern double RiskPercent = 0.1; //% of equity used as margin per trade

 

Trailing stop Test for Cost Avg - RSI w-Trend v3

Hi Maji,

I am running test for four majors, and EUR/JPY, EUR/CHF and USD/CAN. Settings are shown in the attached file " rsi_w_trend_v3.txt".

extern double TakeProfit = 150;

extern bool UseTrailingStop = true;

extern double TrailStart = 20;

extern double TrailStop = 20;

Results up to now are shown in the attachment.

4062951 2006.10.31 02:00 sell 0.10 usdjpy 117.55 117.54 116.05 2006.10.31 09:05 117.54 0.00 0.00 0.00 0.85

The Sell position for USD/JPY had profit about about 15 pips, but trailed stop at 1 pips.

Could you please take a look if the trailing stop is working as you expected?

Thanks!

Scott

 

Maji,

I am trying to optimize safe settings for small accoutns on V4 but I cannot use less than 0.05 lots because I start to get an error message about wrong lot size.

I am using interbank fx so it should accept lot sizes of 0.01.

Is it possible to fix this problem to be able to trade with small lot sizes?

I will post settings as soon as I manage to get some good ones.

 

Scott,

If the price retraced then it will take out your trailing stop. So, the average price moved 21 pips above the average entry and then retraced 20 pips. That would mean your stop will now be taken out and you will end up with 1 pip profit based on the 20/20 settings.

 
rarango:
Maji,

I am trying to optimize safe settings for small accoutns on V4 but I cannot use less than 0.05 lots because I start to get an error message about wrong lot size.

I am using interbank fx so it should accept lot sizes of 0.01.

Is it possible to fix this problem to be able to trade with small lot sizes?

I will post settings as soon as I manage to get some good ones.

Find the following line:

iLots = NormalizeDouble(Lots*MathPow(LotExponent,NumOfTrades),1);

Change it to:

iLots = NormalizeDouble(Lots*MathPow(LotExponent,NumOfTrades),2);

There are a total of 3 places you need to make this change.

 

Cost Averaging RSI with Trend v3

Hello Maji,

I am running 6 test on the latest version.

Timeframe:M15

Starting ballance: $5000

Broker: IBFX

I will post my older running tests on Friday after market close.

 

Cost Averaging RSI with Trend v3 TEST1

MagicNumber=12413

LotExponent=1.66666700

slip=3.00000000

pLots=0.10000000

TakeProfit=20.00000000

Stoploss=500.00000000

PipStep=25.00000000

MaxTrades=10

UseStopLoss=0

TotalEquityRisk=25.00000000

UseSafeMode=1

UseRSIforAddTrade=1

BuyLevel=20.00000000

SellLevel=80.00000000

SlowPeriod=9

FastPeriod=5

PriceType=5

UseTrend=0

sMAPeriod=20

MAPeriod=10

MATimeFrame=1440

MAMethod=0

MAPrice=5

UseMASlope=0

MinPips=10

MALookBack=5

UseTrailingStop=0

TrailStart=50.00000000

TrailStop=50.00000000

MM=0

RiskPercent=0.10000000

 

Cost Averaging RSI with Trend v3 TEST2

MagicNumber=12413

LotExponent=1.66666700

slip=3.00000000

pLots=0.10000000

TakeProfit=20.00000000

Stoploss=500.00000000

PipStep=25.00000000

MaxTrades=10

UseStopLoss=1

TotalEquityRisk=25.00000000

UseSafeMode=1

UseRSIforAddTrade=1

BuyLevel=20.00000000

SellLevel=80.00000000

SlowPeriod=9

FastPeriod=5

PriceType=5

UseTrend=0

sMAPeriod=20

MAPeriod=10

MATimeFrame=1440

MAMethod=0

MAPrice=5

UseMASlope=0

MinPips=10

MALookBack=5

UseTrailingStop=0

TrailStart=50.00000000

TrailStop=50.00000000

MM=0

RiskPercent=0.10000000

Reason: