stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

HELP WITH ERROR 4107
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2914
Page 11 of 18
Author:  fxdaytrader [ Sun Aug 25, 2013 6:12 am ]
Post subject:  Re: HELP WITH ERROR 4107

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:
Author:  fx800 [ Sun Aug 25, 2013 7:55 am ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fx800 [ Sun Aug 25, 2013 7:13 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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 
Author:  fxdaytrader [ Sun Aug 25, 2013 7:40 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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)
Author:  fx800 [ Sun Aug 25, 2013 8:33 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fx800 [ Mon Aug 26, 2013 11:18 am ]
Post subject:  Re: HELP WITH ERROR 4107

Bank holiday in the UK today, thin volume, not trades taken by ea so far.
Author:  fx800 [ Mon Aug 26, 2013 5:04 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fxdaytrader [ Tue Aug 27, 2013 1:18 pm ]
Post subject:  Re: HELP WITH ERROR 4107

please redownload (newest change in trading logics of original basa ea implemented, see basa thread for details)
Author:  fx800 [ Tue Aug 27, 2013 1:37 pm ]
Post subject:  Re: HELP WITH ERROR 4107

fxdaytrader wrote:please redownload (newest change in trading logics of original basa ea implemented, see basa thread for details)
Thanks.
Author:  fx800 [ Tue Aug 27, 2013 3:21 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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.
All times are UTC Page 11 of 18