Originally Posted By: jcl
Well, according to the algorithm the +DI & -DI crossing is just the zero crossing of the DX, so you should be able to use those strategies. That's probably the reason why the TA-Lib author did not care to store +DI & -DI separately.


Quote:

775 /* Generated */ if( !TA_IS_ZERO(prevTR) )
776 /* Generated */ {
777 /* Generated */ minusDI = round_pos(100.0*(prevMinusDM/prevTR));
778 /* Generated */ plusDI = round_pos(100.0*(prevPlusDM/prevTR));
779 /* Generated */ tempReal = minusDI+plusDI;
780 /* Generated */ if( !TA_IS_ZERO(tempReal) )
781 /* Generated */ {
782 /* Generated */ tempReal = round_pos(100.0*(std_fabs(minusDI-plusDI)/tempReal));


jcl Ive tried to work out how to use the +DI and -DI values but I just cant seem to work it out, its a vital aspect to one of my strategies that I check that the +DI and -DI have crossed before a trade can be taken. Any further help would be appreciated or anyone for that matter. tongue