Is there a way to get alerts to appear during LastBarOnChart during any tick?
I can only get then to appear during the main body of code at BarStatus=2.
I attached a picture of the "Format Study Alert Settings".
I included the code which is executed during LastBarOnChart.
I know the code is working because I hear the play sound and I see the FileAppend info.
I also used the command below to ensure all the charts have the alerts enabled.
I tried getting them to appear both during LastBarOnChart and CurrentBar=1 and neither does it.
Thanks
John
Code: Select all
If AlertEnabled = False then
raiseruntimeerror("Alerts turned off");
Code: Select all
if MouseClickDate = 0 or MouseClickTime = 0 then
begin
Fileappend(LogPath,
"Mouse Info Missing: " +
" CurrentDate=" +
NumToStr(CurrentDate,0) +
" CurrentTime=" +
NumToStr(CurrentTime,0) +
" MouseClickDate=" +
NumToStr(MouseClickDate,0) +
" MouseClickTime=" +
NumToStr(MouseClickTime,0) +
NewLine);
Playsound("C:\WINDOWS\Media\Chord.wav");
Alert("Error: Mouse Click data missing. See details in " + LogPath);
end;