I'm trying to import my orders and overlay it onto a chart for reviewing my trades.
It does not seem like the Import Wizard/ASCII suits what I'm trying to do.
I think I want to read in a csv file, via fopen
, loop through the orders line by line and store that somewhere.
The file looks like this:
"IBAU200","IBAU200","BUY","1","10","08/08/2022 13:31:20","7025.3","-7.0253","AUD"
"IBAU200","IBAU200","BUY","1","5","11/08/2022 10:50:46","7035.25","-3.517625","AUD"
"IBAU200","IBAU200","BUY","1","5","11/08/2022 11:33:51","7045.25","-3.522625","AUD"
"IBAU200","IBAU200","BUY","1","5","11/08/2022 11:45:49","7050.38","-3.52519","AUD"
"IBAU200","IBAU200","BUY","1","5","11/08/2022 12:45:40","7041.38","-3.52069","AUD"
Then somehow, and this is where I'm stuck, plot the orders at the right time on the chart.
Everything I've seen in Amibroker so far is about plotting at a specific array index, but I want to loop through my executed orders and plot these at arbitrary indexes based on the time of execution.
I'm trying to understand how to do this in Amibroker. Any help appreciated!