Page 1 of 1

Run on Open

PostPosted: Mon Sep 19, 2016 4:08 pm
by shortbutlucky
Hi Ya'll,

Is there a way to make a strategy perform its calculation when a new bar opens?

if open.Barstream? == ? then x

Regards,
Robert Roufail

Re: Run on Open

PostPosted: Tue Sep 20, 2016 4:44 am
by Julia CJ
Hi Robert,

It is possible to do. You need to use ExtSubscribe function of helper.lua

Re: Run on Open

PostPosted: Tue Sep 20, 2016 10:42 am
by shortbutlucky
Ahh, excellent! Thanks Julia!