Dear Mario Mr. Apprentice:
Heartfelt gratitude and many thanks in advance for your precious time.
It would be extremely useful to modify the famous CandleBreak_Signal strategy.
function ExtUpdate(id, source, period) -- The method called every time when a new bid or ask price appears.
if id==3 then
LastH=source.high[period];
LastL=source.low[period];
end
if id==2 then
if LastH~=nil then
if source[period]>LastH then
ExtSignal(source, period, "High break", SoundFile, Email, RecurrentSound);
LastH=nil;
end
end
if LastL~=nil then
if source[period]<LastL then
ExtSignal(source, period, "Low break", SoundFile, Email, RecurrentSound);
LastL=nil;
end
end
end
end
I want to signal the break of the DAILY BAR.
In its current form ..... I have to wait till a new daily candle starts (event from id==3).
There must be a way to modify this example to start signalling immediately as soon as I launch the strategy. (or few minutes later ,,,, not to wait a whole day)
As always, Cordial Best Regards,
Khairy.