Amibroker Filter stock on one condition and buy or sell on second condition

#1
Need Help
How I can filter the stock by using one or two combination and then use second condition for buy and sell in amibroker explore. need some example AFL

When trading day start I want to filter stock by using some multiple condition and want to keep list of filtered stock till end of the day. Second condition will be used to generate BUY or SELL signal only from today filter stock.
For Example
(1) Rsi cross up 70 or Rsi break down 40 (even it is happen once, I need to that stock for next condition for buy or Sell based on second condition
(2) Macd signal positive or Macd signal negative
(3) price cross 200 daily MA

Above condition give me the filtered list of stock and now I want to run second condition on that to generate Buy or Sell

For example
(1) if price cross ATR buy if break ATR Sell
OR
(2) if price cross 200 ma (1 minute) for BUY and break 200 ma(1 minute) sell.

Please Help or share the example code for the above Logic in Amibrker AFL.
 

mt4trader

Well-Known Member
#2
you can do with two exploration
first explore with first condition and save the list.
then again explore only those with secound condition
 

Similar threads