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);