RSI range bot (80-40) backtesting help
RSI range bot (80-40) backtesting help
15 Oct 2016, 17:48
Hi there
I have been playing around with /algos/cbots/show/403
Set to, EUR/USD 1 min, 6 period RSI, 1k starting capital w/ 10000 units, set to the below perimeters
if (rsi.Result.LastValue > 80)
{
Open(TradeType.Sell);
}
else if (rsi.Result.LastValue < 40)
{
Close(TradeType.Sell);
The process behind this cBot is to sell above 80 and close below 40, taking the very top portion of a movement swing. On paper, this makes sense.
If you look at the deal map in the picture below I honestly can not understand how each trade is tested, how cAlgo manages to close RANDOMLY above a candlestick doesn't make any sense. Also, the built in stop loss does not work.
Am I doing something wrong, is this a bad coded cbot, perhaps there is an issue withe cAlgo? Thoughts and opinions welcome.
Replies
croucrou
20 Oct 2016, 21:57
It seems to be closing sell positions, when the RSI goes below the set level of 30 as has been coded.
The indicator might repaint, so it's possible not to see the exact same values after time.
Don't bother with the deal map lines, if the closing prices are correct.
The stop loss is not "built in". It does not work, because it has not been applied to the execution line.
@croucrou
... Deleted by UFO ...
derekszyszka
15 Oct 2016, 18:39
Sorry, here is the complete code, have a look
@derekszyszka