Disliked{quote} input int FastHalfLength = 50; input int SlowHalfLength = 100; input int Price = PRICE_CLOSE; int SgTMA = 0; ------------------------- ... ... SgTMA = 0; double SgTMAUp = iCustom(Symbol(), 0, "TMAcentered MACD v1.2", FastHalfLength, SlowHalfLength, TMAPrice, 0, 1); double SgTMADn = iCustom(Symbol(), 0, "TMAcentered MACD v1.2", FastHalfLength, SlowHalfLength, TMAPrice, 1, 1); if (SgTMAUp != EMPTY_VALUE) SgTMA = 1; // Buy if (SgTMADn != EMPTY_VALUE) SgTMA =-1; // Sell {image} {file}Ignored
I really appreciate your help! Thanks a lot.