SSD Update on Tick?

Moderator: admin

SSD Update on Tick?

Postby infamous_Q » Tue Mar 29, 2011 10:59 am

Hello all,

I'm trying to build a strategy that uses the SSD indicator, and enters trades while a bar is in progress.

Is there a way to update the SSD indicator with new tick information, rather than waiting for the bar to close?

Thanks!
infamous_Q
 
Posts: 1
Joined: Sat Mar 26, 2011 5:02 pm

Re: SSD Update on Tick?

Postby Nikolay.Gekht » Wed Mar 30, 2011 9:23 am

The indicator updates when the :update() function is called. So, all you need is to have your strategy called on every tick.

1) If you don't use helper.lua, the Update() function in your strategy is called on tick, so there is no problem.

2) If you use helper.lua - just add the subscribtion to tick data using ExtSubscribe function and put your logic on it's updates instead of bar data updates.

If you need an example - show you strategy or, if you don't want to show if in public, send it to development.service@gehtsoftusa.com and put "for ng" in the subject, so guys will forward the email to me.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 41 guests