Hi TB
The mentioned I/O was primarily with reference to csv (quotes.rtd)
Specifically, the delay w.r.t hard drive parameters (variable as per disk rpm and no. of cylinder heads) is eliminated
Ramdisk will always be much faster than SSD. Anyway, our workload is minimal so i doubt it makes any noticable difference either way. The filesystem may even be smart enough to just cache the changes.
One could use low level graphics to code artifacts which would do the job as desired but it would be a cumbersome way (not to mention, completely unnecessary) to accomplish the task
The simpler (and more versatile) way is to use studies. Triggers at chosen price can be put (Buy/ Sell as well as stop loss
), price can be read, the study can be moved manually for repeated use/ adjustment as required. For anyone trading a single ticker/ limited tickers, this is an ideal way to go about (semi) automating the trading process
Long time back, there was a guy with me in an other forum (nick - 'anotherbrian' ) who used the 'study' concept to evolve an auto trading system with IB controller & TWS api. He later quasi commercialized it as donationware. But anyone can make the same for use with any tool (in your case AHK) with some effort. Here are some reference links, as asked
https://www.amibroker.com/guide/afl/study.html
https://www.amibroker.com/guide/h_studies.html
http://www.amibroker.com/kb/2007/05...ssover-for-multiple-symbols-with-use-of-scan/
Regards,
thanks, study id + trend lines should do. Below is possible workflow for one scrip + one order at a time. Just writing for reference.
1) Keep 3 trendlines with diff study ids - Buy / Sell / Stop. When inactive, keep them in yesterday area.
2) To Order, move say Buy and Stop TLs to price around current time. Click on a
command button. Command button will trigger fetch of our study lines, we will
calculate X,Y of start and end and filter out inactive ones ( say only today and within 30 mins of current time). Start price can be taken as the price.
3) Once we have Entry and Stop price in afl, will simply call ahk script that will open a popup to finetune (with saved defaults).
We can have all sorts of extra logic as per needs but this seems a good base. If you see a better way, shoot.
-------------------------------------------------------
I have one annoyance with AB, maybe you can help. Main drawing tool i need is a horizontal line that does not extend ( ie a trend line with 1 price and some length). AB does not have it and i dont think we can create custom drawing tools. Using trend lines, i try to draw straight lines. Its a small thing but annoying to align them everyday.
As a workaround, i think we can simply have a flatten button that goes through all trend lines and sets end price = start price.
We could again use study ids, but is there any way to just get all trend lines? And how to modify trend line?
I dont know afl, and somehow i can never get my head around the reference ...