SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Tue Sep 29, 2020 8:18 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Dec 30, 2012 7:11 am 
Offline

Joined: Fri Sep 28, 2012 8:16 am
Posts: 144
select a instrument at first,then click strategy,the gridview will not show the strategy logs any more.

here is my test code:
Code:
using System; 
using OpenQuant.API;
using OpenQuant.API.Logs;

public class MyStrategy:Strategy
{
   IStrategyLog Logs1;
   IStrategyLog Logs2;
   IStrategyLog Logs3;
   IStrategyLog Logs4;
   
   public override void OnStrategyStart()
   {
      Logs1 = this.InstrumentLogs["abc"];
      Logs2 = this.InstrumentLogs["DEF"];
      Logs3 = this.StrategyLogs["GHI"];
      //Logs4 = this.SolutionLogs["JKL"];
   }

   int i = 0;
   public override void OnBar(Bar bar)
   {
      if(i%2==0)
      {
         Logs1.Add(bar);
      }
      else
      {
         Logs2.Add(bar);
      }
      ++i;
      Logs3.Add(bar);
      //Logs4.Add(bar);
   }
}


=========
i found click blank area in strategy can fix the problem.


Attachments:
3BEEE5ED-504D-463E-9BC1-12D0DEFBDF90.jpg
3BEEE5ED-504D-463E-9BC1-12D0DEFBDF90.jpg [ 70.44 KiB | Viewed 2970 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 2 guests


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:  
Powered by phpBB® Forum Software © phpBB Group