Amibroker afl for dhiraj 2652 method

vinodkiyer

Well-Known Member
#1
Dear all,

I have been going through the thread of Dhiraj 2652 method of trading and decided to make an AFL for amibroker, which will calculate and plot and give the entry/exit and stoploss figures for any stock at a giffy. I completed the beta version today and used it to short axisbank and Aban successfully. I want to use it as an explorer as well in amibroker so that it can filter out those stock which meet the criteria, but until now, for some reason which I cannot fathom, It does not filter out the entry / exit crossovers in scan and explore. But as an indicator and with commentary on chart and plots, it gives all the requisite information for trading Dhiraj system without any additional calculation or manual readings at various times, accurately. Also note that the chart will start plotting the entry/exit/stoploss and 1015 high and low only after 1015 am, until then only candles are displayed. if you use it as explorer then it gives u all the values required for all the symbols u specify.
But if I could make it to select only those stocks which at the time of the scan, are just crossing the entry points then would have been better.

As the original thread has been closed, I had no option other than to start this new thread on the subject.

Kindly all of the seniors and Programming gurus please try out the afl and advise as to how to modify to use as explorer to identify only those stocks which cross entry points at the time, while I am also at it. I am new to amibroker only 3 months and had to break my head to get this far.

attached pls find the afl.

I take this opportunity to thank Dhiraj for sharing his system with all of us and hope he will also see this thread and try out the afl and comment.

Regards to all
Vinod
 
Last edited:

bandlab2

Well-Known Member
#4
vino, excellent effort and its vey useful. i regularly trade as per 2652, but i have no clue on AFL.

i dont know what it takes to do, but if u can do these things it will be really really helpful

1. popup alerts when 1st trade is triggered

2. popup alerts when 2nd trade is triggered. sometimes 1st trade hits SL, then chances are better for next trade. but u need to keep checking if LO, HOD is changed so that you can recalculate the new entry points

3. popup for 3rd trades

4. popup alert when 2nd/3rd trade is triggered and the price is available at discount. there is a pullback, but SL not hit. the risk reward atio for such trades is very good

5. at EOD, give a list of succesful, failed trades





Dear all,

I have been going through the thread of Dhiraj 2652 method of trading and decided to make an AFL for amibroker, which will calculate and plot and give the entry/exit and stoploss figures for any stock at a giffy. I completed the beta version today and used it to short axisbank and Aban successfully. I want to use it as an explorer as well in amibroker so that it can filter out those stock which meet the criteria, but until now, for some reason which I cannot fathom, It does not filter out the entry / exit crossovers in scan and explore. But as an indicator and with commentary on chart and plots, it gives all the requisite information for trading Dhiraj system without any additional calculation or manual readings at various times, accurately. Also note that the chart will start plotting the entry/exit/stoploss and 1015 high and low only after 1015 am, until then only candles are displayed. if you use it as explorer then it gives u all the values required for all the symbols u specify.
But if I could make it to select only those stocks which at the time of the scan, are just crossing the entry points then would have been better.

As the original thread has been closed, I had no option other than to start this new thread on the subject.

Kindly all of the seniors and Programming gurus please try out the afl and advise as to how to modify to use as explorer to identify only those stocks which cross entry points at the time, while I am also at it. I am new to amibroker only 3 months and had to break my head to get this far.

attached pls find the afl.

I take this opportunity to thank Dhiraj for sharing his system with all of us and hope he will also see this thread and try out the afl and comment.

Regards to all
Vinod
 

bandlab2

Well-Known Member
#5
vinod,

also yr factor calculation is little bit old, we follow the below

//NOW FILTER TO FIND THE APPLICABLE FACTOR
A=IIf((FC4<=FC1),FC1,0);
B=IIf((FC4<=FC2 AND FC4>FC1),FC2,0);
C=IIf((FC4<=FC3 AND FC4>FC2),FC3,0);
AF=(A+B+C);

what we are following is... this is tweaked over a period

//NOW FILTER TO FIND THE APPLICABLE FACTOR
A=IIf((FC4<=FC1+PDH*0.005),FC1,0);
B=IIf((FC4<=FC2+PDH*0.005 AND FC4>FC1+PDH*0.005),FC2,0);
C=IIf((FC4<=FC3 AND FC4>FC2+PDH*0.005),FC3,0);
AF=(A+B+C);
 

vinodkiyer

Well-Known Member
#6
dear bandlab,

many thanks for your guidance and the tweaked factor finder which i have incorporated into the afl.

i have also figured out the problem with scanning and corrected the same. now the afl can be used to filter out those stocks which are ready for entry.

meantime in the earlier posting where i attached the formula, i had used the High and low of only the 1015 candle and not the day high and day low at 1015. I am bit confused whether to use the day high/low of 1015 am or to use the low/high of only the 1015 candle without considering previous times from open. i shall be much obliged if you could clarify on the issue so i can correct accordingly.

regarding point no.2 in your posting, i have now incorporated to take the day high and day low after 1015 am for recalculating entry/exit/sl points automatically.

meantime, now i will start working on the popups as u suggested.

meanwhile kindly clarify on the issue of 1015 high / low as above as soon as possible, once i receive your clarification, i will correct accordingly and repost the corrected formula.

many thanks from myself and on behalf of all members.
vinod
 

bandlab2

Well-Known Member
#7
vinod, thanks for quickly modiying the AFL
:
We take DAY hi, lo at 10:15. not the 10:15 candle hi, lo

if you can distinguish the 1st trade versus 2nd or 3rd that would be great
 

bandlab2

Well-Known Member
#8
one more thing is about SAR.... stop and reverse.

lets say w have buy order at 100. sl 99, target 100.5
sell order is at 99.6, sl is 100.6, target is 99

now the buy sl is less than sell trigger. so we ont wait for 99 to get out, instead we do SAR at 99.6

but these situations are very rare for stocks. but common for NIFTY
 

VJAY

Well-Known Member
#9
Dear bandlab,
Can you please post tweeked afl again here.Is any change happen on trading this system ?(am trading it as its first way)
 

Similar threads