Steve, great work once again you have taken a good idea and made it reality.
I've been have a quick look through the code and i have one comment, not wishing to feel the full wrath, but it is more of an observation really.
From reading the article and code by Carsten TickDiff is the difference between the first and the last values in the tick array. So you check if the difference is greater than the threshold set, all good.
Then to decide the movement you check the last stored tick value with the value prior to it, is this correct? Or should it be that the comparison should be between first and last values to determine direction?
Just a thought to ponder, i have the EA on EU, UJ and GJ ready for tomorrow with rest ootb.
Mike
I've been have a quick look through the code and i have one comment, not wishing to feel the full wrath, but it is more of an observation really.
PHP Code
// table is full, now we can check for the big moves
if (TickDiff > Threshold)
{
TakingEmergencyAction = true;//Used in SendSingleTrade to create a mahoosive slippage allowance
//Calculate the direction of the move
direction = down;
if (TickTable[tc] > TickTable[tc + 1] ) direction = up;
// The price difference between the latest and the first entry in
// our table is above the threshold, so take action.
Then to decide the movement you check the last stored tick value with the value prior to it, is this correct? Or should it be that the comparison should be between first and last values to determine direction?
Just a thought to ponder, i have the EA on EU, UJ and GJ ready for tomorrow with rest ootb.
Mike