Stocks To Keep A Close Eye On

Status
Not open for further replies.
Re: Stocks To Keep A Close Eye On - Chapter II

Filter = TgtReached OR SLHit;

SetOption("NoDefaultColumns", True);

AddColumn(DateTime(), "Updated On", formatDateTime, colorDefault, colorDefault, 96);
AddTextColumn(Name(), "Symbol", 77, colorDefault, colorDefault, 120);
AddColumn(BuyDate, "Buy Date", formatDateTime, colorDefault, colorDefault, 96);
AddColumn(BuyPrice, "Buy Price", 6.2);
AddColumn(NextTgt, "Target", 6.2);
AddColumn(SL, "StopLoss", 6.2);
AddColumn(C, "CMP", 6.2, colorDefault, colorDefault, 96);
AddColumn(IIf(TgtReached, 89, 32), "Tgt Hit?", formatChar, colorYellow, IIf(TgtReached, colorGreen, colorDefault));
AddColumn(IIf(SLHit, 89, 32), "SL-Hit", formatChar, colorYellow, IIf(SLHit, colorRed, colorDefault));
}
//Calculation
Rewardpc = IIf(Buy OR Bought, ((NextTgt-C) * 100) / C, Null);
Riskpc = IIf(Buy OR Bought, ((SL-C)*100) / C, Null);
RewardRiskRatio = IIf(Buy OR Bought, Rewardpc/abs(Riskpc), Null);

//Exploration Table additional columns
AddColumn(IIf(Buy OR Bought, Rewardpc, Null),"Reward%", 5.2) ;
AddColumn(IIf(Buy OR Bought, -Riskpc, Null), "Risk%", 5.2);
AddColumn(IIf(Buy OR Bought, RewardRiskRatio, Null), "Reward/Risk", 5.2);



Regards
ken
Ken,

I am getting lot of errors on this afl. See Image
 
Last edited:
Status
Not open for further replies.

Similar threads