how to code when daydtrade

militaryus

Newbie
Messages
3
Likes
0
I want to daytrade using 5 mins bar ,how to code if the stock price reaches 50 and buy 1000share?:D thank you
 
Last edited:
If you want to make a one time purchase of a stock as it passed through 50 on the way up

inputs:
PriceToBuy ( 50 ) ;

buy 1000 shares next bar PriceToBuy stop;
 
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.
 
Last edited:
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;

thank you trygvesen:D
 
Top