amibroker programming
A program is needed that can dowload data into mysql database from amibroker. Amibroker is connected to a live feed and is receiving data.
1) user will manage/config program to instruct what time frame data should be downloaded into mysql (30min,1hr,15min etc)
2) Each time frame will have a specific database
3) program should ensure continuous data integrity and should be able to recover from crashes which can originate from amibroker/feed/program itself/windows. I.e program should resume from where it left
4) at the end of interval program has to look for specific condition in the data ->
if last 5 bars has:
1) all lows are > ma(close,5). generate a buy signal. with target=hhigh + (hhigh-llow) of these 5 bars. with SL as close below llow
2) all highs are < ma(close,5). generate a sell with target=llow-(hhigh-llow) of these 5 bars. with SL as close below hhigh.
when the condition arrives it should insert a row in a trade table with respective attributes and mark status as open.
now for each of these open trades the program should keep on monitoring the closes (+ data download). so when the condition arrives either target is hit or close happens as above it should marked the trade as close in trade table and continue with orginal work of donwloading data and looking for more trades.