ex.
//------------------------ // Rule: Long entry - Orders Exits //------------------------ if(MarketPosition > 0) then begin // StopLoss SL = Round2Fraction(CurrentAsk - (3.0 * SQ_ATR(20)[1])); // Why using CurrentAsk here? Not Close, or High? SL = SQ_CorrectMinMaxSLPT(SL, MinimumSLPT, MaximumSLPT, true); Sell("LongSL") next bar at SL stop; // ProfitTarget PT = Round2Fraction(CurrentAsk - (5.4 * SQ_ATR(20)[1])); // As long position, It's "price + 5.4*ATR" here, I think. PT = SQ_CorrectMinMaxSLPT(PT, MinimumSLPT, MaximumSLPT, false); Sell("LongPT") next bar at PT limit; // Trailing Stop PriceLevel = 2.6 * SQ_ATR(140)[1]; // Like PT setting, is it entryprice + 2.6*atr here? some bug in move 2 Be If PriceLevel > 0 then begin If CurrentBid - EntryPrice >= 0 and (SL = 0 or SL < PriceLevel) then begin SL = PriceLevel; Sell("LongTrailingStop") next bar at SL stop; end; end; end;
2. And some trades in list does not match the trade on charts. There is a "Close type" field in List of trades. But I only find there are Manual, SL, PT. I have located some trades ion Chart, it's doesn't match.
It's better to identify trades type clearly for stop loss, profit target, profit trailing, move2be...
3,I test some other trading system builder. They use different codes for TS and MC. So can we use real multicharts back test engine? I strongly request and advise you to do so.
Status changed from In progress to Fixed