follow the Bid

Questions about MultiCharts and user contributed studies.
waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

follow the Bid

Postby waldem » 22 Mar 2016

hallo team, should be possible to follow the bid on book?
i have tried to use this function:

Code: Select all

if (LastBarOnChart_s = True) then begin
buyReferencePrice = insidebid;
sellReferencePrice = insideask;
RecalcLastBarAfter(0.1);

end;
but i got exception error.

is really possible to ask MC to recalculate the strategy each second?
maybe sintax is different and RecalcLastBarAfter(0.1) should be ad begin of code?

thank you

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: follow the Bid

Postby TJ » 22 Mar 2016

hallo team, should be possible to follow the bid on book?
i have tried to use this function:

Code: Select all

if (LastBarOnChart_s = True) then begin
buyReferencePrice = insidebid;
sellReferencePrice = insideask;
RecalcLastBarAfter(0.1);

end;
but i got exception error.

is really possible to ask MC to recalculate the strategy each second?
maybe sintax is different and RecalcLastBarAfter(0.1) should be ad begin of code?

thank you
The problem is not in this snippet.

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: follow the Bid

Postby waldem » 22 Mar 2016

TJ you are rigth! i found mistake in other place of code sorry for that.
but anyway the function RecalcLastBarAfter(0.1) seems to me that is not working, MC always update every thick not every millisecond.

time recalculate is really possible?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: follow the Bid

Postby TJ » 22 Mar 2016

TJ you are rigth! i found mistake in other place of code sorry for that.
but anyway the function RecalcLastBarAfter(0.1) seems to me that is not working, MC always update every thick not every millisecond.

time recalculate is really possible?
What is your chart resolution?
Who is your broker/dataprovider?

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: follow the Bid

Postby waldem » 22 Mar 2016

tick chart resolution, provider is italian and not in MC panel..
but time recalculate should be independent from chart isn't it?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: follow the Bid

Postby TJ » 22 Mar 2016

tick chart resolution, provider is italian and not in MC panel..
but time recalculate should be independent from chart isn't it?
insidebid and insideask are reported with every tick.

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: follow the Bid

Postby waldem » 22 Mar 2016

thank you TJ for your precious support.

for the MC developers: shouldn't possible to think for next release make the way to recalculate the strategy by timing that the user can put in TAB, like sort of loop?
or other way have a continuous chart updated every millisecods even if nothing happen in market.

maybe i'm the only one in the world interested on this?


Return to “MultiCharts”