View Single Post
  #14 (permalink)  
Old 10-05-2008, 02:04 PM
void void is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
void is on a distinguished road
Quote:
Originally Posted by robp View Post
I'm missing something. I don't see any difference in the original code to this mod fxbs is suggesting.

If someone mods the adx cross indi, please post it. Thank you.
i think this will work, the signal of this new indicator comes one bar later than the old one
Code:
        b4plusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i + 1);
        nowplusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_PLUSDI, i);
        b4minusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i + 1);
        nowminusdi = iADX(NULL, 0, ADXcrossesPeriod, PRICE_CLOSE, MODE_MINUSDI, i);  
        //----
        if(b4plusdi < b4minusdi && nowplusdi > nowminusdi)
            ExtMapBuffer1[i] = Low[i] - nShift*Point;
        //----
        if(b4plusdi > b4minusdi && nowplusdi < nowminusdi)
            ExtMapBuffer2[i] = High[i] + nShift*Point;
Attached Files
File Type: mq4 ADXcrosses.mq4 (3.4 KB, 272 views)
Reply With Quote