Hi Anant,
I had posted the reply on the mother thread...
Thanks Anant for your reply and saw the wonderful work you are doing. With my limited knowleage I have added the following columns to give the Target, SL and to indicate if the target,Sl is reached. If the target is reached, next day the new target will be given. Please correct the blanked out syntex and advise which will be the correct one.
AddColumn(BuyingPrice + (Ref(H,-1)-LLV(L,5)),"Target",1.2,colorGreen);
AddColumn(BuyingPrice -(Ref(H,-1)-LLV(L,5)),"SL",1.2,colorGreen);
//AddColumn(BuyingPrice + (H[BarNum - 1])-LLV(L,[BarNum-1],5),"Target",1.2,colorGreen);
//AddTextColumn(WriteIf(H > BuyingPrice + (H[BarNum - 1])-LLV(L,BarNum - 5),"YES","NO"),"Target Reached",1.2, colorGreen );
//AddTextColumn(WriteIf(L<BuyingPrice -(Ref(H,-1)-LLV(L,5)),"YES","NO"),"SL Hit",1.2,colorGreen);
AddTextColumn(WriteIf(H >BuyingPrice + (Ref(H,-1)-LLV(L,5)),"YES","NO"),"Target Reached",1.2, colorGreen );
AddTextColumn(WriteIf(L<BuyingPrice -(Ref(H,-1)-LLV(L,5)),"YES","NO"),"SL Hit",1.2,colorGreen);
Thanks & Regards
ken