HELP WITH ERROR 4107

Post Reply
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: HELP WITH ERROR 4107

Post by fxdaytrader »

Ok, you can change that (I can add that in the next update, e.g. let user choose what to use):

search for the line:

Code: Select all

price = NormalizePrice(Symbol(),iHigh(Symbol(),PendingOrderHighLowTF,0) + (BufferPips / factor)); 
and line:

Code: Select all

price = NormalizePrice(Symbol(),iLow(Symbol(),PendingOrderHighLowTF,0) - (BufferPips / factor));
and replace the 0 after PendingOrderHighLowTF with 1

Further this will need some more additional errorchecking (was the previous candle higher/lower than the current candle, and if so, use the current candle?, etc. pp.).... :idea:
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:Ok, you can change that (I can add that in the next update, e.g. let user choose what to use):

search for the line:

Code: Select all

price = NormalizePrice(Symbol(),iHigh(Symbol(),PendingOrderHighLowTF,0) + (BufferPips / factor)); 
and line:

Code: Select all

price = NormalizePrice(Symbol(),iLow(Symbol(),PendingOrderHighLowTF,0) - (BufferPips / factor));
and replace the 0 after PendingOrderHighLowTF with 1

Further this will need some more additional errorchecking (was the previous candle higher/lower than the current candle, and if so, use the current candle?, etc. pp.).... :idea:
I have been using shift = 1 all along because that's how I trade manually.

That is why I use bars to keep pending = 1 because often I get a better entry if the next bar is lower for a buy/higher for a sell.

However, for manual trading I ofter still trade even after the stochastic > 20 for a buy and < 80 for a sell for the next three bars when the stoch entry rule no longer applies. The rule for Rsi is catered for because BASA uses Rsi < 10/> 90 up to three bars back. Would it be possible to do the same for stochs ?



Also, I use stoch shift 1 instead of default 2.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

I noticed you have changed the swap settings.

I do not wish to use the swap filter. Should I set OnlyTradeSwapHigherThanAmount to FALSE ?

Code: Select all

extern string   sep10="----------------------------------------------------------------";
extern string   pts="----Swap filter----";
extern bool     CadPairsPositiveOnly=false; //false; //fxdaytrader
extern bool     AudPairsPositiveOnly=false; //false; //fxdaytrader
extern bool     NzdPairsPositiveOnly=false; //false; //fxdaytrader
extern bool     OnlyTradePositiveSwap=false;
bool OnlyTradeSwapHigherThanAmount = false; //fxdaytrader, overrides previous swap-settings!
double  SwapMustBeHigherThan = -3.50; //fxdaytrader 
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: HELP WITH ERROR 4107

Post by fxdaytrader »

yes, just set OnlyTradeSwapHigherThanAmount=false 8-)

If it is =true it will override the other swap-related settings, just have a look to the end of tradedirectionbyswap()-function:

Code: Select all

   //OnlyTradeSwapUntilMaxAmount filter, added by fxdaytrader
   if (OnlyTradeSwapHigherThanAmount)
   {
      if (LongSwap > SwapMustBeHigherThan) TradeLong = true;
       else TradeLong = false;
      if (ShortSwap > SwapMustBeHigherThan) TradeShort = true;
       else TradeShort = false;
   }//if (OnlyTradeSwapHigherThanAmount)
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:yes, just set OnlyTradeSwapHigherThanAmount=false 8-)

If it is =true it will override the other swap-related settings, just have a look to the end of tradedirectionbyswap()-function:

Code: Select all

   //OnlyTradeSwapUntilMaxAmount filter, added by fxdaytrader
   if (OnlyTradeSwapHigherThanAmount)
   {
      if (LongSwap > SwapMustBeHigherThan) TradeLong = true;
       else TradeLong = false;
      if (ShortSwap > SwapMustBeHigherThan) TradeShort = true;
       else TradeShort = false;
   }//if (OnlyTradeSwapHigherThanAmount)

Thanks.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Bank holiday in the UK today, thin volume, not trades taken by ea so far.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fx8000 wrote:Bank holiday in the UK today, thin volume, not trades taken by ea so far.

No trades today. Not a bad thing because the market was going nowhere.
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: HELP WITH ERROR 4107

Post by fxdaytrader »

please redownload (newest change in trading logics of original basa ea implemented, see basa thread for details)
You do not have the required permissions to view the files attached to this post.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:please redownload (newest change in trading logics of original basa ea implemented, see basa thread for details)
Thanks.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Very pleased with the performance so far, both demo in profit.

10k account, trading 2% of equity.

Very few trade entries, but we are looking for quality not quantity.

Will post the results again at the weekend.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Coders Hangout”