The goal is to trigger an alert if price cross a given trendline. The indicator alert is set to Enable.
What should be expected when price cross a trendline that has an alert set to it?
Martin
The TL_alert is set when a trendline has been set with style = 2
Code: Select all
ActualStyle = TL_GetStyle(Active_TL);
If ActualStyle = 1 then begin
TL_SetStyle(Active_TL, 2);
TL_SetAlert(Active_Tl,1);
end
else
TL_SetStyle(Active_TL,1);
TL_SetAlert(Active_TL,0);
end;