The relevant part of my code looks like this:
protected override void Initialize()
{
SetTrailStop("Longtrade", CalculationMode.Ticks, 10, true);
CalculateOnBarClose = true;
...
protected override void OnBarUpdate()
... conditions...
EnterLong(1, "Longtrade");
There's something here that isn't right and I'm sure the trail stops aren't being entered properly. I can tell visually this is a fairly profitable strategy yet in the Analyzer, the it just loses and loses!
I wonder if a possible source of confusion is that with ^DJIA, Range = 1000 is the same as 10 points in the Dow. This is something which I've never really fathomed.
By the way, I'm using a Sim account.
Thanks for any help you can provide.

Comment