Please add correct buy sell varable

#1
Hai seniors and experts .
I am testing supertrend for my Algo trading .But i am facing some difficulties . Sometimes it does not gives buy signal in some scripts although it is giving sell signal .
Kindly please correct the buy sell variables .
Currently i am using this




Plot(NW, "", IIf(Trend == 1, 27, 4), 4);
Buy=NW<HACLOSE;
Sell=NW>HACLOSE;
SellPrice=ValueWhen(Sell,C,1);
BuyPrice=ValueWhen(Buy,C,1);
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy );

Short=Sell;
Cover=Buy;


NMAB= NW<HACLOSE;
NMAS= NW>HACLOSE;
 
#2
Hai seniors and experts .
Kindly modify my buy sell variables so that if we buy a stock and on reversal (as per code ), it covers our buy position and also sells 1 more lot of that stock .
Vice - versa should be the case in case of sell position .
It will be of great help .
Kindly help .
 
Last edited:

Similar threads

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?