Export tick data when using Amibroker 6.3, 32 bit in Windows 11 - amibroker

When I used Amibroker 6.3 32 bit in Windows 10, I can export Tick data easily. But now when I run Amibroker 6.3 32 bit in Windows 11, I only received end-of-day (EOD) data although I want to export tick data.
I tried to change Amibroker's compatibility to Windows 8, Windows 7, and Windows XP but it cannot work.
There are my codes to export tick data in Amibroker: https://drive.google.com/file/d/1D1MTVGIyIOyoj_ZI77BqlQivbBz4kVWW/view?usp=sharing
How can I export tick data when using Amibroker 6.3 32 bit in Windows 11. Please help me. Thank you so much! Have a nice weekend.
I tried to change Amibroker's compatibility to Windows 8, Windows 7, and Windows XP but it cannot work. I cannot export tick data, I only received end of day data

I cannot view the data.
Btw, you need to be careful whether your computer is able to process tick data. If your computer is not strong enough, the Amibroker application can have no response.
If your computer is good, you can try the following proof of concept to do your work. Here is the example of exporting Tiingo Historical Data (Downloaded from Amiquote Tiingo Historical)
Step 1:
//Get all price data
Filter = C>O or C<O or C==O;
//Add Closing Price Column
AddColumn("C","Closing Price");
Step 2: Click "Explore"
Step 3: Go to Amibroker and click "File" - "Export HTML/CSV". Then, export as CSV format.
Btw, please allow other people to view your data first.

Related

how to use the SHCreateAssociationRegistration to set ProgId for the app for file Association

I want to association file in win 10, I want to use IApplicationAssociationRegistrationInternal::SetAppAsDefault() ,but it does not support after win 8.
I see a user Castorix say he tested on Windows 10 - 1803, 17134.820 is OK, But I does not know how to write the code.
This is the answer of Castorix :
On Windows 10, it is done with IApplicationAssociationRegistrationInternal ("2a848e25-d688-4aa3-8e55-0c16cb3a2dfb")
created with SHCreateAssociationRegistration
Set "AppX4hxtad77fbk3jkkeerkrm0ze94wjf3s9" for Microsoft Edge ProgId
(tested on Windows 10 - 1803, 17134.820)
I WANT TO GET THE COMPLETE CODE, WHO CAN HELP ME, THANKS!

Livecycle - form1.execValidate is not a function! Then Reader crashes

error message: form1.execValidate is not a function. but this has worked fine for years!
Last week the client (large bank) rolled out a new version of Adobe Reader XI 11.0.21. Perhaps registry keys were changed as well - don't know.
So now all livecycle forms are crashing. Below is one error message seen on the console followed by the crash.
The code being used has been executed 10K+ times over ~5 years, over roughly 5 different forms over many versions.
form1.FirstPage.sfBody.sfSectionB.sfEnder.SendReferral::click - (JavaScript, client)
var res = form1.execValidate(); // does form validation, if all good returns true
if (res) {
cLookFeel.fMailTo(event.target);
}
(Code is attached to the click method on a button, cLookFeel is the name of my code block.)
And strangely - Reader then seems to (often) crash. Go figure.
followed by a crash:
Okay, turns out it's a known bug by Adobe on 11.0.21. They've issued a fix.
https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-11-2017.html

Timer clock is not ticking after minimizing the application - Windows 8 Metro App

Visual Studio 2012 - Windows 8 Metro App. I have implemented Timer to display current time in my app. it is working as expected below code
ThreadPoolTimer.CreatePeriodicTimer(async (timer) =>
{
this.Dispatcher.RunAsync(CoreDispatcherPriority.Low,
() =>
{
this.tbDigitalClock.Text = DateTime.UtcNow.ToString("MM/dd/yyyy HH:mm") + " UTC";
});
}, TimeSpan.FromSeconds(60));
After minimizing and waiting for 5 mins & maximize the app window. I was able to notice that the time in the app is less than 5 mins when compared to the current time.
Not sure why am I seeing this time difference. Could it be that the background thread is unable to bind the UI elements when the UI is inactive?
Note : This is working fine in windows 10 but not working in windows 8.
Making CoreDispatcherPriority from Low to Normal made it work in Windows 8 as well.
CoreDispatcherPriority.Normal

Windows Phone 8.1 live tile background task

