View Single Post
  #2 (permalink)  
Old 06-19-2005, 06:45 AM
scorpion's Avatar
scorpion scorpion is online now
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

In beta 1, there is no automatic way to do this; however, you'll need to get your hands dirty a bit for the same funcationality.

1. Leave the crossover logics intact without caring about the "5 pips thing". (Just add the crossover logics)

2. Open or Modify the expert in MetaEditor.

3. Find:
Code:
// Check for BUY, SELL, and CLOSE signal IsBuying = .... ; IsSelling = .... ; IsClosing = ... ;
4. Add following lines BEFORE above code block
Code:
// Note the bid price at crossover point defines: FilterPips(0.0005); var: CrossBid(0),IsBuyingBak(False),IsSellingBak(False);
5. Add following lines BELOW
Code:
// Check price filter if (IsBuying and not IsBuyingBak) or (IsSelling and Not IsSellingBak ) then { CrossBid = pricebid ; } IsBuyingBak = IsBuying; IsSellingBak = IsSelling; IsBuying = IsBuying and (PriceBid >= CrossBid + FilterPips); IsSelling = IsSelling and (PriceBid <= CrossBid - FilterPips);
6. Finally you'll have similar to below:
Code:
// Note the bid price at crossover point defines: FilterPips(0.0005); var: CrossBid(0),IsBuyingBak(False),IsSellingBak(False); // Check for BUY, SELL, and CLOSE signal IsBuying = ....... ; IsSelling = ....... ; IsClosing = ...... ; // Check price filter if (IsBuying and not IsBuyingBak) or (IsSelling and Not IsSellingBak ) then { CrossBid = pricebid ; } IsBuyingBak = IsBuying; IsSellingBak = IsSelling; IsBuying = IsBuying and (PriceBid >= CrossBid + FilterPips); IsSelling = IsSelling and (PriceBid <= CrossBid - FilterPips);
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now