I'm experiencing 2 issues. firstly it will only execute the first entry see below.
protected override void OnBarUpdate()
{
// Condition set 1
if (EMA(55)[0] < EMA(55)[1]
&& Position.Quantity == 0)
{
EnterShort(1, "One");
EnterShort(1, "Two");
}
and i cant seem to work out how to get it to autotrail after it hits a set price.
SetProfitTarget("One", CalculationMode.Ticks, 150);
SetStopLoss("One", CalculationMode.Ticks, 150, false);
SetProfitTarget("Two", CalculationMode.Ticks, 1000);
SetTrailStop("Two", CalculationMode.Ticks, 150, false);
Any help will be great. if you have sample code, etc...
or when entering through a strategy can you apply a saved ATM?
Comment