I have a Windows Phone 8 app that I recently upgraded to 8.1 Silverlight. I'd like to use the new tile templates. Right now I have a ScheduledTaskAgent that uses ShellTile.
In order to use the new live tiles I changed the notification service to WNS in my WMAppManifest.xml. I removed the code to register the old background task and added this code instead:
var backgroundAccessStatus = await BackgroundExecutionManager.RequestAccessAsync();
if (backgroundAccessStatus == BackgroundAccessStatus.AllowedMayUseActiveRealTimeConnectivity ||
backgroundAccessStatus == BackgroundAccessStatus.AllowedWithAlwaysOnRealTimeConnectivity)
{
foreach (var task in BackgroundTaskRegistration.AllTasks)
{
if (task.Value.Name == "LiveTileBackgroundTask")
{
task.Value.Unregister(true);
}
}
BackgroundTaskBuilder taskBuilder = new BackgroundTaskBuilder();
taskBuilder.Name = "LiveTileBackgroundTask";
taskBuilder.TaskEntryPoint = "BackgroundTasks.LiveTileBackgroundTask";
taskBuilder.SetTrigger(new TimeTrigger(15, false));
var registration = taskBuilder.Register();
}
I created a Windows Phone 8.1 Windows Runtime Component called BackgroundTasks that contains a BackgroundTask called LiveTileBackgroundTask:
public sealed class LiveTileBackgroundTask : IBackgroundTask
{
public void Run(IBackgroundTaskInstance taskInstance)
{
BackgroundTaskDeferral deferral = taskInstance.GetDeferral();
const string xml = "<tile>"
+ "<visual>"
+ "<binding template='TileWideText01'>"
+ "<text id='1'>Text Field 1 (larger text)</text>"
+ "<text id='2'>Text Field 2</text>"
+ "<text id='3'>Text Field 3</text>"
+ "<text id='4'>Text Field 4</text>"
+ "<text id='5'>Text Field 5</text>"
+ "</binding> "
+ "</visual>"
+"</tile>";
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
TileNotification tileNotification = new TileNotification(doc);
TileUpdateManager.CreateTileUpdaterForApplication().Update(tileNotification);
deferral.Complete();
}
}
I added a reference to this assembly in my Windows Phone project.
I also added a Background task declaration in my Package.appxmanifest that has BackgroundTasks.LiveTileBackgroundTask as an Entry point. I selected Timer and System event as supported task types.
When I run the app though, nothing happens. No live tile appears. I ran through the background task and everything goes well without any exceptions.
You say "No live tile appears". The code you've posted does not create a live tile - it just updates one. You have to manually pin it - the primary tile cannot be pinned through code.
If that's not the problem, maybe you're not looking at the wide tile? This template is for a wide tile, so the square tile won't be updated by this. I'd suggest using the NotificationsExtensions library. It was originally for Windows Store apps, but I think it would work for WP as well. (I've used it, but just for a test, not for real, so there may be issues.) It allows you to easily specify the template and params for both wide and square tiles.
And finally, to have a wide tile, you have to manually edit the Package.appxmanifest file. You must add the Wide310x150Logo attribute to the DefaultTile element.
That's all I can think of. Hope it helps.
Continuous background execution is not supported for Silverlight 8.1
apps
Windows Phone 8 apps can continue to run in the background after the
user navigates away from the app under certain conditions. This
feature is not available for Silverlight 8.1 apps. If you need this
feature, you should continue to use a Windows Phone 8 app. For more
information, see Running location-tracking apps in the background for
Windows Phone 8.
Platform compatibility and breaking changes for Windows Phone Silverlight 8.1 apps
Windows Phone 8.1 Windows Runtime Component can only be used with Windows Phone 8.1 Runtime(Store) app

Loading large firebird datafile table into a DataSet

I have a Firbird 1.0 data file weighting aprox 25 GB that I am working with it. It has a table which has stored documents and doc's pics as blob. So, I am asking is it possible to open such big data file using fib datasets, i firstly tried to open dataset in runtime = no success as grid was empty so another try was to set it active in design mode which it was also unable to open as it's active property is set to true but no fetched data in grid!
Have you any idea to make it work ? Do I have to set any blob cashe options?
or it is not possible at all?
Now I am developing using my laptop computer (Win 7 x64 4GB Ram ), and later it'll be deployed to my server machine!
I've fixed it!
So another my question is about loading blob data using stream to a TImage component
i am doing like this but it pops out an Access violation
here is my code which you may look at
DM->stImage->Active=true;
try {
TMemoryStream *ms=new TMemoryStream();
TStream *ps=DM->stImage->CreateBlobStream(DM->stImage->FieldByName("PHOTO") ,bmRead);
ms->Position=0;
ms->CopyFrom(ps,ps->Size);
ms->SaveToFile("c:\\1.jpg");
// imgPass->Picture->LoadFromStream(ms);
imgPass->Picture->Graphic->LoadFromStream(ps);
delete ms;
delete ps;
}
catch (Exception &e) {
ShowMessage(e.ToString());
}
it can save it but imgPass->Picture->Graphic->LoadFromStream(ps); does not work!
what could be a problem?
To avoid the AV you need to reset the stream position, that was moved forward during the call to "CopyFrom" function.
So, your code should look like (only the relevant lines):
ms->CopyFrom(ps,ps->Size);
ms->SaveToFile("c:\\1.jpg");
ps->Position = 0; //<<<<<<<<<< here we reset the stream position
imgPass->Picture->Graphic->LoadFromStream(ps);
//imgPass->Picture->Bitmap->LoadFromStream(ps); // <<< if a bitmap and not JPEG
Hope this helps you.
P.S.: this question should be tagged C++ (or C++Builder) because it is not only a database subject.

Resources