Run on Open

Section for all discussions related to development using Indicore API/SDK.

Moderator: admin

Run on Open

Postby shortbutlucky » Mon Sep 19, 2016 4:08 pm

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
shortbutlucky
 
Posts: 8
Joined: Thu Jul 07, 2016 11:24 am

Re: Run on Open

Postby Julia CJ » Tue Sep 20, 2016 4:44 am

Hi Robert,

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

Re: Run on Open

Postby shortbutlucky » Tue Sep 20, 2016 10:42 am

Ahh, excellent! Thanks Julia!
shortbutlucky
 
Posts: 8
Joined: Thu Jul 07, 2016 11:24 am


Return to Discussions

Who is online

Users browsing this forum: No registered users and 1 guest