Jump to content
Tom Next - Daytrading Community

Historical Flag


Eddy

Recommended Posts

Hallo,

 

leider kann man mir im NinjaTrader-Forum keine Antwort auf folgendes Problem geben (da DLL-Support nicht unterstützt wird). Vielleicht hat ja hier jemand eine Lösung / Idee.

 

Ich möchte das Historical-Flag an eine Methode, die in einer DLL liegt übergeben. Leider wird IMMER true übergeben, obwohl Realtimedaten angezeigt werden.

Folgende Programmfragmente zeigen den Aufruf der Methode:

 

protected override void OnStartUp()
       {
           startMTIWorkbench();
       }

 

       protected override void OnBarUpdate()
       {
           Print("Historical: " + Time[0] + " / " + Historical);

           StockPoint pt = new StockPoint(Time[0], Open[0], High[0], Low[0], Close[0], 0);
           workbench.addBar (pt, Historical, ignoreTicklist);
       }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...