Stragegy behavior differs in Backtest and real conditions

Moderator: admin

Stragegy behavior differs in Backtest and real conditions

Postby ilnefopas » Sun Jan 13, 2019 4:22 am

Hi guys,

I wrote a strategy that works the way it should when performing backtest (either with Marketscope or Indicore) but when I put it in my real account, it doesn't.
There is no error when in real account, 99% of the strategy works in real conditions but I have a test that seems to never been "trigered".
Any idea where this could come from ?

Thanks,
Ben.
ilnefopas
 
Posts: 26
Joined: Mon Dec 28, 2015 12:51 pm

Re: Stragegy behavior differs in Backtest and real condition

Postby Apprentice » Sun Jan 13, 2019 7:19 am

Can you split your strategy for testing?
You can use my email.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Stragegy behavior differs in Backtest and real condition

Postby ilnefopas » Sun Jan 13, 2019 7:44 am

Hi Apprentice,

I created a topic with some pieces of the code.
Let me know if that is enough for you to think of something.
Hers is the link viewtopic.php?f=31&t=67257

Thanks
ilnefopas
 
Posts: 26
Joined: Mon Dec 28, 2015 12:51 pm

Re: Stragegy behavior differs in Backtest and real condition

Postby ilnefopas » Mon Jan 14, 2019 4:07 am

Hi Apprentice,

is the pieces of code I've pasted in viewtopic.php?f=31&t=67257
enough for you to have a first look and possibly identify something or do you need more ?
Thanks,
Ben.
ilnefopas
 
Posts: 26
Joined: Mon Dec 28, 2015 12:51 pm

Re: Stragegy behavior differs in Backtest and real condition

Postby Apprentice » Sat Jan 26, 2019 5:16 am

It's hard to tell what happens exactly in your environment. The best way to figure out - to print orders table with the fields you do check. This way you'll figure out what is wrong with that.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 11 guests