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

Secret Bob's Basket
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3896
Page 4 of 40
Author:  WorldsEnd [ Mon Oct 27, 2014 11:06 am ]
Post subject:  Secret Bob's Basket

SteveHopwood » 27 Oct 2014, 12:55 wrote:
WorldsEnd » Mon Oct 27, 2014 10:16 am wrote:Steve,

would you be so kind to let me know when SBB updates it's ATR calculation for the different pairs? Is it updated just once when the EA is loaded or once a day or constantly like every couple of minutes/hours?

Thanks,
Sebastian
Open of a new candle.

:xm:
Thank you :good:
Author:  SteveHopwood [ Mon Oct 27, 2014 11:20 am ]
Post subject:  Secret Bob's Basket

V 1b is in post 1. I think the spread problem is sorted out. I had forgotten to resize one of the arrays.

Coders, add
ArrayResize(PairSpreadTotal, NoOfPairs);
to the list of resized arrays in void ExtractPairs().

Then copy this over the top of void UpdateSpread(int cc)

Code: Select all

void UpdateSpread(int cc)
{
   //Keep a rolling tally of the average spread for each pair
   if (CloseEnough(PairOldBid[cc], bid))
      return;//No new quote, so nothing to do

   PairOldBid[cc] = bid;
   PairSpreadTotal[cc] = PairSpreadTotal[cc] + spread;
   PairCountedTicks[cc]++;
   if (PairCountedTicks[cc] >= 200)
   {
      PairAverageSpread[cc] = NormalizeDouble(PairSpreadTotal[cc] / PairCountedTicks[cc], 1);
      PairCountedTicks[cc] = 0;
      
      //Save the average for restarts.
      SpreadGvName=TradePair[cc] + " average spread";
      GlobalVariableSet(SpreadGvName, PairAverageSpread[cc]);
      PairSpreadTotal[cc] = 0;
   }//if (PairCountedTicks[cc] >= 200)
   
   

}//End void UpdateSpread(int cc)
:xm:
Author:  Gertje [ Mon Oct 27, 2014 11:39 am ]
Post subject:  Secret Bob's Basket

Anybody got some results already?

I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.

After sorting this, I got 5 more trades till now, which are floating positive.
I decided to only trade with the trend on the H4, and leave trades open untill the basket-TP of $20,- [2%] is reached.
Author:  SteveHopwood [ Mon Oct 27, 2014 12:13 pm ]
Post subject:  Secret Bob's Basket

Gertje » Mon Oct 27, 2014 11:39 am wrote:
I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.
That highlights another bloop in the code. I will upload the fix when a few more have emerged. In the meantime, make sure you send a tp with the trade - if you don't want one then send a far-distant one that can never be hit.

Add a temporary fix yourselves by going to line 1100 and inserting this:
if (CloseEnough(take, 0)) return;
Author:  SteveHopwood [ Mon Oct 27, 2014 12:15 pm ]
Post subject:  Secret Bob's Basket

The permanent fix is: go to line 1166 and copy this over the top of the three line snippet you find there:

Code: Select all

//Insert a missing take profit
      if (CloseEnough(OrderTakeProfit(), 0) )  
         if (TakeProfitPips > 0)
            InsertTakeProfit(cc, OrderTicket(), OrderType());
:xm:
Author:  woodlands [ Mon Oct 27, 2014 12:40 pm ]
Post subject:  Secret Bob's Basket

Gertje » Mon Oct 27, 2014 11:39 am wrote:Anybody got some results already?

I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.

After sorting this, I got 5 more trades till now, which are floating positive.
I decided to only trade with the trend on the H4, and leave trades open untill the basket-TP of $20,- [2%] is reached.
Dear Gertje,
I am up 1.2% since opening at Sydney, so far only closing at $3 per pair target nothing closed on CT yet.
I am using 4hr TF and 23 pairs. Each time closing I am reloading the bot with same settings and then taking trades. I notice that each time there are 10 identical pairs that meet the ATR requirement to trade. I have no average showing yet (edit: have now thanks Steve). I have switched off the 'trade only twice' and the Zelko.
Very smooth function and successfully following the trend signals......This is on Demo, can't get it to run yet on micro live but this for sure is a broker crappy Empty4 issue.
Big thanks, yet again, to Steve and Bob and everyone else who is involved in the development.
Author:  SteveHopwood [ Mon Oct 27, 2014 2:51 pm ]
Post subject:  Secret Bob's Basket

V 1c is in post 1. Fixed a few bugs and introduced a new feature. Copied from the inputs section of the updated post 1:
  • ShowIndividualCharts: SBB can open individual charts with your own template loaded, so you can check that he is behaving as expected. Our thanks to Arts and his Charts Into Alphabetical Order script that got me started.
    • load a chart - time frame does not matter as SBB will make the necessary adjustment.
    • load the SecretBob indicator so you see the arrows, and anything else you want - 240 moving average etc.
    • save the chart template.
    • input the template's name into the TemplateName input. I have attached SBB to get you started.
    • SBB updates the charts once an hour.
I am just showing off now. :smile:

:xm:
Author:  Radar [ Mon Oct 27, 2014 2:57 pm ]
Post subject:  Secret Bob's Basket

SteveHopwood » Tue Oct 28, 2014 12:21 am wrote:V 1c is in post 1. Fixed a few bugs and introduced a new feature. Copied from the inputs section of the updated post 1:

I am just showing off now. :smile:

:xm:

LOL! I almost choked on my 'burger! :lol:
Author:  everell [ Mon Oct 27, 2014 4:31 pm ]
Post subject:  Secret Bob's Basket

I can not understand why opened a new position: I do not see any arrow on the chart
Author:  erikskenne [ Mon Oct 27, 2014 5:12 pm ]
Post subject:  Secret Bob's Basket

Working fine here at my end, did you change template and make yout own with bobs indi? :)
All times are UTC Page 4 of 40