instance:createCandleGroup

Moderator: admin

Re: instance:createCandleGroup

Postby gpatel » Wed Jan 30, 2013 5:50 pm

Thank you for your answer. I will wait for SDK 2.2.
gpatel
 
Posts: 13
Joined: Wed Jan 11, 2012 10:51 am

Re: instance:createCandleGroup

Postby TakisGen » Tue Jul 02, 2013 3:52 pm

Now I need to pass custom created candles to another indicator using
instance:createCandleGroup() but can't figure out how.

Please advise
TakisGen
 
Posts: 34
Joined: Sat May 28, 2011 10:09 am

Re: instance:createCandleGroup

Postby Valeria » Wed Jul 03, 2013 4:05 am

Hi TakisGen,

Unfortunately, now we don't have this feature. But thank you for the good suggestion, it is added in the wish list for the future releases.
Valeria
 

Re: instance:createCandleGroup

Postby gpatel » Thu Apr 03, 2014 1:33 pm

Was this feature ever released in to indicore sdk?
gpatel
 
Posts: 13
Joined: Wed Jan 11, 2012 10:51 am

Re: instance:createCandleGroup

Postby Valeria » Mon Apr 07, 2014 11:31 pm

Hi gpatel,

Please try the following code:

Code: Select all
    SRC = core.host:execute("getHistory", 100, instance.bid:instrument(), "m5", 0, 0, true);
    HA = core.indicators:create("HA", SRC);

    ZIGZAG_SRC = HA:getCandleOutput(0);
    ZIGZAG = core.indicators:create("ZIGZAG", ZIGZAG_SRC);
Valeria
 

Get Price from indicator

Postby D291156061 » Fri May 21, 2021 1:00 pm

Hello, Nice to meet you
Now I want to strategy get the specific price from horizontal line indicator.
If you anyone know about this, plz give me the solution
Thank you
D291156061
 
Posts: 1
Joined: Fri May 21, 2021 12:28 pm

Re: instance:createCandleGroup

Postby Apprentice » Tue May 25, 2021 4:31 am

Line 410
local Indicator_Level= Indicator.DATA[period]
MA Price Cross Strategy.lua
(31.58 KiB) Downloaded 315 times


If you are interested in private instructions contact me via email.
mario(.)jemic(@)gmail(.)com
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 7 guests