Holy Graily Bob's Candle Power

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
User avatar
WorldsEnd
Trader
Posts: 97
Joined: Fri Aug 29, 2014 7:36 pm

Holy Graily Bob's Candle Power

Post by WorldsEnd »

tomele » 12 Oct 2017, 23:18 wrote: One question though: How do you send a manual trade if you dont have the chart open? You are confusing me.
Empty4 - Market Watch - Rightclick a Symbol - New Order

Nevermind. I got that point within the manual obviously wrong. Thanks for the update though!
User avatar
nanningbob
Trader
Posts: 4564
Joined: Sun Dec 04, 2011 1:23 pm

Holy Graily Bob's Candle Power

Post by nanningbob »

:yahoo:
I trade http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3964,
I talk about my philosophy of trading here.
http://www.stevehopwoodforex.com/phpBB3 ... =38&t=3627
"The key to converting something useful to others is simplicity. Complexity is the enemy to execution." Tony Robbins
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Some bloops in my code emerged as Thomas coded his dashboard. I shall post updates to the CP trader and both dashboards in time for the markets opening after the weekend, but am hanging on for now in case anything else emerges.

For you Classy people: HolyGrailyBob's Candle power has the wrong mode in void GetPeakyTradeDirection(string symbol, int tf, int bars). We need the highest and lowest close prices to cut out spikes that create irrelevant hilo's. The amended code looks like this - I have left the original as a comment so you can see the difference.

Code: Select all

void GetPeakyTradeDirection(string symbol, int tf, int bars)
{
   //Set PeakyStatus to the direction implied by the chart peak hilo
   
   int Highest = iHighest(symbol, tf, MODE_CLOSE, bars);
   int Lowest = iLowest(symbol, tf, MODE_CLOSE, bars);
   //int Highest = iHighest(symbol, tf, MODE_HIGH, bars);
   //int Lowest = iLowest(symbol, tf, MODE_LOW, bars);
   
   PeakyStatus = longdirection;//Default
   if (Highest < Lowest)
      PeakyStatus = shortdirection;

}//End void GetPeakyTradeDirection(string symbol, int tf, int bars)
Both dashboards have a humungous bloop in the moving average code. This line:
val = GetMa(Symbol(), MaTimeFrame, MaPeriod, MaShift, MaMethod, MaAppliedPrice, 0);

needs replacing with this:
val = GetMa(symbol, MaTimeFrame, MaPeriod, MaShift, MaMethod, MaAppliedPrice, 0);

You will find the offending code easily with a search for this: "val = GetMa(Symbol()"

Thomas has made some cosmetic changes to the display but I do not know where or how. You can always download the update tomorrow and copy the new void DisplayMatrix() function over the top of the existing one.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob's Candle Power

Post by Gertje »

Steve,

Are these changes also necessary in PoS?

Tnx,
Gertjan
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Gertje » Sat Oct 14, 2017 1:24 pm wrote:Steve,

Are these changes also necessary in PoS?

Tnx,
Gertjan
No.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Here is a block of code that I have added to both dashboards. It is the first block of code in OnTimer():

Code: Select all

   if (!IsTradeAllowed() )
   {
      Comment("                          THIS EXPERT HAS LIVE TRADING DISABLED");
      return;
   }//if (!IsTradeAllowed() )
   
This forces an EA using a timer to stop its actions when users disable Expert Advisors on the platform.

PoS already has this.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

An addition to my previous post courtesy of Thomas. :clap: :clap: :clap: Here is his pm explaining it:
In my dashboard I have commented out all Comment() statements (no pun intended). That was to avoid flickering, one of my "cosmetic changes".

So after your new block, there must be code inserted to delete the actual comment if its not empty:

if(ChartGetString(ChartID(),CHART_COMMENT)!="")
Comment("");

Other cosmetic changes: Removed and reordered some inputs in the display section. Minir graphical adjustments in the matrix. Resetting the "chart delete counter" on opening new charts, so every new chart stays open at least for 15 minutes or whatever.
The code block now is:

Code: Select all

   if (!IsTradeAllowed() )
   {
      Comment("                          THIS EXPERT HAS LIVE TRADING DISABLED");
      return;
   }//if (!IsTradeAllowed() )
   
   //Remove the comment now it is no longer needed
   if(ChartGetString(ChartID(),CHART_COMMENT) != "")
      Comment("");
You can see from Thomas' comment though that other changes may be hard to track down. It might be easier just to download the update I shall post tomorrow.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
marx64
Trader
Posts: 38
Joined: Fri Feb 13, 2015 4:04 am

Holy Graily Bob's Candle Power

Post by marx64 »

Using the original version of dashboard I had a situation where bunch of same pair charts (and trades) opened at the same moment. Just for information.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Update versions of CP and the two dashboards are in post 1. They have the improvements/fixes I described in recent posts.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
DigitalCrypto
Trader
Posts: 237
Joined: Tue Feb 24, 2015 4:38 am

Holy Graily Bob's Candle Power

Post by DigitalCrypto »

Steve. Thank you for including Bobs 240 code. I use the 7EMA on the Daily to avoid getting destroyed on stacking accounts so it's a simple adjustment for my test.
Post Reply

Return to “Thingy Bob EA's”