this is the script that i suppose create the problem: ( i'd like to point out that it gives me an error only on the nd 03-22, iif i use the fdax or other es 03-22 it doesn't give me an error)
if (Position.GetUnrealizedProfitLoss(PerformanceUnit. Ticks) > m_tikTrailing && firstTrail)
{
if (Position.GetUnrealizedProfitLoss(PerformanceUnit. Ticks) > m_tikTrailing && firstTrail)
{
SetStopLoss(CalculationMode.Ticks, 0);
firstTrail = false;
}
}
I'm just checking when the position is in profit of more than 6 tik ( m_tikTrailing) ( first trial it's for the trialing stop loss that i'm not currently using so it doesn't matter)
And then it comes this error
Comment