Information

Username: deejbee
Member since: 10 Apr 2014
Last login: 10 Apr 2014
Status: Active

Activity

Where Created Comments
Algorithms 0 1
Forum Topics 3 2
Jobs 0 0

Last Algorithm Comments

DE
deejbee · 10 years ago

Hi All,

This looks like a great indicator lec0456 so I've tried to use it in a bot I'm writing but can't seem to get it working.

Say I want to create a position after London has opened, I thought this would suffice:

protected override void OnTick()
{

    if (_realMarketHours.London.LastValue > 0) {

        Print("_realMarketHours.London.LastValue: {0}", _realMarketHours.London.LastValue);

         //create position

    }

}

 

However running this on a backtest produces different results in the log every time.

Can I use it this way?

Many thanks