1 Załączniki To powinno zrobić ... Wstawiony kod/ --------------------------------- --------------------------------- /| Phong.mq4 |/ ----------------------------------------------- ------------------- #property copyright Mn #property strict #property indior_chart_window extern double mLevel = 1.3200;/Poziom wyjściowy extern int mLineWidth = 2;/Szerokość linii kolor zewnętrzny mCol1 = clrBlue;/Kolor linii extern bool mDel = false;/Usuń linię przy wyjściu/ ----------------------------------------- ------------------------- int init () {jeśli (ObjectFind (LevelLine) == -1) DrawLines (mLevel); return (0); }/ ---------------------------------------------- -------------------- void OnDeinit (const int mReason) {if (mReason! = REASON_CHARTCHANGE) ObjectDelete (LevelLine); Komentarz( ); powrót; }/ ---------------------------------------------- -------------------- int start () {double mNew = ObjectGet (LevelLine, OBJPROP_PRICE1); jeśli (mNew! = mLevel) Comment (New level =, DoubleToStr (mNew, Cyfry)); return (0); }/ ---------------------------------------------- -------------------- void DrawLines (double mLvl) {ObjectCreate (LevelLine, OBJ_HLINE, 0, 0, 0, 0, 0); ObjectSet (LevelLine, OBJPROP_STYLE, STYLE_SOLID); ObjectSet (LevelLine, OBJPROP_COLOR, mCol1); ObjectSet (LevelLine, OBJPROP_WIDTH, mLineWidth); ObjectSet (LevelLine, OBJPROP_BACK, true); ObjectSet (LevelLine, OBJPROP_SELECTED, true); ObjectSet (LevelLine, OBJPROP_PRICE1, mLvl); powrót; }/ ---------------------------------------------- --------------------------------------------- Dobrze zrobione za próbowanie zrobić swój własny kod, utrzymuj go. M.
https://www.forex-instant.com/attach...5528713591.mq4