thank you StratOpt , but what if this time I want to buy when the stock price today is greater than the highest price of yesterday daily bar and I want to buy using 5 mins bar for daytrade.
This involves 2 time frames , which are daily bar and 5 mins bar. Is it possible to code like this. thank you again.
it is possible.
you could either try using the function highd(1), witch returns the high of the day 1 day ago and write the code as:
buy 1000 shares at highd(0) stop;
or you could try putting both time frames in your chart and writing the code as :
buy 1000 shares at high of data2 stop;
it is possible.
you could either try using the function highd(1), witch returns the high of the day 1 day ago and write the code as:
buy 1000 shares at highd(0) stop;
or you could try putting both time frames in your chart and writing the code as :
buy 1000 shares at high of data2 stop;