Is it possible to write such a strategy?
let's say;
I have 2 buy and 2 sell condition formula
Example
buy1=close>MA(close,20);
buy2=close>MA(close,50);
sell1=close<MA(close,20);
sell2=close<MA(close,50);
- in the same day for buy, we use buy2 ( same day with sell, it is previous trade) , And the next day from the previous trades we use buy 1
- for sell ; with previous trade ( buy1 or buy 2) we use for sell , sell 2 rule, and next day for sell we use sell1..
Is it possible that the formula.Could you please give an example .
I think it can be done with TIMENUM or DATETIME.
let's say;
I have 2 buy and 2 sell condition formula
Example
buy1=close>MA(close,20);
buy2=close>MA(close,50);
sell1=close<MA(close,20);
sell2=close<MA(close,50);
- in the same day for buy, we use buy2 ( same day with sell, it is previous trade) , And the next day from the previous trades we use buy 1
- for sell ; with previous trade ( buy1 or buy 2) we use for sell , sell 2 rule, and next day for sell we use sell1..
Is it possible that the formula.Could you please give an example .
I think it can be done with TIMENUM or DATETIME.