SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Aug 19, 2018 3:22 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat May 21, 2016 3:26 am 
Offline

Joined: Thu Sep 17, 2015 5:52 am
Posts: 133
Hi SQ,

When I backtest the attached strategy in OQ2014 many Long Entries and Long Exits are made.

However, when I change lines 93 and 94 from

Code:
    marketOrder = BuyOrder(instrument, Qty, "Entry");
//  marketOrder = SellOrder(instrument, Qty, "Entry");

to this
Code:
//  marketOrder = BuyOrder(instrument, Qty, "Entry");
    marketOrder = SellOrder(instrument, Qty, "Entry");

only 1 Short Exit and 1 Short Entry are made.

Any idea why this is? Many more Short Entries and Short Exits should be made.

Thanks


Attachments:
MACDCrossover (test).zip [65.37 KiB]
Downloaded 155 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group