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.

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.