Back to Community
I have a strategy, but I can't change it into alogrithms... pls help

The strategy using custom ZIAZAG indicator,the indicator including four line:
1. ZH:use HIGH PRICE as data,change rate =1%
2. ZL:use LOW PRICEas data,change rate =1%
3. TZH:the last valley of ZH (value)
4· PZL:the last peak of ZL (value)

Trading Strategy as below:
1. The Investment list is only the TOP 10 Volume at inclusion of S&P 500 last day (that means we just can hold 10 stock maximum).
2. trading in every minute.
3. When ZH and ZL were up trend,and ZH>PZL, buy in the stock. If ZL have a new value (the new peak appear),sold out that stock before market close 2 hours.
4. when ZH<PZL, and there was two peak appear that one peak higher than another, ZH and ZL same in the up trend, buy in the stock. If ZL have a new value (the new peak appear),sold out that stock before market close 2 hours.
5. if ZL raise continually, and ZH appear the new valley, buy in the stock. If ZL have a new value (the new peak appear),sold out that stock before market close 2 hours. (3+4+5 that means we can buy the same stock only 3 times.)
6. Leverage is 1.0, and do not consider the Put/Short.
7. Allocate the capital into 10 pieces to invest different 10 stock, each stock we invest 3 times (if under the condition).
8. if sold out the stock, found the new investment target on the investment list immediately.