[Q] The order of signal evaluation/generation?

Questions about MultiCharts and user contributed studies.
2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

[Q] The order of signal evaluation/generation?

Postby 2haerim » 12 Jun 2009

There are 3 charts on one workspace. It contains 3 charts: 2 min/5 min/10 min. Each chart has a signal applied and it is just a most simple one:

If d<>d[1] then
buy 1 at market;

The market opens at 9 am. When it is 09:10 am, what is the order of evaluation of the above 3 charts? That is which chart's signal will be generated first?

What if charts are distributed across multiple workspaces?

HR

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

Postby TJ » 14 Jun 2009

the signal is evaluated at the end of the bar, the first chart that has a completed bar gets triggered.

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 15 Jun 2009

TJ,

Thanks for your answer and I admit my initial question was stupid.

I would change the initial code as below:

Code: Select all

If Time=0910 then
Buy at Market;
The problem is how to find out which chart gets completed first.

Is there any way to find out which chart gets completed first at 09:10 AM among 2min/5min/10min charts? All these 3 charts will complete their own bars at 09:10 AM.

Is it random or any consistent rule for the bar completion order?[/code]

gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

Postby gregorio123456 » 15 Jun 2009

TJ,

Thanks for your answer and I admit my initial question was stupid.

I would change the initial code as below:

Code: Select all

If Time=0910 then
Buy at Market;
The problem is how to find out which chart gets completed first.

Is there any way to find out which chart gets completed first at 09:10 AM among 2min/5min/10min charts? All these 3 charts will complete their own bars at 09:10 AM.

Is it random or any consistent rule for the bar completion order?[/code]
the 3 charts on same time.... because 0910 is multipli of 2,5,10 min and never you get one charts completed first ...

jo

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 15 Jun 2009

the 3 charts on same time.... because 0910 is multipli of 2,5,10 min and never you get one charts completed first ...
I know all three signals are completed at the same time theoretically, but my question is about the reality.

After all the MC's internal signal generating engine would sort out all the charts that are completed at the same time (theoretically). Then next it would send out each corresponding orders to the real world broker. I am asking in what sequence are those 3 orders sent to the broker.

HR

gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

Postby gregorio123456 » 15 Jun 2009

the 3 charts on same time.... because 0910 is multipli of 2,5,10 min and never you get one charts completed first ...
I know all three signals are completed at the same time theoretically, but my question is about the reality.

After all the MC's internal signal generating engine would sort out all the charts that are completed at the same time (theoretically). Then next it would send out each corresponding orders to the real world broker. I am asking in what sequence are those 3 orders sent to the broker.

HR
if possible have difference about microseconds.......

the send order will be light strategic (less line easylanguage) media strategic and heavy strategic.......maybe ???' or light indicator ,etc....

or put you strategic to ask for confirmation to send the order ....

jo

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 15 Jun 2009

ok. here is what i really want to know.

I would like to control the sequnce of order generation at my own will for the 2/5/10 min charts. For example, I would like to specify 10min order first, 2 min order next, and finally 5 min order.

Would this be possible?


HR

gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

Postby gregorio123456 » 15 Jun 2009

ok. here is what i really want to know.

I would like to control the sequnce of order generation at my own will for the 2/5/10 min charts. For example, I would like to specify 10min order first, 2 min order next, and finally 5 min order.

Would this be possible?


HR
ok
put 3..... 2/5/10min in the same charts data1,data2,data3
if close of data1=true then buy("2min")
if close of data2=true then buy ("5min")
if close of data3=true then buy ("10min")
and properties of strategic (allow up to 3 orders in the same direction.....)

maybe help

jo

2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Postby 2haerim » 15 Jun 2009

gregorio123456,

Are you saying this code will generate signals in 10min/2min/5min sequence at 09:10 AM?

I don't see your point here. Maybe you want to explain more.

What if 3 different charts?

Thanks.

HR

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

Postby TJ » 15 Jun 2009

ok. here is what i really want to know.
I would like to control the sequnce of order generation at my own will for the 2/5/10 min charts. For example, I would like to specify 10min order first, 2 min order next, and finally 5 min order.
Would this be possible?
HR

if they are of the same symbol, trade at the same broker, of the same account, it will not make any difference...

you must be thinking of trading multiple accounts...

gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

Postby gregorio123456 » 16 Jun 2009

gregorio123456,

Are you saying this code will generate signals in 10min/2min/5min sequence at 09:10 AM?

I don't see your point here. Maybe you want to explain more.

What if 3 different charts?

Thanks.

HR
that code generate buy in this order... 2 min,5min ,10min (easlylanguage execute one code line (;;;; ) each time)and tooo quick you dont have time to see what is first :-)

{{{What if 3 different charts?}}} w diferente symbols or same symbol I dont know....
Why do you want made this???? if condition is true we buy or sell......
the order or sequence dont matter ......

jo


Return to “MultiCharts”