Bob and Jem and Shelley's Pivot Basket auto-trader

Share your 10.x automated traders here.
Post Reply
User avatar
spyderman
Trader
Posts: 338
Joined: Sun Dec 11, 2011 1:39 pm

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by spyderman »

garyfritz wrote:Good points Sam, but I don't think that's going to help me. I have AllowAdditionsToBasket=true, so the MinimumPercentOfBasket is effectively 0. I have 8 pairs set up (so the SlopeBuyLevel is OK). My trouble is that all the pairs are sitting at "Daily pivot cross = untradable." They're all waiting for daily pivot crosses, and they have been almost since I started testing this last week. I got 2 trades on 6 July when I was first getting it set up (but with different inputs), but I haven't seen any trades since then.

Well Gary...If you can't get yours to trade, what hope do us EAdiots have :roll: Do you think it's a platform issue or a broker issue (which may be the same thing)
Snaggin' some pips
garyfritz

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by garyfritz »

I *think* it's doing what it's supposed to do. It's waiting for DP crosses. None have happened yet so it's waiting.
User avatar
youcrazykids
Trader
Posts: 44
Joined: Sat Nov 19, 2011 8:38 am
Location: Northumberland, UK

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by youcrazykids »

Hey Gary & Spyderman

I had the EA miss the cross of the DP this morning (about 6 pairs or so). I modded the EA to include the following at the beginning of the Start() routine:

Code: Select all

Print("Start Routine Running");
Normally, you should see this printed line display itself in the Experts log over and over again. Its absence indicated that Start() appeared not to be executing repeatedly. I tried disabling the "Endless Loop" feature, and my EA began to operate correctly. This is just what worked for me.
Last edited by youcrazykids on Tue Jul 10, 2012 7:32 pm, edited 1 time in total.
garyfritz

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by garyfritz »

That's what it's supposed to do. By default it enters start() and never leaves. There is an "endless loop" inside start(), and that loop continuously cycles through the logic. If you set EndlessLoop=false, then it works more normally -- it enters start(), runs through the logic, exits start(), and then Empty4 calls start() again on the next tick.
User avatar
spyderman
Trader
Posts: 338
Joined: Sun Dec 11, 2011 1:39 pm

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by spyderman »

But wouldn't the pairs that meet the criteria at least show up in the trading window as "setups"?
Snaggin' some pips
garyfritz

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by garyfritz »

Yes, they should. They do for me:
BJS.gif
I haven't dug deeply into the code, but my understanding of those messages is:

Slope = Buy/Sell -- the TMA slope meets the levels specified in SlopeBuyLevel / SlopeSellLevel.
Pivot Alignment = Buy/Sell -- the Slope says it's trending, and this says it's pulled back past the pivot.
Daily pivot cross = whatever -- this is the final trigger, waiting to cross back over the daily pivot. "Untradable" means "it hasn't crossed over the pivot yet."
You do not have the required permissions to view the files attached to this post.
User avatar
spyderman
Trader
Posts: 338
Joined: Sun Dec 11, 2011 1:39 pm

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by spyderman »

garyfritz wrote:Yes, they should. They do for me:
BJS.gif
I haven't dug deeply into the code, but my understanding of those messages is:

Slope = Buy/Sell -- the TMA slope meets the levels specified in SlopeBuyLevel / SlopeSellLevel.
Pivot Alignment = Buy/Sell -- the Slope says it's trending, and this says it's pulled back past the pivot.
Daily pivot cross = whatever -- this is the final trigger, waiting to cross back over the daily pivot. "Untradable" means "it hasn't crossed over the pivot yet."
So Here's mine on two different crims.
Upfx is showing (I have slope dialed down to .20/-.20 just to show up)
ILQ is not showing anything (same settings)

So that makes me wonder if the EA is somehow not reading the indicators on this crim, even though they're built into the EA.
You do not have the required permissions to view the files attached to this post.
Snaggin' some pips
garyfritz

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by garyfritz »

Do you have full history, in both MT4s, for ALL symbols, on D1, H4, and maybe H1? That's the most common reason for differences between crims.
User avatar
spyderman
Trader
Posts: 338
Joined: Sun Dec 11, 2011 1:39 pm

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by spyderman »

I ran Neotrader's (think it was his) ForceLoaddatathistory script on both crims so should be okay.
Snaggin' some pips
garyfritz

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by garyfritz »

Don't count on it. When I ran it, I only got 12 (!!) bars of H4 history on all pairs. I don't know why but it didn't load much H4 history at all. Either look in your History Center, or open up charts for all pairs/tfs, and verify it.

I haven't tried it, but somebody recently posted a LoadHistory.mq4 script that looks promising. If I'm reading the code right, it cycles through all pairs/tfs and "presses HOME" programmatically. I can't find where it was posted but here's a copy. Let us know if it works. :D
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “10.x EA forum”