Hi… Very happy Dasara,… I am novice to coding…
is it possible to code in tradescript for following strategy?
Intraday buy if scrip gains 2% with 0.50% trailing stoploss
Buy again if it reaches day’s high after hitting stoploss with trailing stoploss of 0.50%
Exit if hits stoploss.
For the above given condition it is not possible to code based on percentage of day with tradescript as of now
Below code if for finding percentage
//pchng = (C - Ref(C,-1)) /( Ref(C,-1) * 100);
Filter = pchng;
AddColumn(Close, “Close Price”,1.2 );
AddColumn(pchng, “Percent Change”,1.2 );