Trading Articles
Article Categories
Article Tools
how to make program store price value after crossover and then use to place a limit
Updated August 3, 2014
trending_up
1,274 views
thumb_up
5 thanks given
group
3 followers
forum
3 posts
attach_file
0 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
how to make program store price value after crossover and then use to place a limit
(login for full post details)
#1 (permalink )
Honolulu + Hawaii / USA
Posts: 18 since Jul 2014
Thanks: 16 given,
1
received
How do i find out at what exact point the crossovers occurs and then save them to a variable to be used to enter a limit order ?
if volume > VOVO
and
ROC1[1] crosses above ROC2[1]
and
ExpAv1[1] crosses above ExpAv2[1]
and
VOVOROC1[1] crosses above VOVOROC2[1] then
begin
buy ( "buy") Cts contracts next bar at market ;
marketposition = true;
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#2 (permalink )
Posts: 2,230 since Apr 2013
Thanks: 409 given,
1,470
received
honoluluhustler,
the exact point in my opinion would be the tick that causes the cross. However in your code example you are looking for crosses of two indicators with different settings (like the ExpAv1 and ExpAv2). So the price should be Close[1] I suppose.
Regards,
ABCTG
honoluluhustler
How do i find out at what exact point the crossovers occurs and then save them to a variable to be used to enter a
limit order ?
if volume > VOVO
and
ROC1[1] crosses above ROC2[1]
and
ExpAv1[1] crosses above ExpAv2[1]
and
VOVOROC1[1] crosses above VOVOROC2[1]
then
begin
buy ( "buy") Cts
contracts next bar at market ;
marketposition = true;
The following user says Thank You to ABCTG for this post:
(login for full post details)
#3 (permalink )
Posts: 2,230 since Apr 2013
Thanks: 409 given,
1,470
received
rleplae,
I am afraid, but this will only work in Ninjatrader and not in Multicharts or Tradestation, which is what honoluluhustler is using.
Regards,
ABCTG
rleplae
hi
as you are talking about orders, i am assuming you are talking about
a strategy and not an indicator...
it depends where you will put this code
for example if you put this code in the method
OnBarUpdate ()
{
}
that will be called when a new bar is drawn (if you activate the strategy with 'on bar close')
you can then refer to the last element [0], otherwise you are running a bar behind
you can take a look at my
thread, were i am taking the audience into a journey
of building a BOT to implement the ATM method
it does not generate orders (will do that later
but it outputs to the output window in NT
regards,
ron
The following 2 users say Thank You to ABCTG for this post:
(login for full post details)
#4 (permalink )
Gits (Hooglede) Belgium
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,991 since Sep 2013
Thanks: 2,437 given,
5,801
received
ABCTG
rleplae,
I am afraid, but this will only work in
Ninjatrader and not in
Multicharts or Tradestation, which is what honoluluhustler is using.
Regards,
ABCTG
absolutely right,
i noticed the platform mismatch and already deleted my answer
sorry for trying to help too fast
The following 2 users say Thank You to rleplae for this post:
Last Updated on August 3, 2014
Right now
Ongoing
Right now
February
Register to Attend
Feb 25
Coming soon
March