DislikedHello coders, What's wrong with this indicator? Why are the SL and TP values changing? Where's the error? {image} {file} {file}Ignored
double tick_val=MarketInfo(OrderSymbol(),MODE_TICKVALUE);//GetTickValue
double tp_dist=(OrderOpenPrice()-OrderTakeProfit())/MarketInfo(OrderSymbol(),MODE_POINT);//CalcDistance
double tp_val=(tp_dist*tick_val)*OrderLots();//CalcValue
pTP+=tp_val;