krottune.blogg.se

Amibroker file examples
Amibroker file examples









amibroker file examples

To use it, in your AFL, first you'll create a static object (the compiler will complain about it, but using static object means it's created once and shared, as opposed to being created many times and eating up your memory - so you can ignore it, I've never had memory problems using it): AmiComObj = CreateStaticObject("AmiCOMLib.AmiCOM") //note format is namespace.class I just choose the default one, it looks like. Under Properties > Signing > Check "Sign the Assembly". "C:\Windows\Microsoft.NET\Framework\v9\RegAsm" "C:\ATS\AmiCOMLib.dll" /tlb /codebaseįinally, I don't remember why, but I do it anyway, I sign the assembly. "C:\Windows\Microsoft.NET\Framework\v9\RegAsm" "C:\ATS\AmiCOMLib.dll" /unregister "%WinDir%\Microsoft.NET\Framework\v9\regasm" /tlb /codebase "$(TargetPath)"ĮCHO We're first going to unregister, then register AmiCOMLib

AMIBROKER FILE EXAMPLES CODE

NET versions (this is for 4.5).īuild Events Code "%WinDir%\Microsoft.NET\Framework\v9\regasm" /tlb /unregister "$(TargetPath)" Check which folder regasm is in, as it differs for different. The targetpath can be any folder you want, I use a folder on my C:\ drive, for example. I'm not sure if it's necessary, but I do it anyway. Every time I recompile my DLL, I run the unregister then register code. The first time you run this, run the register part first (comment out the unregister code). If the DLL and Amibroker are on the same machine, you can use the Build Events, otherwise, you can create a batch file. Next you'll prepare to register your DLL. You can send the quote string as a comma separated string (like I usually do for long strings) and split it in your DLL or send with many parameters. Public void SendQuotes(string quoteString) In your case, it would be something like this: namespace AmiCOMLib Create an interface and a class that implements the interface.

amibroker file examples

What you're going to do is create a class library. If(interval() = inDaily OR interval() = inMonthly OR interval() = inweekly)įputs( "Ticker,Date,Open,High,Low,Close,Volume \n", fh ) įor( i = 0 i = 92900 and lastvalue(timenum()) <=ĭs = StrFormat("%02.0f-%02.0f-%02.0f,", m, d, y ) add an IF line for each symbol you need to rename note: if you have names with invalid characters like / you must rename the Lname = Name() // gets the name of the symbol How can this be done without crashing / overloading Amibroker? // created a directory on your C drive named AmiBroker data backupĭayhours = paramtoggle("Day hours only", "No|Yes") csv file continuously throughout the day. But to use the live data I need to append incoming data to the. To get the data out of Amibroker I intend to use AFL ( Amibroker Formula Language ).

amibroker file examples

To get the intra-day live data from NSE, some vendors are selling data plugins for Amibroker. Need to test an algotrading tool to be used for day trading.











Amibroker file examples