NexusFi: Find Your Edge


Home Menu

 





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


Discussion in MultiCharts

Updated
    1. trending_up 1,983 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #1 (permalink)
honoluluhustler
Honolulu + Hawaii / USA
 
Posts: 18 since Jul 2014
Thanks Given: 16
Thanks Received: 1

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

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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
Thanked by:
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


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 [AUTOLINK]ATM[/AUTOLINK] 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
Thanked by:
  #4 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


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 NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 3, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts