Create strategy using one instrument's price action
Author: rp08
Creation Date: 2/10/2009 4:45 AM
profile picture

rp08

#1
Hi,
I want create a strategy like this:
If ES price reach a new high, YM has increasing volume,then I want to buy NQ at limit.
This is just a simple example to describe my question.
Could anyone tell me if it's possible and how? Thank you.
profile picture

Eugene

#2
Compile and execute the strategy on a chart of NQ:
CODE:
Please log in to see this code.
profile picture

sgubba

#3
Hi Eugene,
Is it possible to replace SPY, DIA and QQQQ in the above?
profile picture

rp08

#4
Hi Eugene,

Thanks a lot for your help.
profile picture

Eugene

#5
QUOTE:
Is it possible to replace SPY, DIA and QQQQ in the above?


Assuming that you would execute it on a chart of QQQQ, just replace "ES" and "YM" in the GetExternalSymbol calls above to "SPY" and "DIA" (or vice versa, depending on your preference.)
profile picture

sgubba

#6
Thank you very much.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).