Bid/ask prices for spread in MTF indicator

Moderator: admin

Bid/ask prices for spread in MTF indicator

Postby Hug Coder » Fri Jan 20, 2012 1:13 pm

Ok, so what I'm trying to do is to make a MTF panel for an indicator. After some ugly adaption of the Ichimoku MTF panel I just managed to do this. But, at the cost of not being able to use:
core.host:execute("getBidPrice");
and
core.host:execute("getAskPrice");

The indicator uses them to get the Spread of the source. But I got error saying "Not supported".

Why is that? Is there a workaround?

Can I somehow send the bid/ask prices from my MTF panel to the indicator instead? (At every update, since spread is variable)
Hug Coder
 
Posts: 38
Joined: Fri Jan 13, 2012 5:43 am

Re: Bid/ask prices for spread in MTF indicator

Postby Apprentice » Sun Jan 22, 2012 5:13 pm

Can you post you code here or send it to my privat email,
from my experience this is the quickest path to solutions.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36495
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Bid/ask prices for spread in MTF indicator

Postby Hug Coder » Wed Jan 25, 2012 2:53 pm

Ok, I have sent you an email. Tell me if there is any problem receiving it.
Hug Coder
 
Posts: 38
Joined: Fri Jan 13, 2012 5:43 am

Re: Bid/ask prices for spread in MTF indicator

Postby vittorio » Thu Aug 09, 2012 12:08 pm

maybe you did but I try to say...
in Function Init() must be :
Code: Select all
indicator:requiredSource(core.Bar);
vittorio
 
Posts: 3
Joined: Thu Jul 19, 2012 5:41 am


Return to Indicator Development

Who is online

Users browsing this forum: Bing [Bot] and 70 guests