how to make program store price value after crossover and then use to place a limit - futures io
futures io futures trading



how to make program store price value after crossover and then use to place a limit


Discussion in MultiCharts

Updated
    1. trending_up 1,274 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. 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)

 
Search this Thread
 

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;

Reply With Quote

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(153 thanks from 29 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(111 thanks from 32 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 16 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(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 View Post
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;


Follow me on Twitter Reply With Quote
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 View Post
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


Follow me on Twitter Reply With Quote
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
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,801 received


ABCTG View Post
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

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to rleplae for this post:


futures io Trading Community Platforms and Indicators MultiCharts > how to make program store price value after crossover and then use to place a limit


Last Updated on August 3, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Identifying Setups & Targets Using Profile Charts w/Trevor & Tradovate

Feb 25
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts