Highly adaptable RSI Strategy

Strategies are published here.

Moderator: admin

Re: Highly adaptable RSI Strategy

Postby sqrrl99 » Thu Feb 13, 2014 2:02 pm

I am having a problem with backtesting this strategy. I keep getting a message that reads, "close order failed the order is disabled". I have not been able to figure out what is causing this. Any help would be appreciated.
sqrrl99
 
Posts: 23
Joined: Thu Feb 13, 2014 1:58 pm

Re: Highly adaptable RSI Strategy

Postby moomoofx » Thu Feb 13, 2014 6:57 pm

It sounds like it is trying to close a trade that is already closed. Do you have two actions to try to close at around the same level? There may be some kind of race condition going on.

If you can't figure it out, please let me know the parameter values are you using for the strategy, and the currencypair and date range you are testing on and I will try to reproduce it.

Cheers,
MooMooFX
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Highly adaptable RSI Strategy

Postby sqrrl99 » Fri Feb 14, 2014 4:19 am

I was on the GBP/JPY 3 hour chart. RSI value was at 8. 1st line was 50. 2nd line 20. Stop loss at 250 pips. No multiple positions allowed. I had a buy when price crossed over the 1st line (50). Then I had "close position" when price crossed under 2nd line (20). The only time it would close the position was if the stop was hit. When price would drop under the 2nd line, that is when it would show the error. If I did not use a stop, then the first position would not close. I would just get errors each time price dropped under the 2nd line.

Thanks again for any help you may give,

Jason
sqrrl99
 
Posts: 23
Joined: Thu Feb 13, 2014 1:58 pm

Re: Highly adaptable RSI Strategy

Postby moomoofx » Fri Feb 14, 2014 4:58 am

Hi Jason,

Ah, hmm I don't think the exit trade logic handled FIFO account so I'm guessing that was your problem.

Please try this version and let me know if it fixes your issue.

Cheers,
MooMooFX
Attachments
Highly adaptable RSI Strategy.lua
(27.75 KiB) Downloaded 964 times
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Highly adaptable RSI Strategy

Postby sqrrl99 » Fri Feb 14, 2014 12:31 pm

Looks like it is working.

Thanks MooMoo
sqrrl99
 
Posts: 23
Joined: Thu Feb 13, 2014 1:58 pm

Re: Highly adaptable RSI Strategy

Postby moomoofx » Sat Feb 15, 2014 3:10 am

Great. Thanks for confirming.

Cheers,
MooMooFX
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Highly adaptable RSI Strategy

Postby sqrrl99 » Thu Feb 20, 2014 3:03 am

Hey Moomoo. I was hoping you could help me with one more problem. I have my trades setup to do multiple trades, but limited to 3. Yet, it is allowing more than that. Anything you can do to help would be appreciated.

Thanks,

Jason
sqrrl99
 
Posts: 23
Joined: Thu Feb 13, 2014 1:58 pm

Re: Highly adaptable RSI Strategy

Postby moomoofx » Thu Feb 20, 2014 4:25 am

A configuration of 3 would allow 3 per direction.

How many trades is it opening and how many in each direction?
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Re: Highly adaptable RSI Strategy

Postby sqrrl99 » Thu Feb 20, 2014 12:36 pm

I only allow it to trade it one direction, but 2 different pairs are currently showing 4 trades each. This did not happen when I backtested and optimized the strategy. It is only happening when I am trading it on my demo account.

Thanks,

Jason
sqrrl99
 
Posts: 23
Joined: Thu Feb 13, 2014 1:58 pm

Re: Highly adaptable RSI Strategy

Postby sqrrl99 » Thu Feb 20, 2014 2:41 pm

I have 2 different pairs that are over 3 trades in one direction (EUR/USD currently has 7 open trades). This does not happen during optimization or backtesting, only on my demo account. Multiple trades also happened when I tried demo testing this strategy with "allow multiple" turned off.

Any help would be appreciated,

Jason
sqrrl99
 
Posts: 23
Joined: Thu Feb 13, 2014 1:58 pm

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: Majestic-12 [Bot] and 14 guests