I use the following code fragment.
Is there anything wrong with it?If AvgTrueRange(atrlen) > atgr * 0.1 Then HighVotality = true else HighVotality = false;
SetStopPosition;
If HighVotality Then
setdollartrailing( TrlStp * BigPointValue)
else begin
SetProfitTarget(TargPts * BigPointValue );
SetStopLoss(SLPTs * BigPointValue);
end;
Testing on the charts results that orders are shown without previously entering a trade.
Although MP=0 the SetProfitTarget and SetStopLoss orders were executed. Shouldn't they depend on MP?
I would like to get rid of them in the chart. How ?
With the Portfolio Backtester and a lot of trace outputs into a file I cannot see these orders.
regards
Ulrich