مرحبا يا رفاق،
لدي هذا التنبيه خط الاتجاه (وجدت هنا ، تشك!)
كيف يمكنني أن أعلن أنني أتلقى إنذارًا عندما يخترق السعر 10 نقاط على الأقل من خلال خط الموضة ويتراجع إلى 3 نقاط من خط الاتجاه؟
بداية Int ()
int counted_bars = IndiorCounted ()؛
ObjectCreate (TLineName، OBJ_TREND، 0، Time [25]، Bid، Time [0]، Ask)؛
ObjectSet (TLineName ، OBJPROP_STYLE ، LineStyle)؛
ObjectSet (TLineName، OBJPROP_COLOR، LineColor)؛
ObjectSet (TLineName، OBJPROP_WIDTH، LineWidth)؛
double val = ObjectGetValueByShift (TLineName، 0)؛
إذا ((MailSent lt؛ = Bars) Bid-AlertPipRange * المرحلة lt؛ = val Bid AlertPipRange * Stage gt؛ = val)
SendMail (الرمز () ،) ؛ </i>
<i> MailSent = Bars 3 ؛ </i>
<أنا>
إذا ((SoundPlayed lt؛ = Bars) Bid-AlertPipRange * المرحلة lt؛ = val Bid AlertPipRange * المرحلة gt؛ = val)
PlaySound (AlertWav)؛ </I>
<i> SoundPlayed = Bars 3 ؛ </i>
<أنا>
عودة (0)؛
شكر!