Topics
Replies
lec0456
29 Jun 2013, 20:32
RE: RE: RE: RE:
lec0456 said:TradingDeveloper said:lec0456 said:.2 pip spread$
$30/million commission
The stop loss varies but starts at 100pips. if price moves slowly against the position it can hit the stoploss but the robot uses an indicator that detects breaks against a position and then makes a corective trade. Thats why you see interuptions in the graph pattern.
Hi,
Thanks for the info, what is your take profit exactly?
Based on my experience I see some potential problems in your backtesting:
1. $30/million commision is not a real value, the broker I know charge $65-$80 / Million, do you know any charging $30?
2. Depending on your take profit the spread may have an impact in your backtesting results, if you have a low take profit the results may be much different in a real scenario.
4. If your take profit is low I would say 100 pips stop loss is too high and involves some risk, and if you say your stop loss increases its even more risky.
I see your last trade in the Screen shot was about 10 pipsa profit, so I assume your take profit is low.
I would suggest you to adjust the commisions and place a random spread between 0 and 3 and check the results again.
I use 7.5 pip take profit for the initial trade. But corrective trades will be executed in 2 varieties. I call them MAX and normal trasdes. A MAX corrective trade uses 75pips and a normal corrective trade uses the loss of the origonal trade plus 7.5 pips(the stoploss would be the same as the TP for corrective trades). There is criteria I use to decide if I go MAX or normal on the correction. I don't use stop loss greater than 100
As far as the Brokers, yes there are brokers in the $30/million range. Recently some have dropped commisions, here is a list I complied a few onths ago, but be warned it may not up to date:
Broker Location Commission Time Cost Liquid Markets Cyprus $ 45.00 Cyprus $ 11.72 Trader'sWay Dominica $ 35.00 Cyprus $ 9.27 ICMarkets Sydney $ 30.00 GMT $ 7.90 FXPro Cyprus $ 65.00 Cyprus $ 17.14 Divisa NewZeland $ 30.00 GMT $ 7.90 RoboForex NewZeland $ 20.00 Cyprus $ 5.20 FiboGroup Cyprus $ 30.00 Cyprus $ 7.90
Hi lec0456,
What is this robot called? and will you make it available for download?
Thanks,
The name of the robot really doesn't matter. But I have spent over a year developing the robot and custom indicators it uses, so I wouldn't be inclined to give it away. However, if another devveloper had a robot that intrigued me, I would consider trading.
@lec0456
lec0456
28 Jun 2013, 20:47
RE: RE:
lec0456 said:.2 pip spread$
$30/million commission
The stop loss varies but starts at 100pips. if price moves slowly against the position it can hit the stoploss but the robot uses an indicator that detects breaks against a position and then makes a corective trade. Thats why you see interuptions in the graph pattern.
Hi,
Thanks for the info, what is your take profit exactly?
Based on my experience I see some potential problems in your backtesting:
1. $30/million commision is not a real value, the broker I know charge $65-$80 / Million, do you know any charging $30?
2. Depending on your take profit the spread may have an impact in your backtesting results, if you have a low take profit the results may be much different in a real scenario.
4. If your take profit is low I would say 100 pips stop loss is too high and involves some risk, and if you say your stop loss increases its even more risky.
I see your last trade in the Screen shot was about 10 pipsa profit, so I assume your take profit is low.
I would suggest you to adjust the commisions and place a random spread between 0 and 3 and check the results again.
I use 7.5 pip take profit for the initial trade. But corrective trades will be executed in 2 varieties. I call them MAX and normal trasdes. A MAX corrective trade uses 75pips and a normal corrective trade uses the loss of the origonal trade plus 7.5 pips(the stoploss would be the same as the TP for corrective trades). There is criteria I use to decide if I go MAX or normal on the correction. I don't use stop loss greater than 100
As far as the Brokers, yes there are brokers in the $30/million range. Recently some have dropped commisions, here is a list I complied a few onths ago, but be warned it may not up to date:
Broker | Location | Commission | Time | Cost |
Liquid Markets | Cyprus | $ 45.00 | Cyprus | $ 11.72 |
Trader'sWay | Dominica | $ 35.00 | Cyprus | $ 9.27 |
ICMarkets | Sydney | $ 30.00 | GMT | $ 7.90 |
FXPro | Cyprus | $ 65.00 | Cyprus | $ 17.14 |
Divisa | NewZeland | $ 30.00 | GMT | $ 7.90 |
RoboForex | NewZeland | $ 20.00 | Cyprus | $ 5.20 |
FiboGroup | Cyprus | $ 30.00 | Cyprus | $ 7.90 |
@lec0456
lec0456
27 Jun 2013, 19:08
RE:
.2 pip spread$
$30/million commission
The stop loss varies but starts at 100pips. if price moves slowly against the position it can hit the stoploss but the robot uses an indicator that detects breaks against a position and then makes a corective trade. Thats why you see interuptions in the graph pattern.
most of the time, price breaks in a direction rather than slowly sliding 100 pips
@lec0456
lec0456
27 Jun 2013, 19:06
.2 pip spread$
$30/million commission
The stop loss varies but starts at 100pips. if price moves slowly against the position it can hit the stoploss but the robot uses an indicator that detects breaks against a position and then makes a corective trade. Thats why you see interuptions in the graph pattern.
@lec0456
lec0456
10 Jun 2013, 19:45
Its as good as cTrader can get it because backtesting is limited to only one year. They are supposed to increase it to 5 years which would be ideal. I am testing it using a micro lot for now every time it doubles I will increase by one microlot. This strategy requires a minimum of 10x equity and would be safer with 20x so if you trade one standard lot you should have at least $2000 to start your account. Thats using 500:1 leverage.
@lec0456
lec0456
10 Jun 2013, 18:07
Right now it only works well on the EUR/USD pair. However, I beleive it just needs to be calibrated to work with other pairs. But "calibration" is not that easy. You have to spend hours. days, even weeks, testing out different indicator parameters and measurements inorder to optimize the strategy and get it insync with the pair. Every pair moves differently with different cycles and differnet size reactions to market conditions. I think:) I'm working on the GBP/USD next.
@lec0456
lec0456
10 Jun 2013, 17:55
This strategy trades one standard lot at a time. No hedging. It looks at some criteria and places a trade it thinks has a high probability. However, if the price goes against the trade it looks at certain custom indicators and market measurements to place a corrective trade that compensates for the loss and adds some profit instead.
@lec0456
lec0456
07 Jun 2013, 15:46
Well, the problem with the statement
if(Trade.IsExecuting) return;
Is that it kicks you out of the OnTick event so that now the next tick would execute but the trade would have been be closed by the previous tick, so it would not know to execute this "special" type of trade.
But, I did what you suggested, I setup a global flag so that the OnClosePosition will execute the special trade if the flag is set and it resets the flag.
I guess I was curious if there was another way around the issue with code in the OnTick event, but I got it to work like you said
@lec0456
lec0456
07 Jun 2013, 14:25
Its that, I don't want to execute a trade everytime a trade closes. I have certain criteria in the OnTick event that causes the trade to close and open another.
I tryed using a wait loop:
CloseOpenPositions(); Wait: if(Trade.IsExecuting) goto Wait; var SellMarketOrder = new MarketOrderRequest(TradeType.Sell, TradeVol) {Label="SellOrder", StopLossPips=75, TakeProfitPips=(int)Math.Abs(LastTradePips)+8}; Print(MarketSeries.OpenTime[t0]+" TP:"+Math.Abs(LastTradePips)); Trade.Send(SellMarketOrder);
but it hangs...
@lec0456
lec0456
06 Jun 2013, 22:32
So, if you wanted to do this with an indicator you would be comparing the MarketSeries.High'[index]-MarketSeries.Low[index] and MarketSeries.High'[index-1]-MarketSeries.Low[index-1] then use the drawtext method to label the candle. hope that points you in the right direction
@lec0456
lec0456
06 Jun 2013, 22:23
Ok, so I got an update on the IC markets platform. But! Period separators are set to conincide with 12AM user time. And have you looked at a daily chart?
http://icmarkets.ctrader.com/c/bMh5n
There is data on Sunday the 2nd, Saturday the 1st and then no data on Friday, it jumps to thursday may 30th.
I am very concerned that this is going to make backtesting useless...hope there is a fix
@lec0456
lec0456
06 Jun 2013, 21:25
Ok, So whats going on right now is that the update has not been applied. But the broker time has changed to reflect a difference in the Kind property. Before it was unspecified and now it is UTC but the broker time is still using Cyprus time. Which does not allow me to convert it using the convert functions because it give an exception error if the Kind is UTC and the souce time is not...
@lec0456
lec0456
06 Jun 2013, 20:21
I am confused. Has the update occured already?
Are you saying that after the update the historical dates and times will be in UTC as well? So, even when backtesting, the time will be UTC
Or that the times going forward will be in UTC and the historical times will be in the old broker's timezone??
So, far I see that there are historical times that are"DateTImeKind="unspecified" and new time is DateTimeKind=Utc. So that suggests that when backtesting we will be moving between 2 time zones?
@lec0456
lec0456
15 Jul 2013, 19:28
Just off the top of my head, If you are comparing the current period verses the previous period, and if your comparison for one of the points is zero(or extremely close enough), meaning the ema's cross exactly on the period, that could cause code to miss this cross. I use a 3 period comparison when I want to trigger crossings. So, I use the previous period and the period before that. When compared with the current period if the sign of the differneces are not the same, then you have a cross. Don't know if that helps any...good luck
@lec0456