TKS, you need to first have a strategy to code, check this section for a few examples.
I am having strategies in amibroker. But in need coding for order placement.