int TP = 20;
int SL = 20;
double point = MarketInfo( Symbol(), MODE_POINT );
int stop_level = MarketInfo( Symbol(), MODE_STOPLEVEL );
int digits = MarketInfo( Symbol(), MODE_DIGITS );
int useTP = 0, useSL = 0;
if ( TP <= stop_level ) { useTP = stop_level + 1; }
else { useTP = TP; }
if ( SL <= stop_level ) { useSL = stop_level + 1; }
else { useSL = SL; }
double newTP = NormalizeDouble( Bid - useTP*point, digits );
double newSL = NormalizeDouble( Ask + useSL*point, digits );
double newTP = NormalizeDouble( Ask + useTP*point, digits );
double newSL = NormalizeDouble( Bid - useSL*point, digits );
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。