Re: Stocks To Keep A Close Eye On - Chapter II
Hi Suresh,
Thanks for your inputs.
1) Regarding Stop Loss, the system is based on EOD and Closing price is considered for Target and SL. Therefore SLHit uses Close instead of Low. As you say, it may result in more loss but there are cases where Low goes below SL but Close remains above and later the price moves up. In this case, exiting on Low going below SL may be premature. If Close is below SL the chances of recovery is much less and therefore, exit. As the strategy is for a period extending over a week or some times months, the small extra margin we give for SL would not be much compared to the advantage of remaining in the trade for a longer time and getting better returns.
2) Risk / Rewards can be added as you have coded.
3) In a system based on moving averages, these whipsaws are inevitable. We can minimise them by inspecting the charts after getting the signals. Visually we can see whether the trade would be acceptable. One of the situations where we can decide based on charts is already given in one of my posts with the relevant charts. I will be posting some more such examples where charts can help in taking a better decision. Presently there is no code which will help. But after some experience with charts we may be able to formulate some rules and include them in the AFL.
Regards
-Anant
Hello Anant
I was looking at your AFL.
Splendid job.
However, I noticed a line of code as follows:
SLHit = IIf(Bought AND NOT Buy AND C < SL, True, False);
Gathering that, SLHit is abbreviation for "Stop Loss Hit" the line should have been as follows:
SLHit = IIf(Bought AND NOT Buy AND L < SL, True, False);
Stop Loss Hit becomes true as soon as the price crosses the SL, one should not wait for the candle to complete because Stop Loss is supposed to limit the loss on the trade. If we allow the candle to get completed then there is a potential of losing more than limited with the Stop Loss.
Suggestion number 1:
In the exploration I was looking at the columns and found that other three columns would make it more informative. They are, Reward(%), Risk(%) and Reward to Risk ratio, the lines of code may be as follows:
//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);
Suggestion number 2:
There are lots of false signals being generated, as such I believe you must add some more qualifying criteria before the trade is executed.
These are my thoughts, and welcome the opinion of the fellow members and particularly seniors.
Regards
Suresh
I was looking at your AFL.
Splendid job.
However, I noticed a line of code as follows:
SLHit = IIf(Bought AND NOT Buy AND C < SL, True, False);
Gathering that, SLHit is abbreviation for "Stop Loss Hit" the line should have been as follows:
SLHit = IIf(Bought AND NOT Buy AND L < SL, True, False);
Stop Loss Hit becomes true as soon as the price crosses the SL, one should not wait for the candle to complete because Stop Loss is supposed to limit the loss on the trade. If we allow the candle to get completed then there is a potential of losing more than limited with the Stop Loss.
Suggestion number 1:
In the exploration I was looking at the columns and found that other three columns would make it more informative. They are, Reward(%), Risk(%) and Reward to Risk ratio, the lines of code may be as follows:
//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);
Suggestion number 2:
There are lots of false signals being generated, as such I believe you must add some more qualifying criteria before the trade is executed.
These are my thoughts, and welcome the opinion of the fellow members and particularly seniors.
Regards
Suresh
Thanks for your inputs.
1) Regarding Stop Loss, the system is based on EOD and Closing price is considered for Target and SL. Therefore SLHit uses Close instead of Low. As you say, it may result in more loss but there are cases where Low goes below SL but Close remains above and later the price moves up. In this case, exiting on Low going below SL may be premature. If Close is below SL the chances of recovery is much less and therefore, exit. As the strategy is for a period extending over a week or some times months, the small extra margin we give for SL would not be much compared to the advantage of remaining in the trade for a longer time and getting better returns.
2) Risk / Rewards can be added as you have coded.
3) In a system based on moving averages, these whipsaws are inevitable. We can minimise them by inspecting the charts after getting the signals. Visually we can see whether the trade would be acceptable. One of the situations where we can decide based on charts is already given in one of my posts with the relevant charts. I will be posting some more such examples where charts can help in taking a better decision. Presently there is no code which will help. But after some experience with charts we may be able to formulate some rules and include them in the AFL.
Regards
-Anant