How to test the QuoteField value ?

Questions about MultiCharts and user contributed studies.
User avatar
ym
Posts: 53
Joined: 26 Feb 2010

How to test the QuoteField value ?

Postby ym » 06 Jun 2010

I have to find a way to write some piece of code that would mimick the following behavior :

Code: Select all

if QuoteField(data1)=Bid and QuoteField(data2)=Ask then begin
   condition_Short=expression of (close of data1);
   condition_Long=expression of (close of data2);
end;
if QuoteField(data1)=Ask and QuoteField(data2)=Bid then begin
   condition_Short=expression of (close of data2);
   condition_Long=expression of (close of data1);
end;


In another word, is there any way to test if a given instrument is set-up as Bid/Ask/Trade (QuoteField value) ?
ym

User avatar
ym
Posts: 53
Joined: 26 Feb 2010

Postby ym » 08 Jun 2010

up !!!
---
is there anyone on the forum to tell me if this is workable or not ?
any workaround ... ?
thx
ym

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

Postby Dave Masalov » 08 Jun 2010

Dear ym,

Unfortunatlely, it is not possible to call values from the status line of another data series.


Return to “MultiCharts”